Friday, December 25, 2009

Openbox windows manager

Openbox windows manager is a lightweight X11 windows manager. It is high-configurable. I use it for an alternative for fluxbox. It seems to use less cpu power. I would use it with wmii because wmii is not convenient and awkward to run applications like VirtualBox and wine-related. (Or the floating style in wmii seems to work. Press MOD-Space or MOD-SHIFT-Space to handle the classical way instead of tiling managed way. Read more...)

Install: sudo apt-get install openbox

Configure:
cp /etc/xdg/openbox/rc.xml, /etc/xdg/openbox/autostart.sh to ~/.config/openbox/

edit ~/.config/openbox/autostart.sh
VirtualBox &
(sleep 5 && xterm -e screen) &
google-chrome &
Use xprop WM_CLASS to check the name and class of applications that you want to custom their behaviors after executing. Then edit ~/.config/openbox/rc.xml in applications part

Useful commands:
Alt + Tab:switch windows
Win + (F1 - F4): switch to desktop 1 - 4
Ctrl + Alt (<- ->): switch desktops sequentially
Alt + F4: close window

Reference:

窗口管理器 Openbox 入门指南