meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:prepare:x_window [2016/02/14 11:26] niziaklinux:prepare:x_window [2023/01/03 11:49] (current) niziak
Line 2: Line 2:
 based on XFCE based on XFCE
  
-=== set default window manager ===+==== Font smoothing ==== 
 +  * Settings -> Appearance -->  (it works only for XFCE desktop) 
 + 
 +<file xml | ~/.fonts.conf> 
 +<?xml version="1.0" ?> 
 +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 
 +<fontconfig> 
 +<!-- 
 +    <match target="font"> 
 + <edit name="autohint" mode="assign"><bool>true</bool></edit> 
 +    </match> 
 +--> 
 + <!-- 
 +            use rgb sub-pixel ordering to improve glyph appearance on 
 +            LCD screens.  Changes affecting rendering, but not matching 
 +            should always use target="font"
 +   --> 
 +       <match target="font"> 
 +            <edit name="rgba" mode="assign"><const>rgb</const></edit> 
 +            <edit name="hintstyle" mode="assign"><const>hintfull</const></edit> 
 +       </match> 
 +</fontconfig> 
 + 
 +</file> 
 + 
 +  * Chrom browser. Go to [[chrome://flags]] and find ''LCD text antialiasing'' 
 +  * Firefox. Go to [[about:config]] and find ''gfx.use_text_smoothing_setting'' 
 +  *  
 +==== Focus stealing ==== 
 +  * Settings -> Window Manager -> Focus 
 +  * Settings -> Window Manager Tweaks -> Focus 
 + 
 +==== set default window manager ====
 <code bash> <code bash>
 update-alternatives --config x-session-manager update-alternatives --config x-session-manager
Line 15: Line 47:
 <code bash>dpkg-reconfigure keyboard-configuration</code> <code bash>dpkg-reconfigure keyboard-configuration</code>
  
 +
 +=== XFCE4: restore working TAB key and CTRL+D ===
 +<file | ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml>
 +<property name="&lt;Super&gt;Tab" type="string" value="empty"/>
 +
 +</file>
  
 === misc === === misc ===
Line 21: Line 59:
  
 === Power management === === Power management ===
-sudo apt-get install acpi-support+<code bash>sudo apt-get install acpi-support</code>
  
 Turn off monitors command and lock: Turn off monitors command and lock:
 +<code bash>
 xset dpms force off xset dpms force off
 xscreensaver-command --lock xscreensaver-command --lock
 +</code>
  
 === Control minitor brightness === === Control minitor brightness ===
Line 33: Line 73:
 </code> </code>
  
 +=== Enable/disable 2nd monitor ===
 +<code bash>
 +xrandr --output HDMI2 --off
 +xrandr --output HDMI2 --auto --right-of VGA1
 +</code>
 ==== Using Brighntess Controller ==== ==== Using Brighntess Controller ====
 <code bash>sudo apt-get install python-wxgtk3.0 python-pyside</code> <code bash>sudo apt-get install python-wxgtk3.0 python-pyside</code>
Line 142: Line 187:
 add before executing x-session: add before executing x-session:
  
-<code bash ~/.vnc/xstartup>+<file bash ~/.vnc/xstartup>
 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  eval `dbus-launch --sh-syntax –exit-with-session`  eval `dbus-launch --sh-syntax –exit-with-session`
Line 148: Line 193:
  $DBUS_SESSION_BUS_ADDRESS"  $DBUS_SESSION_BUS_ADDRESS"
 fi fi
-</code>+</file> 
 + 
 +Update: 
 +It looks like now vncserver expects that ''xstartup'' to stay foreground, so simply: 
 +<file bash ~/.vnc/xstartup> 
 +xsession & 
 +dbus-launch --exit-with-session lxsession 
 +</file>
  
 === Sound === === Sound ===