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/12/28 08:24] niziaklinux:prepare:x_window [2023/01/03 11:49] (current) niziak
Line 2: Line 2:
 based on XFCE based on XFCE
  
-=== Focus stealing ===+==== 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 -> Focus
   * Settings -> Window Manager Tweaks -> Focus   * Settings -> Window Manager Tweaks -> Focus
  
-=== set default window manager ===+==== set default window manager ====
 <code bash> <code bash>
 update-alternatives --config x-session-manager update-alternatives --config x-session-manager
Line 159: 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 165: 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 ===