"Running" openbox menu?[SOLVED]

Is it possible to issue a command to open the root openbox menu(then menu that pops open on desktop right click)?  I want to use that as a button in pypanel...  Thanks for your time in advance.
Last edited by isolier (2009-01-24 17:56:45)

I asked myself the same question and found a great application called xdotool. I added it on AUR. One of its usage is to simulate a keypress. Simply add this code somewhere in the <keyboard> section of your rc.xml:
<keybind key="A-C-q">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
Then, just lauch your menu with:
# xdotool key ctrl+alt+q
A launcher in pypanel would look something like this:
LAUNCH_LIST = [
("xdotool key ctrl+alt+q", "/usr/share/pixmaps/openbox.png"),
Of course, you can change the keyboard shortcut, etc...
Hope this helps.
-T
Last edited by rttommy (2008-01-30 00:23:26)

Similar Messages

  • Obm-xdg won't show anything in the Openbox menu [SOLVED]

    I put the code:
    <menu execute="obm-xdg" id="obm-xdg" label="xdg"/>
    in ~/.config/openbox/menu.xml just like it says to do universally. It does not show any menu. Every other menu item in the file works. I can edit them and they change. obmenu can see the entry. gnome-menus is installed. obm-xdg works from the command line. Why does this not show anything in the menu?
    Last edited by skottish (2008-11-06 05:27:03)

    Make sure you add the menu id to the root-menu list at the bottom of menu.xml:
    <menu id="root-menu" label="Openbox 3">
    <separator label="Applications" />
    <menu id="obm-xdg" />
    <menu id="apps-accessories-menu"/>
    <menu id="apps-editors-menu"/>
    Last edited by thayer (2008-11-06 05:11:29)

  • [SOLVED] Running wine prog from Openbox menu

    Hello everyone. I was wondering if there's a way to run a program installed through wine from the openbox menu? The problem I'm having is that you have to be in the directory with the .exe in order to run it properly. I can run it fine from the terminal but not openbox.
    I've tried the suggestions here: http://crunchbang.org/forums/viewtopic.php?id=24893
    Any ideas?
    Last edited by Somnus (2013-12-28 01:37:39)

    Probably the best formal way to do this is by creating a .desktop file for your Wine application and putting it in the ~/.local/share/applications directory.
    In this file you would specify a Path key to change to the .exe directory, and then the Exec key to run: wine /path/name.exe etc
    In the Openbox menu you'd then make an entry which runs a command - like xdg-open - which can launch the .desktop file.
    (My own launcher fyr can do this, for example, but there are others.)
    Using .desktop files is the "modern" way to launch applications!

  • [SOLVED] openbox menu command doesn't work with &&

    I'm now using openbox-session only.
    I'd like to run a program after something was done correctly:
    zenity --question && killall openbox
    I used "obmenu" and it seems that it fixes & to & correctly in the menu.xml.
    However, the previous command "zenity" is run only.
    In terminal, there's no problem, but it doesn't work with "command" in openbox menu.
    <item label="Exit">
    <action name="Execute">
    <execute>
    zenity --question --title="Exit" --text="Are you sure to go back to console?" && killall openbox
    </execute>
    </action>
    </item>
    Please, give me any idea. Thank you.
    Last edited by mairoo (2009-09-09 10:06:17)

    hbekel wrote:
    You'll need to use a shell explicitly:
    <execute>
    sh -c 'command1 && command2'
    </execute>
    I flagged "solved" thanks to your help. It works good. Thank you.

  • [SOLVED] Freezing while executing /usr/bin/openbox from Openbox menu

    I'm following the instructions in this webpage to create a dynamic menu. I have successfully achieved this on my laptop by installing the openbox-menu package and typing the following lines in menu.xml:
    <menu id="desktop-app-menu" label="Applications" execute="/usr/bin/openbox-menu lxde-applications.menu" />
    For some reason, the same doesn't work on my desktop PC. After editing and saving the menu.xml file, I restart Openbox and when I right click the desktop and hover the "Applications" menu item the desktop freezes. However, I can still move the mouse and switch to other ttys with Ctrl+Alt+Fx, therefore I believe it's reasonable to suggest that the problem lies in the permissions.
    What should I do about it?
    Last edited by Martificiam (2013-02-03 11:29:21)

    Umm, that's not "some random" webpage at all... It worked on all of my Arch Linux installations. The "lxde-applications.menu" is just an argument. But thanks for the link, I'll look into it.
    It's just that it's more of a workaround, not a solution, really... since it has ALWAYS worked for me.
    Furthermore, while setting up Arch on my laptop I remember experiencing similar problems (running a particular program from the openbox menu and resulting in a desktop freeze). This must have something to do with permissions.
    Edit: the xdg_menu worked perfectly, but I would still prefer to use the openbox-menu. I'm marking this as solved anyway.
    Last edited by Martificiam (2013-02-03 11:29:06)

  • Openbox menu etc doesn´t show [SOLVED]

    Hi, I really need some help here.
    I can´t figure out what the hell is wrong with my openbox.
    I had it running smooth, and because Im new to Linux and Arch I played around I guess and configured.
    Somehow I guess I have configured somesthing totally wrong and now my Openbox don´t work as it should.
    I have tried to replace the rc.xml, menu.xml and the autostart.sh with the defaults and still it doesn´t help!
    When I start Openbox pypanel is supposed to be started, it worked before.
    The only thing that comes up when I log in on openbox now is Conky and nothing else. The right click menu nothing works.
    I will post some configs that is related to the subject and I would be very glad if someone could guide me
    Btw im running Openbox with Gnome.
    rc.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Do not edit this file, it will be overwritten on install.
    Copy the file to $HOME/.config/openbox/ instead. -->
    <openbox_config xmlns="http://openbox.org/3.4/rc">
    <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
    </resistance>
    <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
    apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
    under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
    this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
    mouse into it, also raise the window -->
    </focus>
    <placement>
    <policy>Smart</policy>
    <!-- 'Smart' or 'UnderMouse' -->
    <center>yes</center>
    <!-- whether to place windows in the center of the free area found or
    the top left corner -->
    <monitor>Any</monitor>
    <!-- with Smart placement on a multi-monitor system, try to place new windows
    on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
    the active window is -->
    </placement>
    <theme>
    <name>Clearlooks</name>
    <titleLayout>NLIMC</titleLayout>
    <!--
    available characters are NDSLIMC, each can occur at most once.
    N: window icon
    L: window label (AKA title).
    I: iconify
    M: maximize
    C: close
    S: shade (roll up/down)
    D: omnipresent (on all desktops).
    -->
    <keepBorder>yes</keepBorder>
    <animateIconify>yes</animateIconify>
    <font place="ActiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="InactiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuHeader">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuItem">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="OnScreenDisplay">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    </theme>
    <desktops>
    <!-- this stuff is only used at startup, pagers allow you to change them
    during a session
    these are default values to use when other ones are not already set
    by other applications, or saved in your session
    use obconf if you want to change these without having to log out
    and back in -->
    <number>4</number>
    <firstdesk>1</firstdesk>
    <names>
    <!-- set names up here if you want to, like this:
    <name>desktop 1</name>
    <name>desktop 2</name>
    -->
    </names>
    <popupTime>875</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
    desktops. Set this to 0 to disable the popup. -->
    </desktops>
    <resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center', 'Top', or 'Fixed' -->
    <popupFixedPosition>
    <!-- these are used if popupPosition is set to 'Fixed' -->
    <x>10</x>
    <!-- positive number for distance from left edge, negative number for
    distance from right edge, or 'Center' -->
    <y>10</y>
    <!-- positive number for distance from top edge, negative number for
    distance from bottom edge, or 'Center' -->
    </popupFixedPosition>
    </resize>
    <!-- You can reserve a portion of your screen where windows will not cover when
    they are maximized, or when they are initially placed.
    Many programs reserve space automatically, but you can use this in other
    cases. -->
    <margins>
    <top>0</top>
    <bottom>0</bottom>
    <left>0</left>
    <right>0</right>
    </margins>
    <dock>
    <position>TopLeft</position>
    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
    <!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
    <!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
    <!-- 'Left', 'Middle', 'Right' -->
    </dock>
    <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
    <action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="C-A-Right">
    <action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="C-A-Up">
    <action name="DesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="C-A-Down">
    <action name="DesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="S-A-Left">
    <action name="SendToDesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="S-A-Right">
    <action name="SendToDesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="S-A-Up">
    <action name="SendToDesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="S-A-Down">
    <action name="SendToDesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
    </keybind>
    <keybind key="W-F1">
    <action name="Desktop"><desktop>1</desktop></action>
    </keybind>
    <keybind key="W-F2">
    <action name="Desktop"><desktop>2</desktop></action>
    </keybind>
    <keybind key="W-F3">
    <action name="Desktop"><desktop>3</desktop></action>
    </keybind>
    <keybind key="W-F4">
    <action name="Desktop"><desktop>4</desktop></action>
    </keybind>
    <keybind key="W-d">
    <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F4">
    <action name="Close"/>
    </keybind>
    <keybind key="A-Escape">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
    <action name="ShowMenu"><menu>client-menu</menu></action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
    <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
    <action name="PreviousWindow"/>
    </keybind>
    <keybind key="C-A-Tab">
    <action name="NextWindow">
    <panels>yes</panels><desktop>yes</desktop>
    </action>
    </keybind>
    <!-- Keybindings for running applications -->
    <keybind key="W-e">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Konqueror</name>
    </startupnotify>
    <command>kfmclient openProfile filemanagement</command>
    </action>
    </keybind>
    </keyboard>
    <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
    screen while moving a window, in milliseconds (1000 = 1 second).
    Set this to 0 to disable warping -->
    <context name="Frame">
    <mousebind button="A-Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="A-Left" action="Click">
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="A-Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Right" action="Drag">
    <action name="Resize"/>
    </mousebind>
    <mousebind button="A-Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-S-Up" action="Click">
    <action name="SendToDesktopPrevious"/>
    </mousebind>
    <mousebind button="A-S-Down" action="Click">
    <action name="SendToDesktopNext"/>
    </mousebind>
    </context>
    <context name="Titlebar">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="Left" action="DoubleClick">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Up" action="Click">
    <action name="Shade"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    <action name="Lower"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="Unshade"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu"><menu>client-menu</menu></action>
    </mousebind>
    </context>
    <context name="Top">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"><edge>top</edge></action>
    </mousebind>
    </context>
    <context name="Left">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"><edge>left</edge></action>
    </mousebind>
    </context>
    <context name="Right">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"><edge>right</edge></action>
    </mousebind>
    </context>
    <context name="Bottom">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"><edge>bottom</edge></action>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu"><menu>client-menu</menu></action>
    </mousebind>
    </context>
    <context name="BLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="BRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="Client">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Icon">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    <action name="ShowMenu"><menu>client-menu</menu></action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu"><menu>client-menu</menu></action>
    </mousebind>
    </context>
    <context name="AllDesktops">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleOmnipresent"/>
    </mousebind>
    </context>
    <context name="Shade">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleShade"/>
    </mousebind>
    </context>
    <context name="Iconify">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Iconify"/>
    </mousebind>
    </context>
    <context name="Maximize">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Click">
    <action name="ToggleMaximizeVert"/>
    </mousebind>
    <mousebind button="Right" action="Click">
    <action name="ToggleMaximizeHorz"/>
    </mousebind>
    </context>
    <context name="Close">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Close"/>
    </mousebind>
    </context>
    <context name="Desktop">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Root">
    <!-- Menus -->
    <mousebind button="Middle" action="Press">
    <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="ShowMenu"><menu>root-menu</menu></action>
    </mousebind>
    </context>
    <context name="MoveResize">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    </context>
    </mouse>
    <menu>
    <!-- You can specify more than one menu file in here and they are all loaded,
    just don't make menu ids clash or, well, it'll be kind of pointless -->
    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    <file>menu.xml</file>
    <hideDelay>200</hideDelay>
    <!-- if a press-release lasts longer than this setting (in milliseconds), the
    menu is hidden again -->
    <middle>no</middle>
    <!-- center submenus vertically about the parent entry -->
    <submenuShowDelay>100</submenuShowDelay>
    <!-- this one is easy, time to delay before showing a submenu after hovering
    over the parent entry -->
    <applicationIcons>yes</applicationIcons>
    <!-- controls if icons appear in the client-list-(combined-)menu -->
    <manageDesktops>yes</manageDesktops>
    <!-- show the manage desktops section in the client-list-(combined-)menu -->
    </menu>
    <applications>
    <!--
    # this is an example with comments through out. use these to make your
    # own rules, but without the comments of course.
    <application name="first element of window's WM_CLASS property (see xprop)"
    class="second element of window's WM_CLASS property (see xprop)"
    role="the window's WM_WINDOW_ROLE property (see xprop)"
    type="the window's _NET_WM_WINDOW_TYPE (if unspecified, then
    it is dialog for child windows)">
    # the name or the class can be set, or both. this is used to match
    # windows when they appear. role can optionally be set as well, to
    # further restrict your matches.
    # the name, class, and role use simple wildcard matching such as those
    # used by a shell. you can use * to match any characters and ? to match
    # any single character.
    # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
    # or desktop
    # when multiple rules match a window, they will all be applied, in the
    # order that they appear in this list
    # each element can be left out or set to 'default' to specify to not
    # change that attribute of the window
    <decor>yes</decor>
    # enable or disable window decorations
    <shade>no</shade>
    # make the window shaded when it appears, or not
    <position force="no">
    # the position is only used if both an x and y coordinate are provided
    # (and not set to 'default')
    # when force is "yes", then the window will be placed here even if it
    # says you want it placed elsewhere. this is to override buggy
    # applications who refuse to behave
    <x>center</x>
    # a number like 50, or 'center' to center on screen. use a negative number
    # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
    # right edge (or bottom).
    <y>200</y>
    <monitor>1</monitor>
    # specifies the monitor in a xinerama setup.
    # 1 is the first head, or 'mouse' for wherever the mouse is
    </position>
    <focus>yes</focus>
    # if the window should try be given focus when it appears. if this is set
    # to yes it doesn't guarantee the window will be given focus. some
    # restrictions may apply, but Openbox will try to
    <desktop>1</desktop>
    # 1 is the first desktop, 'all' for all desktops
    <layer>normal</layer>
    # 'above', 'normal', or 'below'
    <iconic>no</iconic>
    # make the window iconified when it appears, or not
    <skip_pager>no</skip_pager>
    # asks to not be shown in pagers
    <skip_taskbar>no</skip_taskbar>
    # asks to not be shown in taskbars. window cycling actions will also
    # skip past such windows
    <fullscreen>yes</fullscreen>
    # make the window in fullscreen mode when it appears
    <maximized>true</maximized>
    # 'Horizontal', 'Vertical' or boolean (yes/no)
    </application>
    # end of the example
    -->
    </applications>
    </openbox_config>
    menu.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="apps-accessories-menu" label="Accessories">
    <item label="Calculator">
    <action name="Execute">
    <command>gnome-calculator</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Character Map">
    <action name="Execute">
    <command>gnome-character-map</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Ark File Archiver">
    <action name="Execute">
    <command>ark</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-editors-menu" label="Editors">
    <item label="GVim">
    <action name="Execute">
    <command>gvim</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>GVim</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="Emacs">
    <action name="Execute">
    <command>emacs</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Emacs</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="GEdit">
    <action name="Execute">
    <command>gedit</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Kate">
    <action name="Execute">
    <command>kate</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Kwrite">
    <action name="Execute">
    <command>kwrite</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-term-menu" label="Terminals">
    <item label="Rxvt Unicode">
    <action name="Execute">
    <command>urxvt</command>
    </action>
    </item>
    <item label="Gnome Terminal">
    <action name="Execute">
    <command>gnome-terminal</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Xfce Terminal">
    <action name="Execute">
    <command>xfce4-terminal</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Konsole">
    <action name="Execute">
    <command>konsole</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Xterm">
    <action name="Execute"><command>xterm</command></action>
    </item>
    </menu>
    <menu id="apps-net-menu" label="Internet">
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Firefox</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="Opera">
    <action name="Execute">
    <command>opera</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Opera</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="Konqueror">
    <action name="Execute">
    <command>konqueror</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Epiphany">
    <action name="Execute">
    <command>epiphany</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Pidgin Instant Messenger">
    <action name="Execute">
    <command>pidgin</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Kopete Instant Messenger">
    <action name="Execute">
    <command>kopete</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="XChat">
    <action name="Execute">
    <command>xchat</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-office-menu" label="Office">
    <item label="OpenOffice Base">
    <action name="Execute">
    <command>ooffice -base</command>
    </action>
    </item>
    <item label="OpenOffice Calc">
    <action name="Execute">
    <command>ooffice -calc</command>
    </action>
    </item>
    <item label="OpenOffice Draw">
    <action name="Execute">
    <command>ooffice -draw</command>
    </action>
    </item>
    <item label="OpenOffice Impress">
    <action name="Execute">
    <command>ooffice -impress</command>
    </action>
    </item>
    <item label="OpenOffice Math">
    <action name="Execute">
    <command>ooffice -math</command>
    </action>
    </item>
    <item label="OpenOffice Printer Administration">
    <action name="Execute">
    <command>ooffice-printeradmin</command>
    </action>
    </item>
    <item label="OpenOffice Writer">
    <action name="Execute">
    <command>ooffice -writer</command>
    </action>
    </item>
    </menu>
    <menu id="apps-multimedia-menu" label="Multimedia">
    <item label="Amarok">
    <action name="Execute">
    <command>amarok</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Rhythmbox">
    <action name="Execute">
    <command>rhythmbox</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="K3b">
    <action name="Execute">
    <command>k3b</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="MPlayer">
    <action name="Execute">
    <command>gmplayer</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>MPlayer</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="Totem">
    <action name="Execute">
    <command>totem</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-fileman-menu" label="File Managers">
    <item label="Nautilus">
    <action name="Execute">
    <command>nautilus --no-desktop --browser</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Thunar">
    <action name="Execute">
    <command>Thunar</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="KDE File Manager">
    <action name="Execute">
    <command>kfmclient openURL ~</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Rox">
    <action name="Execute">
    <command>rox</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>ROX-Filer</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="PCMan File Manager">
    <action name="Execute">
    <command>pcmanfm</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-graphics-menu" label="Graphics">
    <item label="Gimp">
    <action name="Execute">
    <command>gimp</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Gwenview">
    <action name="Execute">
    <command>gwenview</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Dia Diagram Editor">
    <action name="Execute">
    <command>dia</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Inkscape">
    <action name="Execute">
    <command>inkscape</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="system-menu" label="System">
    <item label="Openbox Configuration Manager">
    <action name="Execute">
    <command>obconf</command>
    <startupnotify><enabled>yes</enabled></startupnotify>
    </action>
    </item>
    <item label="Gnome Control Center">
    <action name="Execute">
    <command>gnome-control-center</command>
    <startupnotify><enabled>yes</enabled></startupnotify>
    </action>
    </item>
    <item label="KDE Control Center">
    <action name="Execute">
    <command>kcontrol</command>
    <startupnotify><enabled>yes</enabled></startupnotify>
    </action>
    </item>
    <item label="Xfce Settings">
    <action name="Execute">
    <command>xfce-setting-show</command>
    <startupnotify><enabled>yes</enabled></startupnotify>
    </action>
    </item>
    <item label="Manage Cups Printers">
    <action name="Execute">
    <command>xdg-open http://localhost:631/</command>
    <startupnotify>
    <enabled>no</enabled>
    <icon>cups</icon>
    </startupnotify>
    </action>
    </item>
    <separator />
    <item label="Reconfigure Openbox">
    <action name="Reconfigure" />
    </item>
    <item label="Exit Openbox">
    <action name="Exit">
    <prompt>yes</prompt>
    </action>
    </item>
    </menu>
    <menu id="root-menu" label="Openbox 3">
    <separator label="Applications" />
    <menu id="apps-accessories-menu"/>
    <menu id="apps-editors-menu"/>
    <menu id="apps-graphics-menu"/>
    <menu id="apps-net-menu"/>
    <menu id="apps-office-menu"/>
    <menu id="apps-multimedia-menu"/>
    <menu id="apps-term-menu"/>
    <menu id="apps-fileman-menu"/>
    <separator label="System" />
    <menu id="system-menu"/>
    <separator />
    <item label="Log Out">
    <action name="SessionLogout">
    <prompt>yes</prompt>
    </action>
    </item>
    </menu>
    </openbox_menu>
    autostart.sh
    # This shell script is run before Openbox launches.
    # Environment variables set here are passed to the Openbox session.
    # Set a background color
    BG=""
    if which hsetroot >/dev/null; then
    BG=hsetroot
    else
    if which esetroot >/dev/null; then
    BG=esetroot
    else
    if which xsetroot >/dev/null; then
    BG=xsetroot
    fi
    fi
    fi
    test -z $BG || $BG -solid "#303030"
    # D-bus
    if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    # Make GTK apps look and behave how they were set up in the gnome config tools
    if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
    /usr/libexec/gnome-settings-daemon &
    elif which gnome-settings-daemon >/dev/null; then
    gnome-settings-daemon &
    # Make GTK apps look and behave how they were set up in the XFCE config tools
    elif which xfce-mcs-manager >/dev/null; then
    xfce-mcs-manager n &
    fi
    # Preload stuff for KDE apps
    if which start_kdeinit >/dev/null; then
    LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
    fi
    # Run XDG autostart things. By default don't run anything desktop-specific
    # See xdg-autostart --help more info
    DESKTOP_ENV=""
    if which /usr/lib/openbox/xdg-autostart >/dev/null; then
    /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
    fi
    pypanel &
    eval `cat $HOME/.fehbg` &
    setxkbmap se
    conky
    I don´t know really what info you need to help me but please let me know what you need and I will get it for you.
    I want my Openbox back
    /Neuwerld
    Last edited by neuwerld (2009-03-25 17:35:59)

    neuwerld wrote:
    Ohh thanks guys!
    It worked as a charm, and thanks Brisbin33 for the autostart.sh tip.
    So the thing that caused my whole system not to work as it should was that I forgot to put a "&" after conky?
    haha that´s kinda anoying I have been sitting and looking through like a milllion files looking for the answer
    But again, really thanks!
    /Neuwerld
    that little "&" sends the conky process to the background freeing up the current process (your autostart.sh script) to finish doing what it's doing so you can move on to running openbox itself.  with this in mind, it should be obvious why keeping conky in the foreground would cause problems.
    also, replacing it with (sleep 1 && conky) & means... wait a second, when that's done successfully (&&) run conky, and put all of that () to the background.  that way openbox comes up immediatly and only a second later you've got your panel and monitor.
    all this after .xinitrc and before openbox

  • [SOLVED] Strange Openbox menu behaviour

    Hi,
    so, I've searched the forums in order to find a solution for my problem, but not found anythihg that works for me. So, problem is that my openbox menu won't execute any commands that I add to ~/.config/openbox/menu.xml file. After editing that file, I run
    openbox --reconfigure
    command (no any error messages), but again, it simply won't execute the command that I've written. I have also changed permissions, so that I have read/write access. But, strange is that if I delete menus in menu.xml that I don't need, save those changes, and run reconfigure command, those menus are not any more in openbox menu, just as it should be.
    It seems that only commands that I want to execute will not work. I' ve also installed obmenu and tried editing stuff there, but again the same problem-deleting menus works fine, but executing commands not. It is obviously that problem is not in obmenu, but in menu.xml file or somewhere else, but I don't know
    where.
    So, any ideas? Did someone experienced the same problem and found a solution? All ideas are welcome
    Last edited by brunux (2010-05-09 16:32:54)

    In my menu.xml all the programs are surrounded by <command></command> tags instead of  <execute></execute>tags.
    I've tried with your suggestion, but it doesn't work. For example, running firefox works fine with <command></command> tags, but it is the default
    part of the code, where I didn't change anything.
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Firefox</wmclass>
    </startupnotify>
    </action>
    </item>

  • [SOLVED]Root Privilege Command in Openbox Menu

    This is my first post as a arch user, and I just thought I would start by saying hi!!!
    Anyway, I have recently moved from CrunchBang linux 9.04 to Arch linux.  I have setup an openbox session as my default.  I have gotten everything to work so far except for one thing:
    Lets say you something to the openbox menu, like gparted.  Gparted requires root privilege to run.  Under ubuntu/debian, I would simply use "gksu gparted" as the command because that would prompt me for the password and then run the program.  I am not aware of any way to do such a thing in arch linux.  Is there a simple way to do this?
    -thanks
    Last edited by Dr Belka (2010-04-04 17:54:48)

    You're in Arch country now, boy. You want fancy gksu, you pacMAN up and install it.
    Also note gksu comes with gksudo so you can use your password rather than roots - assuming you're in the sudoers file.
    Last edited by Mardoct (2010-04-04 17:53:15)

  • [Solved] gmrun & Openbox menu can't launch program but bash can.

    Hey there.
    Got myself a bit of a confusing problem. I recently installed the latest of Natron, in /opt/Natron, and added the path to the PATH variable in the .bashrc file,  and i can launch it if I'm on bash, but gmrun and the Openbox menu can't locate the executable when I try to launch it from there. Which is weird, because when i was adding it the Natron directory to the path when it wasn't in the .bashrc, i could then launch Natron just fine from gmrun. Anyone know why this is the case? Any help is appreciated.
    Last edited by anark10n (2015-02-22 16:35:17)

    .bashrc is only sourced when starting an interactive shell, whereas .bash_profile is sourced when you log in. Try adding the PATH export to your .bash_profile, then log out and back in.

  • [SOLVED] Openbox-menu saying Menu not found...

    Hello all,
    I installed Arch with Openbox. For the menu, I want to use openbox-menu to see my Applications.
    In menu.xml, I put the line:
    <menu execute="openbox-menu" id="desktop-app-menu" label="Applications"/>
    But when I point it in the menu, I get:
    Menu not found. Please specify a menu specification file.
    I get the same result in Terminal either as a user or as root.
    These are the "menu" packages I have installed:
    [philippe@phil-bureau ~]$ pacman -Qs menu
    local/dmenu-xft 4.5-1
    Dynamic X menu - with xft support
    local/gnome-menus 3.2.0.1-1
    GNOME menu specifications
    local/gnome-menus2 3.0.1-1
    GNOME menu specifications
    local/libdbusmenu-qt 0.9.0-2
    A library that provides a Qt implementation of the DBusMenu spec
    local/lxmenu-data 0.1.2-1 (lxde)
    freedesktop.org desktop menus for LXDE
    local/menu-cache 0.3.2-1 (lxde)
    Caches to speed up freedesktop.org's application menus use.
    local/obmenu 1.0-9
    Openbox menu editor.
    local/openbox-menu 0.3.6.6-1
    Dynamic XDG menu for openbox
    local/openbox-xdgmenu 0.3-2
    fast xdg-menu converter to xml-pipe-menu
    Any help/ideas/suggestions are welcome!
    Thanks
    Philippe
    Last edited by Philippe1 (2012-02-17 16:30:22)

    Hey guys, thanks for the quick response!
    Openbox-menu comes from AUR and the menu.xml is a copy of my Archbang installation. And yes, openbox-menu works like a charm on Archbang. So what am I missing?
    Here is the menu.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
    <menu id="root-menu" label="Openbox 3.5">
    <item label="Fichiers">
    <action name="Execute">
    <execute>
    nautilus
    </execute>
    </action>
    </item>
    <item label="Internet">
    <action name="Execute">
    <execute>
    chromium
    </execute>
    </action>
    </item>
    <item label="Minitube">
    <action name="Execute">
    <execute>
    minitube
    </execute>
    </action>
    </item>
    <item label="Jeux de cartes">
    <action name="Execute">
    <execute>
    pysol
    </execute>
    </action>
    </item>
    <item label="LibreOffice Writer">
    <action name="Execute">
    <execute>
    libreoffice -writer
    </execute>
    </action>
    </item>
    <item label="LibreOffice Calc">
    <action name="Execute">
    <execute>
    libreoffice -calc
    </execute>
    </action>
    </item>
    <item label="Terminal">
    <action name="Execute">
    <execute>
    sakura
    </execute>
    </action>
    </item>
    <separator/>
    <menu execute="openbox-menu" id="desktop-app-menu" label="Applications"/>
    <menu execute="~/.config/openbox/pipemenus/obpipemenu-places ~/" id="places" label="Places"/>
    <menu execute="~/.config/openbox/pipemenus/obrecent.sh ~/" id="recent" label="Recent Files"/>
    <menu id="Preferences" label="Preferences">
    <menu id="root-menu-90523" label="Conky Config">
    <item label="Edit .conkyrc">
    <action name="Execute">
    <execute>
    leafpad ~/.conkyrc
    </execute>
    </action>
    </item>
    <item label="Restart Conky">
    <action name="Execute">
    <execute>
    conkywonky
    </execute>
    </action>
    </item>
    </menu>
    <menu id="root-menu-891528" label="Eye Candy">
    <item label="No effects">
    <action name="Execute">
    <execute>
    ~/.config/openbox/scripts/xcompmgr.sh unset
    </execute>
    </action>
    </item>
    <item label="Transparency">
    <action name="Execute">
    <execute>
    ~/.config/openbox/scripts/xcompmgr.sh set
    </execute>
    </action>
    </item>
    <item label="Transparency, fading">
    <action name="Execute">
    <execute>
    ~/.config/openbox/scripts/xcompmgr.sh setshaded
    </execute>
    </action>
    </item>
    <item label="Transparency, fading shadows">
    <action name="Execute">
    <execute>
    ~/.config/openbox/scripts/xcompmgr.sh setshadowshade
    </execute>
    </action>
    </item>
    </menu>
    <menu id="root-menu-525118" label="Openbox Config">
    <item label="Edit autostart">
    <action name="Execute">
    <execute>
    leafpad ~/.config/openbox/autostart
    </execute>
    </action>
    </item>
    <item label="GUI Menu Editor">
    <action name="Execute">
    <execute>
    obmenu
    </execute>
    </action>
    </item>
    <item label="GUI Config Tool">
    <action name="Execute">
    <execute>
    obconf
    </execute>
    </action>
    </item>
    <item label="Key Editor">
    <action name="Execute">
    <execute>
    obkey
    </execute>
    </action>
    </item>
    <item label="Reconfigure">
    <action name="Reconfigure"/>
    </item>
    <item label="Restart">
    <action name="Restart"/>
    </item>
    </menu>
    <menu id="root-menu-23433" label="Take Screenshot">
    <item label="Now">
    <action name="Execute">
    <execute>
    scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
    </execute>
    </action>
    </item>
    <item label="In 5 Seconds...">
    <action name="Execute">
    <execute>
    scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
    </execute>
    </action>
    </item>
    <item label="In 10 Seconds...">
    <action name="Execute">
    <execute>
    scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
    </execute>
    </action>
    </item>
    <item label="Selected Area... (click &amp; drag mouse)">
    <action name="Execute">
    <execute>
    scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
    </execute>
    </action>
    </item>
    </menu>
    <menu id="root-menu-571948" label="tint2 config">
    <item label="Edit tint2rc">
    <action name="Execute">
    <execute>
    leafpad ~/.config/tint2/tint2rc
    </execute>
    </action>
    </item>
    <item label="Tint Wizard">
    <action name="Execute">
    <execute>
    tintwizard.py
    </execute>
    </action>
    </item>
    </menu>
    <item label="Edit /etc/rc.conf">
    <action name="Execute">
    <execute>
    sudo leafpad /etc/rc.conf
    </execute>
    </action>
    </item>
    <item label="Input Device Preferences">
    <action name="Execute">
    <execute>
    lxinput
    </execute>
    </action>
    </item>
    <item label="Screen Resolution">
    <action name="Execute">
    <execute>
    arandr
    </execute>
    </action>
    </item>
    <item label="User Interface Settings">
    <action name="Execute">
    <execute>
    lxappearance
    </execute>
    </action>
    </item>
    <item label="Wallpaper">
    <action name="Execute">
    <execute>
    nitrogen
    </execute>
    </action>
    </item>
    </menu>
    <separator/>
    <item label="Exit">
    <action name="Execute">
    <execute>
    oblogout
    </execute>
    </action>
    </item>
    </menu>
    </openbox_menu>
    Thanks again!

  • HOWTO: Openbox Menu Icon in PyPanel

    Using Openbox and PyPanel (or similar) and are tired of either having to minimize windows or adjust maximum window size to leave space for right-clicking on the desktop?  Do you have a keyboard shortcut set up to open the menu, but also want to be able to use the mouse to open the menu easier?  I have a solution!
    Create an icon to launch the Openbox application menu on PyPanel.
    This will allow you to click on an icon on PyPanel which opens the OpenBox menu, similar to Gnome's application menu.
    Example:
    Requirements:
    Openbox Window Manager
    PyPanel (dock/panel application)
    xdotool
    obkey - to edit key shortcuts to OpenBox's rc.xml (not required, but used in this howto)
    Recommendations:
    archlinux-artwork
    Procedure:
    1) If you don't already have PyPanel installed, install it now (as root).
    pacman -S pypanel
    2) Launch pypanel in an application launcher, or the terminal (as normal user):
    pypanel &&
    3) Install xdotool (allows for launching keyboard shortcuts via command line) (as root)
    pacman -S xdotool
    4) If you do not have obkey installed, install it with yaourt (recommended) or download the tar.gz and run the python script:
    yaourt -S obkey-git
    OR
    Go to the obkey site or download the .tar.gz by clicking here
    Extract the .tar.gz:
    tar -xvf ./obkey-dev-abf0bb12.tar.gz
    Enter the obkey-dev directory:
    cd ./obkey-dev
    Run obkey and point it to the openbox rc.xml (as normal user!):
    ./obkey ~/.config/openbox/rc.xml
    5) In obkey, find an existing key or create a new key binding by clicking "Insert sibling key" at the top. Note: Ctrl+alt combinations did not seem to work for me to create this menu launcher.
    - If it's an existing key, select it, then click on the action in the bottom right-hand pane.  A window should pop up.  Find and select "ShowMenu"
    - If it's a new key, select it, enter in the key combination you want to use in the key (text) box (for example, C-M for Ctrl+M), then click the green "Insert Action" button at the bottom.  Click on the new "Focus" action.  A window should pop up.  Find and select "ShowMenu"
    In the ShowMenu action, at the top there should be a box for "menu:"  Enter in "root-menu" in this box.
    Now save by clicking the green arrow + hard drive in the top left corner of obkey.  Now you should be able to use that key combination to open the root-menu. If not, try restarting the X Server.
    Example:
    6) This is optional, but if you want a nice Arch icon for your new menu launcher, you can grab mine.  If you want to use your own image, it cannot be .svg, so I converted a .svg icon to .png from the the official Arch Artwork package (archlinux-artwork in the repos).  If you want to just use mine:
    Enter the following commands to get the image and set it up for the next step:
    mkdir ~/.icons/archlinux/icons/
    wget -P ~/.icons/archlinux/icons/ http://img297.imageshack.us/img297/1378/archlinuxiconcrystal128.png
    7) Open up your ~/.pypanelrc with your favorite text editor (e.g. nano or gedit). 
    Scroll down to a line starting with "LAUNCH_LIST"  Most likely it will have a line like this by default:
    ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png")
    Change the line to the following to use xdotool and the key you assigned in step 5, as well as the icon image we just downloaded (Note: make sure to change /home/user to your specific home directory!):
    ("xdotool key ctrl+m", "/home/user/.icons/archlinux/icons/archlinuxiconcrystal128.png")
    Next, locate a line about 15 more down starting with "APPICONS."  Change this value from 0 to 1.
    APPICONS = 1 # Show application icons
    Finally, about 20 lines down, you will see a section for Panel Layout.
    There are 5 sections for the panel:  Desktop, Tasks, Tray, Clock, and Launcher.  They can be assigned, in order of left to right on the panel, with numbers 1-5 and 0 for disabled.  Choose a location you want your Launcher to be and set the value from 1-5.  You can play around with this by setting the values, then restarting pypanel.
    Here is how I have set mine (I disabled Desktop since I only use one desktop/workspace and do not need it to say which one I am on):
    DESKTOP = 0 # Desktop name section
    TASKS = 2 # Task names section
    TRAY = 3 # System tray section
    CLOCK = 4 # Clock section
    LAUNCHER = 1 # Application launcher section
    8) Finally, kill and restart PyPanel and enjoy!
    killall pypanel && pypanel
    9) Tell me how it went, what you think, what I could improve on, etc!
    Last edited by CheesyBeef (2009-03-24 22:22:39)

    Vighi wrote:
    Very nice guide got it working almost straight away :-)
    Had to restart X in order to get key-binding to work though. And I put /home/username/.icons/archlinux/icons/archlinuxiconcrystal128.png instead of ~/ because somehow I got couldn't find logo error when pypanel started.
    BTW sexy pypanel look you have. All the info in your .dotfiles link? will get to it tomorrow I guess. Thanks!
    Thanks very much for using my guide and responding!
    I will fix that ~/ directory problem and say to use the home directory. 
    And yes, that configuration is in my .dotfiles at the moment   You can follow that link or just grab it here: http://dotfiles.org/~CheesyBeef/.pypanelrc
    Thanks again!

  • Setting wallpaper/bmpanel in openbox? [SOLVED]

    I am on my first succesful HD install of Arch wirh Openbox right now and I have been documenting some of the things that are giving me issues. If you are curious about how I went about with my installation you can check this thread out:
    http://bbs.archlinux.org/viewtopic.php?id=76315
    One of the issues Im having is with themeing and autostart programs. I did a little research and found that in order to have, for instance, my bmpanel and desktop wallpaper start up with x I had to make an autostart.sh under my ~/.config/openbox/ and add this within:
    # Run the system-wide support stuff
    . $GLOBALAUTOSTART
    # Programs to launch at startup
    nitrogen /media/vault/Wallpapers/107320-Tranquility-1680.jpg &
    xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
    # SCIM support (for typing non-english characters)
    export LC_CTYPE=ja_JP.utf8
    export XMODIFIERS=@im=SCIM
    export GTK_IM_MODULE=scim
    export QT_IM_MODULE=scim
    scim -d &
    # Programs that will run after Openbox has started
    (sleep 2 && bmpanel arch) &
    So thats what I make it look like. I have nitrogen and bmpanel (with arch theme) installed and working correctly. The problem is that when i startx and the script runs, it just opens nitrogen with no images selectable. Also bmpanel does start with arch theme but it is not transparant like in the photo available where I downloaded it.
    I do have composting available as I have my nvidia drivers installed and i checked that it is working in the terminal, but I am at a loss as to why they arent working correctly. I have checked the documentation for this and found it a little lacking? Anyone know where to go from here?
    Last edited by beatepix (2009-07-21 00:38:53)

    Ghost1227 wrote:
    Don't know bmpanel (never liked it myself), but the
    problem with nitrogen is that in order to set wallpaper from the
    commandline you have to include a switch. Chose whichever of the
    following best suits the image in question.
    nitrogen --set-best
    /media/vault/Wallpapers/107320-Tranquility-1680.jpg &
    nitrogen --set-centered
    /media/vault/Wallpapers/107320-Tranquility-1680.jpg &
    nitrogen --set-scaled
    /media/vault/Wallpapers/107320-Tranquility-1680.jpg &
    nitrogen --set-tiled
    /media/vault/Wallpapers/107320-Tranquility-1680.jpg &
    Or, if you rely on nitrogen's GUI wallpaper interface, you can just
    use the following:
    nitrogen --restore &
    This will set the desktop to the last image you selected via the GUI
    interface.
    Then if you want to get fancy, you can add a menu item to your openbox
    menu to launch the nitrogen selector:
    <item label="Wallpaper">
    <action name="Execute">
    <execute>nitrogen ~/wallpaper</execute>
    </action>
    </item>
    Also never used bmpanel, so can't be of help there. Tint2 and pypanel
    both have nice transparency.

  • Roboto font not available in certain applications and Openbox menu

    I have downloaded Roboto TTF font from here and saved it in ~/.fonts.
    After downloading it, I ran:
    $ fc-cache -vf
    After that, I changed the font in lxappearance and obconf and every single application I have tried so far uses it by default now except Openbox menu (window titles seem to work just fine) and Geany.
    What can I do to fix this?
    I really like the font and pretty much everything runs well except those two.
    Note: tried placing those files in /usr/share/fonts/local, but nothing changed.
    Last edited by COPE (2013-11-04 07:35:17)

    Tried to switch fonts in terminal (rxvt-unicode) and apparently that font is not available there either.
    Any ideas?

  • How to change options in Run time menu while labView was running

    Hello Good Afternoon,
        I m Using LabView 8.5.How to change the options in Run time menu for any control while Labview was running
    Thanks 
    Jai
    Jayavel
    Solved!
    Go to Solution.

    Hi Jai,
    Try the below attached VI and let me know if u still need some explanation.
    Rgds,
    Venky
    Attachments:
    Run Time Menu.zip ‏6 KB

  • Lost Openbox Menu to LXDE install

    I would like to know how to restore my openbox menu, or atleast edit the one LXDE uses. I installed LXDE in hopes to have a better linux experience. After all sitting there with just Openbox, Nitrogen, tint2, and Conky was all well and good but I like having a desktop with icons.
    My problem though without all the fluf is that my openbox menu became LXDE with only a few menus, which is far from my long list with just Openbox. Is there a way to restore it, or import everything over. (Like the menu.xml and the rc.xml) I know it exists since the obmenu command shows my old menu, though I can't get it to show up.

    Did you manually configure your old menu via ~/.config/openbox/menu.xml or did you use the default?
    If you configured it and now you have something different, then I'm guessing it was overwritten, in which case it would be interesting to know if that happens automatically or not when installing/running Lxde.
    If you were using the default, try renaming ~/.config/openbox/menu.xml to ~/.config/openbox/menu.xml.bak then reconfigure openbox and check if it reset your menu.

Maybe you are looking for

  • I need to run Lion and Snow Leopard on the same computer

    i have no money so the solution needs to be free. Can anyone help?

  • Solaris Beginner NIC Questions...

    I have been kicking around installing Solaris for a while, and i finally did it. Everything looks great and is working fine, except for my network card. I've done some research, and I am pretty sure I need to install the Tulip drivers for it, but bei

  • I get "Invalid URL" messages

    OFten, when refreshing my Yahoo Mail and other random websites, I get the "Invalid URL" mesage. The error says "The requested URL "XXXXXXX", is invalid", however that is NOT the same URL in the address window. This happens mostly with Yahoo mail but

  • Zfd3.2 sp3 & client 4.83 sp1 on WinXP

    As per the subject of this post, will this combination work ok (assuming I update the client-side files)??

  • Regarding Delta Record

    Hi, Is the delta record is capture for any field changes (Including KF, CHAR) for a particular sales/Delivery/Billing document or on changes of specific fields for sales/Delivery/Billing document. If delta capture for specific fields change then wher