Saturday, August 17, 2013

Transition from Gnome 3 to LXDE

1. Install LXDE as root
  # yum install @lxde-desktop

2. Log on as standard user in LXDE mode

3. Edit the file ~/.config/openbox/lxde-rc.xml and change font size for ActiveWindow and InactiveWindow from 10 to 1. This will finally make title bars completely vanish.

4. To enable clicking by tapping on touchpad, add following line to /etc/xdg/lxsession/LXDE/autostart:
  @synclient TapButton1=1

5. (Optional) If you want to adjust font size create file ~/.Xresources and add following line to it (default value 96):
  Xft.dpi: 163

6. Right click the "panel" and click on "panel settings" and set them as follows:
  Geometry
    Edge: Top
    Alignment: Left
    Width: Dynamic
    Height: 18
    Icon Size: 16
  Panel Applets
    Menu
    Application Launch Bar
      Select "Application Launch Bar" and clik on "Edit".
      Then add following items to Application Launch Bar:
        Files
        Firefox
        Terminal
        Sound
    System Tray
    Battery Monitor

7. Skip to step 9 if you don't want Mac-Expose/Gnome-3 style window switching.
  Edit the file ~/.config/openbox/lxde-rc.xml again and add following lines:
  <keybind key="A-grave">
    <action name="NextWindow"/>
  </keybind>
 
  Change key bindings for A-Tab to follows:
 
  <keybind key="A-Tab">
    <action name="Execute"><command>skippy-xd</command></action>
  </keybind>

8. Skippy-xd installation:
  Install mercurial
    # yum install mercurial
 
Install dependencies:
    # yum install libX11-devel libXmu-devel libXfixes-devel libXdamage-devel   
  Install skippy-xd.
    $ hg clone https://code.google.com/p/skippy-xd/
    $ cd skippy-xd
    $ make
   
    If make command results in error, verify if all dependencies given on the following link are installed : http://code.google.com/p/skippy-xd/wiki/Installation
   
    Copy skippy-xd executable to /usr/bin as root:
      # cp skippy-xd /usr/bin

9. Log out and log in again

How to survive the above configuration:
1. Use icons in the panel on the top to launch various applications.
2. Some applications can be launched by pressing Win-r key.
3. Since no window has title bar you can close a window by pressing Alt-F4
    You can replace Alt-F4 with some other value like Alt-q or Ctrl-q in the lxde-rc.xml file.
4. Use Alt-Tab or Alt-` to switch between applications (Mac-Expose/Gnome-3 style).

No comments:

Post a Comment