You are not logged in.
I am trying openbox for the first time. I have it installed and running. I am in OBMenu trying to add Mousepad under the editors section. I renamed Kate to Mousepad so it shows the correct name in my menu, the action is set to Execute, and I put /usr/bin/mousepad in the Execute section. When I click Save and close OBMenu, I try to launch mousepad from the menu and nothing happens. However, if I open xterm and type /usr/bin/mousepad it opens Mousepad. Not sure what I am doing wrong. Thanks for any help.
Offline
Have you tried manually editing ~/.config/openbox/menu.xml?
*edit* to check if it's been updated with your changes
I just wanted to clarify that this wasn't a "GUIs are for f#%^%, do it manually" reply.
Last edited by Xyne (2009-02-16 00:09:58)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
You said you renamed Kate to Mousepad. Did you capitalize Mousepad?
Offline
Have you tried manually editing ~/.config/openbox/menu.xml?
*edit* to check if it's been updated with your changes
I just wanted to clarify that this wasn't a "GUIs are for f#%^%, do it manually" reply.
Just checked the menu.xml and it changed the item label to Mousepad but didn't change the command. The <command> section still says kwrite. I thought I did kate but I must have done kwrite. When I edit the menu in OBMenu I am supposed to put the command in the Execute section right? That is what I did but it didn't change it. Why would it change the label but not the command?
Offline
Delete the old entry for Mousepad/Kwrite, create new one with Label 'Mousepad', action 'Execute' and execute command 'mousepad'. Works for me.
As for OBmenu changing only label in menu.xml - it seems that it's not perfect (and what is? ). When I tried to create an entry for 'xcalc', after saving the changes and using it in the menu I got gcalctool executed instead. Editing the menu.xml manually did the trick.
Offline
On a related note, is it possible to execute two commands when you click one choice in the menu? I am playing with Conky within LXDE and I wanted to create a "Restart Conky" option within the obmenu (which is one of the choices in the menu within Crunchbang Linux). I've inserted the Execute command and inserted two commands (on two different lines) of:
<command>killall conky</command>
<command>conky</command>
It kills conky but does not restart it. If I use the commands within lxterminal then it works fine. Clearly I'm getting the xml syntax wrong! Can anyone help?
LXDE installed on an Intel E5200 (oc to 3.25ghz), Gigabyte GA-73PVM-S2 motherboard (GEForce 7100 graphics), 2GB 800mhz RAM & a 320GB WD SATA HD.
Offline
EDIT: Nope, my solution does not work
Last edited by Lilim (2009-02-16 12:56:27)
Offline
I put this in the <menu id="system-menu" label="System"> of ~/.config/openbox/menu.xml and I think that this is faster than using obmenu:
<item label="Openbox Menu">
<action name="Execute">
<command>mousepad ~/.config/openbox/menu.xml</command>
</action>
</item>
Offline
Hey guys, I am having this problem as well. I opened obmenu and changed some stuff (a variety of things) and hit save but the changes didn't work. I did this numerous times, and I also manually edited "~/.config/openbox/menu.xml" with the changes. I saved the file, but no changes are taking place in my menu. I reopened "~/.config/openbox/menu.xml" and the changes are still there. I then opened obmenu and the manual changes are not there.
Offline
Don't want to seem obvious but did you do a Reconfigure Openbox. The changes won't take effect until after you restart openbox.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
Don't want to seem obvious but did you do a Reconfigure Openbox. The changes won't take effect until after you restart openbox.
+ 1 I read through the thread and I was wondering why no one had suggested that the OP Reconfigure openbox.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
On a related note, is it possible to execute two commands when you click one choice in the menu? I am playing with Conky within LXDE and I wanted to create a "Restart Conky" option within the obmenu (which is one of the choices in the menu within Crunchbang Linux). I've inserted the Execute command and inserted two commands (on two different lines) of:
<command>killall conky</command>
<command>conky</command>It kills conky but does not restart it. If I use the commands within lxterminal then it works fine. Clearly I'm getting the xml syntax wrong! Can anyone help?
I put this in the <menu id="system-menu" label="System"> of ~/.config/openbox/menu.xml and I think that this is faster than using obmenu:
<item label="Openbox Menu"> <action name="Execute"> <command>mousepad ~/.config/openbox/menu.xml</command> </action> </item>
Have you guys heard of keybindings? Its the greatest of things. One key for killing conky (W-S-c) and another(W-c) for starting it up. You can also set up keybindings like W-o to edit menus W-r to edit the rc.xml etc etc.
Another option is that you can create an alias in your .bashrc like
alias rsCon='killall conky && conky'
alias obm='mousepad ~/.config/openbox/menu.xml
Last edited by Inxsible (2009-02-16 16:38:43)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Inxsible, that's a helpful suggestion and it is something I'm going to explore (I only installed Arch on Friday ) as Crunchbang uses them extensively (and lists them in Conky for ease of reference).
Looking at your alias suggestion, can I use the following for my menu?
<command>killall conky && conky</command>
I'm unfamiliar with the usage of "&&"
LXDE installed on an Intel E5200 (oc to 3.25ghz), Gigabyte GA-73PVM-S2 motherboard (GEForce 7100 graphics), 2GB 800mhz RAM & a 320GB WD SATA HD.
Offline
Inxsible, that's a helpful suggestion and it is something I'm going to explore (I only installed Arch on Friday ) as Crunchbang uses them extensively (and lists them in Conky for ease of reference).
Looking at your alias suggestion, can I use the following for my menu?
<command>killall conky && conky</command>
I'm unfamiliar with the usage of "&&"
I am not sure the <command></command> can parse the double ampersand, but you could try it out. I normally like to use the keyboard to get things done, rather than right click the menu and then select the option. -- especially for things that I do often.
&& basically is chaining the 2 commands -- ie it finishes the first one and then issues the next one...I think you can use multiple && and form a chain.
Last edited by Inxsible (2009-02-16 16:38:11)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Sometimes Obmenu doesn't seem to save the changes to your menu.xml, especially if the command was manually written to the file.
Offline
Have you guys heard of keybindings? Its the greatest of things. One key for killing conky (W-S-c) and another(W-c) for starting it up. You can also set up keybindings like W-o to edit menus W-r to edit the rc.xml etc etc.
Even better you can create and alias in your .bashrc like
I use a lot the keybindings in rc.xml, for example
<keyboard>
...
<keybind key="W-x">
<action name="Execute">
<command>gmrun</command>
</action>
</keybind>
<keybind key="W-z">
<action name="Execute">
<command>xterm -e nano ~/.config/openbox/menu.xml</command>
</action>
</keybind>
...
</keyboard>
and alias in .bashrc, for example
alias e='eject'
I am not sure the <command></command> can parse the double ampersand, but you could try it out
can not, but you can write a script and call it from the menu or a keybinding
Last edited by biagio (2009-02-16 16:53:25)
Offline
On a related note, is it possible to execute two commands when you click one choice in the menu? I am playing with Conky within LXDE and I wanted to create a "Restart Conky" option within the obmenu (which is one of the choices in the menu within Crunchbang Linux). I've inserted the Execute command and inserted two commands (on two different lines) of:
<command>killall conky</command>
<command>conky</command>It kills conky but does not restart it. If I use the commands within lxterminal then it works fine. Clearly I'm getting the xml syntax wrong! Can anyone help?
One command will do what you want:
killall -SIGUSR1 conky
Offline
Paper Lawyer wrote:On a related note, is it possible to execute two commands when you click one choice in the menu? I am playing with Conky within LXDE and I wanted to create a "Restart Conky" option within the obmenu (which is one of the choices in the menu within Crunchbang Linux). I've inserted the Execute command and inserted two commands (on two different lines) of:
<command>killall conky</command>
<command>conky</command>It kills conky but does not restart it. If I use the commands within lxterminal then it works fine. Clearly I'm getting the xml syntax wrong! Can anyone help?
One command will do what you want:
killall -SIGUSR1 conky
That comand worked a treat. Thank you!
LXDE installed on an Intel E5200 (oc to 3.25ghz), Gigabyte GA-73PVM-S2 motherboard (GEForce 7100 graphics), 2GB 800mhz RAM & a 320GB WD SATA HD.
Offline