You are not logged in.

#1 2009-04-10 19:45:05

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 88

[Solved]Openbox menu - manual editing - need some help.

hi...

I want to put some commonly used apps directly on the root menu (i.e, without needing to go through a submenu). But I am not able to do so. Putting this,

<item label="Emacs">
    <action name="Execute">
      <command>emacs</command>
    </action>
 </item>
<menu id="root-menu" label="Openbox 3">
  <separator label="Aditya"/>
  <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"/>
 <separator label="Actions"/>
  <item label="Log Out">
    <action name="SessionLogout">
      <prompt>yes</prompt>
    </action>
  </item>
  <item label="Bashrun">
    <action name="Execute">
      <command>bashrun</command>
    </action>
  </item>

Using this code, I can get the Bashrun to show on the menu, but not the emacs entry...?

what is wrong here...?

I prefer not to use obmenu, as I want to learn how to do this myself. I have searched many links but its not clear to me.

Thanks

Last edited by jaydoc (2009-04-10 21:42:11)


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#2 2009-04-10 19:47:31

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [Solved]Openbox menu - manual editing - need some help.

Why don't you first use Obmenu which creates a correct xml code, and then study this code and learn from it?

Last edited by thunderogg (2009-04-10 19:47:49)

Offline

#3 2009-04-10 19:54:51

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved]Openbox menu - manual editing - need some help.

or just notice that Bashrun is _in_ the root menu and Emacs is not.  make it so:

<menu id="root-menu" label="Openbox 3">
  <separator label="Aditya"/>
  <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"/>
 <separator label="Actions"/>
  <item label="Log Out">
    <action name="SessionLogout">
      <prompt>yes</prompt>
    </action>
  </item>
  <item label="Bashrun">
    <action name="Execute">
      <command>bashrun</command>
    </action>
  </item>
  <item label="Emacs">
      <action name="Execute">
        <command>emacs</command>
      </action>
   </item>

edit: mwahaha Inxsible i got you! i think we have similar usage habits as i find we post on the same threads alot.

Last edited by brisbin33 (2009-04-10 19:58:51)

Offline

#4 2009-04-10 19:57:14

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]Openbox menu - manual editing - need some help.

Aditya,

that is because the menu item is outside the root-menu. You haven't given us the complete menu..but is should look something like this

<menu id="root-menu" label="Openbox 3">
<item label="Emacs">
    <action name="Execute">
      <command>emacs</command>
    </action>
 </item>
  <separator label="Aditya"/>
  <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"/>
 <separator label="Actions"/>
  <item label="Log Out">
    <action name="SessionLogout">
      <prompt>yes</prompt>
    </action>
  </item>
  <item label="Bashrun">
    <action name="Execute">
      <command>bashrun</command>
    </action>
  </item>

Edit: Dammit Got beat !

Last edited by Inxsible (2009-04-10 19:57:56)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2009-04-10 20:01:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]Openbox menu - manual editing - need some help.

brisbin33 wrote:

edit: mwahaha Inxsible i got you! i think we have similar usage habits as i find we post on the same threads alot.

You are on my radar !! wink


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2009-04-10 21:41:39

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 88

Re: [Solved]Openbox menu - manual editing - need some help.

well... thanks guys, for the speedy replies. I have a great looking menu now, just like I want it to look.


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

Board footer

Powered by FluxBB