View previous topic :: View next topic |
Author |
Message |
ions Apprentice
Joined: 16 Jul 2003 Posts: 235
|
Posted: Thu Aug 05, 2004 10:45 pm Post subject: ob3 menu - Any Idea Why This Won't Work? |
|
|
I can't get nano to start up to edit my userContent.css nor my menu.xml. The menu does appear but those commands do not work.
Here's the code:
Code: |
<menu id="root-menu" label="Computer">
<item label="aterm">
<action name="Execute"><execute>aterm -tr -trsb -fg white -bg black -sh 40 +sb -fn 1x1</execute></action>
</item>
<item label="FireFox">
<action name="Execute"><execute>firefox</execute></action>
</item>
<item label="Evolution">
<action name="Execute"><execute>evolution</execute></action>
</item>
<separator />
<menu id="internet-menu" />
<menu id="apps-menu" />
<menu id="games-menu" />
<separator />
<menu id="client-list-menu" />
<separator />
<item label="Edit userContent">
<action name="Execute"><execute>nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css</execute></ac$
</item>
<item label="Edit ob3 Menu">
<action name="Execute"><execute>sudo nano -w /etc/xdg/openbox/menu.xml</execute></action>
</item>
<item label="ObConf">
<action name="Execute"><execute>obconf</execute></action>
</item>
<item label="Reconfigure">
<action name="Reconfigure" />
</item>
<separator />
<item label="Reboot">
<action name="Execute"><execute>sudo /sbin/reboot</execute></action>
</item>
<item label="PowerOff">
<action name="Execute"><execute>sudo /sbin/poweroff</execute></action>
</item>
<item label="Exit">
<action name="Exit" />
</item>
</menu>
</openbox_menu>
|
|
|
Back to top |
|
|
affinity n00b
Joined: 01 Jul 2004 Posts: 66
|
Posted: Thu Aug 05, 2004 11:14 pm Post subject: |
|
|
Code: | aterm -e nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css |
BTW, you could use ~/.config/openbox/menu.xml instead of /etc/xdg/openbox/menu.xml. |
|
Back to top |
|
|
ions Apprentice
Joined: 16 Jul 2003 Posts: 235
|
Posted: Thu Aug 05, 2004 11:55 pm Post subject: |
|
|
Using aterm -e causes an aterm to pop up for a split second and then dissapears. |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Fri Aug 06, 2004 1:21 am Post subject: |
|
|
Try Code: | aterm -e "nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css" | That may fix it... _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
ions Apprentice
Joined: 16 Jul 2003 Posts: 235
|
Posted: Fri Aug 06, 2004 1:33 am Post subject: |
|
|
Nope. Aterm still blips onscreen quickly and is gone. |
|
Back to top |
|
|
blixel Guru
Joined: 19 Jul 2004 Posts: 403 Location: Central, Florida
|
Posted: Fri Aug 06, 2004 3:06 am Post subject: Re: ob3 menu - Any Idea Why This Won't Work? |
|
|
ions wrote: | I can't get nano to start up to edit my userContent.css nor my menu.xml. The menu does appear but those commands do not work. |
Make a shell script that does what you want and put it in your home directory. (I use ~/bin for my own custom shell scripts like that.) Then link to the shell script from your OB menu.
Create a shell script something like this
--
#!/bin/bash
aterm -e nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css
---
Then edit your OB menu like this.
<item label="Put whatever you want here">
<action name="Execute"><execute>/home/chris/bin/launch-nano.sh</execute></action>
</item> |
|
Back to top |
|
|
|