Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active October 5, 2017 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaosf/4097ed881151efdfca18d9771633eb13 to your computer and use it in GitHub Desktop.
Save kaosf/4097ed881151efdfca18d9771633eb13 to your computer and use it in GitHub Desktop.

How to add my original keyboard shortcuts on Openbox on Arch Linux.

Backup at first and edit

~/.config/openbox/rc.xml

like following:

<?xml version="1.0"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">

  <keyboard>

    <!-- Add my keyboard shortcut configurations here -->
    <!-- For example ... -->
    <keybind key="Hiragana_Katakana">
      <action name="Execute">
        <command>gmrun</command>
      </action>
    </keybind>
    <keybind key="W-j">
      <action name="NextWindow"/>
    </keybind>
    <keybind key="W-k">
      <action name="PreviousWindow"/>
    </keybind>
    <keybind key="W-period">
      <action name="DesktopNext"/>
    </keybind>
    <keybind key="W-comma">
      <action name="DesktopPrevious"/>
    </keybind>

  </keyboard>

</openbox_config>

Run the following command to reload the configuration:

openbox --reconfigure

ref. https://wiki.archlinux.org/index.php/openbox#Openbox_reconfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment