Saturday, May 12, 2012

Openbox Window Manager: Keyboard Shortcuts


Openbox uses keyboard shurtcuts defined in the "rc.xml" file usually located in your /home/USER/.config/openbox/ directory. Following shortcut examples include raise/lower volume with amixer, open a terminal with terminator, take a screenshot with scrot, open thunar file manager and exit openbox.
out.xml
    <!-- My keybindings -->
    <keybind key="W-t">
      <action name="execute">
        <execute>terminator -m</execute>
      </action>
    </keybind>
    <keybind key="W-KP_Add">
      <action name="execute">
        <execute>amixer sset Master 5+</execute>
      </action>
    </keybind>
    <keybind key="W-KP_Subtract">
      <action name="execute">
        <execute>amixer sset Master 5-</execute>
      </action>
    </keybind>
    <keybind key="C-A-BackSpace">
      <action name="execute">
        <execute>openbox --exit</execute>
      </action>
    </keybind>
    <keybind key="W-f">
      <action name="execute">
        <execute>thunar</execute>
      </action>
    </keybind>
    <keybind key="Print">
      <action name="execute">
        <execute>/usr/bin/scrot</execute>
      </action>
    </keybind>

After modifying the "rc.xml" file remember to run "openbox --reconfigure" on the shell to make changes take effect.

1 comment:

  1. hey man i think that the work you post is really amazing so you should definitely make more frequent posts. Do you happen to run another blog by the name of UNIX operator?

    ReplyDelete