1. Add shutdown and reboot to openbox menu
Add the following lines to
~/.config/openbox/menu.xml <item label="Restart">
<action name="Execute">
<prompt>
Are you sure you want to reboot ?
</prompt>
<command>dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart</command>
</action>
</item>
<item label="Shutdown">
<action name="Execute">
<prompt>
Are you sure you want to shutdown ?
</prompt>
<command>dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop</command>
</action>
</item>
2. Auto-move window to a specific desktop
Add the following lines to
~/.config/openbox/rc.xml in applications section, you can get app/window proprieties using
obxprop utility (included in openbox package).
<application name="App_Name">
<desktop>2</desktop>
</application>
3.Window snapping (like in Gnome 3)
- Win-Up: Maximize window
- Win-Down: Minimize window
- Win-Left: Snap window to the left side
- Win-Right: Snap window to the right side
Add the following lines to
~/.config/openbox/rc.xml in keyboard section
<keybind key="W-Up">
<action name="ToggleMaximize"/>
</keybind>
<keybind key="W-Down">
<action name="ToggleMaximize"/>
</keybind>
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
<action name="ToggleMaximizeVert"/>
</keybind>
<keybind key="W-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>50%</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
<action name="ToggleMaximizeVert"/>
</keybind>