Saturday, October 19, 2013

openbox menu launcher for xfce4-panel

To add add a launcher for the Openbox menu to xfce4-panel in Openbox (in openSUSE 12.3), I referred to these instructions at the Arch Linux wiki (always a great source):

https://wiki.archlinux.org/index.php/Openbox#Linking_the_menu_to_a_button

First, I installed xdotool in openSUSE. Then I added the following lines to my ~/.config/openbox/rc.xml file, in the keyboard section:

    <keybind key="A-C-q">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>

Next, I added a new launcher to xfce4-panel; right-clicked on the launcher to open the launcher properties window; on the "General" tab, clicked on the "Edit the currently selected item" button; gave the launcher a name and inserted the following command:

xdotool key ctrl+alt+q



Added an icon for the launcher, clicked "Save," and then restarted Openbox with the following command:

$ openbox --restart

All done.


No comments: