VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: obmenu  (Read 1245 times)

Herpy

  • Vectorite
  • ***
  • Posts: 142
obmenu
« on: January 31, 2012, 09:29:06 pm »

Since I come from a fluxbox background, I decided to give VL light a spin but editing the menu is a bigger pain for Ob than FB, so I heard that there is OBmenu that makes editing the menu easy but I cannot find it in the repositories, would love to see it in there. Link the the tar is here http://obmenu.sourceforge.net/download.html
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: obmenu
« Reply #1 on: January 31, 2012, 10:38:00 pm »

Got obmenu 1.0 built, should be uploaded and visible by tomorrow.
Please let me know how it tests out.
Ken
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: obmenu
« Reply #2 on: February 01, 2012, 01:02:08 pm »

May I ask which repository it will be in?
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: obmenu
« Reply #3 on: February 01, 2012, 01:23:35 pm »

It's uploading now, along with a number of others. (new firefox, thunderbird, miro, flightgear, and more.)
It's all going to the extra repository.

In the mean time try this.  It's my /etc/xdg/openbox/menu.xml file
Code: [Select]
<?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>galculator</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Character Map">
    <action name="Execute">
      <command>gucharmap</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="File Archiver">
    <action name="Execute">
      <command>xarchiver</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Screenshot">
    <action name="Execute">
      <command>gtk-screenshot</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Xclipboard">
    <action name="Execute">
      <command>xclipboard</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Xeyes">
    <action name="Execute">
      <command>xeyes</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>
<menu id="apps-editors-menu" label="Editors">
  <item label="Leafpad">
    <action name="Execute">
      <command>leafpad</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Leafpad</wmclass>
      </startupnotify>
    </action>
  </item>
<item label="Xedit">
    <action name="Execute">
      <command>xedit</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Nano">
    <action name="Execute">
      <command>xterm -e nano</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Nano</wmclass>
      </startupnotify>
    </action>
   </item>
<item label="mcEdit">
    <action name="Execute">
      <command>xterm -e mcedit</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Nano</wmclass>
      </startupnotify>
    </action>
  </item>
</menu>
<menu id="apps-term-menu" label="Terminals">
 <item label="Xterm">
    <action name="Execute">
    <command>xterm</command>
   </action>
 </item>
<item label="MC">
    <action name="Execute">
    <command>xterm -e mc</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="Netsurf">
    <action name="Execute">
      <command>netsurf</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="Sylpheed">
    <action name="Execute">
      <command>sylpheed</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Chestnut-dailer">
    <action name="Execute">
      <command>chestnut-dialer</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Wicd Internet Connection Manager">
    <action name="Execute">
      <command>wicd-client --no-tray</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>

<menu id="apps-office-menu" label="Office">
  <item label="Abiword">
    <action name="Execute">
      <command>abiword</command>
    </action>
  </item>
  <item label="Gnumeric">
    <action name="Execute">
      <command>gnumeric</command>
    </action>
  </item>
  <item label="J-Pilot">
    <action name="Execute">
      <command>jpilot</command>
    </action>
  </item>
  <item label="Calculator">
    <action name="Execute">
      <command>galculator</command>
    </action>
  </item>
  <item label="Scanning">
    <action name="Execute">
      <command>xsane</command>
    </action>
  </item>
  <item label="Printing">
    <action name="Execute">
      <command>system-config-printer</command>
    </action>
  </item>
  <item label="Cups Interface">
    <action name="Execute">
      <command>/usr/bin/xdg-open http:..localhost:631/</command>
    </action>
  </item>
</menu>

<menu id="apps-multimedia-menu" label="Multimedia">
  <item label="Aumix">
    <action name="Execute">
      <command>aumix</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Grip">
    <action name="Execute">
      <command>grip</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="lxmusic">
    <action name="Execute">
      <command>lxmusic</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="VLC">
    <action name="Execute">
      <command>vlc %U</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>MPlayer</wmclass>
      </startupnotify>
    </action>
  </item>
  <item label="Xine">
    <action name="Execute">
      <command>xine</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="XMMS">
    <action name="Execute">
      <command>xmms</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>

<menu id="apps-fileman-menu" label="File Managers">
  <item label="PC-Manfm">
    <action name="Execute">
      <command>pcmanfm</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="GPicview">
    <action name="Execute">
      <command>gpicview</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Shotwell">
    <action name="Execute">
      <command>shotwell</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Xsane">
    <action name="Execute">
      <command>xsane</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="Xkill">
    <action name="Execute">
      <command>xkill</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>
</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="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
</menu>

</openbox_menu>

Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: obmenu
« Reply #4 on: February 01, 2012, 02:06:16 pm »

So that's where it was hiding, thanks Ken!
Logged
Forever in a box

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: obmenu
« Reply #5 on: February 01, 2012, 11:37:30 pm »

It's uploading now, along with a number of others. (new firefox, thunderbird, miro, flightgear, and more.)
It's all going to the extra repository.

In the mean time try this.  It's my /etc/xdg/openbox/menu.xml file
Code: [Select]
<?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>galculator</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Character Map">
    <action name="Execute">
      <command>gucharmap</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="File Archiver">
    <action name="Execute">
      <command>xarchiver</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Screenshot">
    <action name="Execute">
      <command>gtk-screenshot</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Xclipboard">
    <action name="Execute">
      <command>xclipboard</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Xeyes">
    <action name="Execute">
      <command>xeyes</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>
<menu id="apps-editors-menu" label="Editors">
  <item label="Leafpad">
    <action name="Execute">
      <command>leafpad</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Leafpad</wmclass>
      </startupnotify>
    </action>
  </item>
<item label="Xedit">
    <action name="Execute">
      <command>xedit</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Nano">
    <action name="Execute">
      <command>xterm -e nano</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Nano</wmclass>
      </startupnotify>
    </action>
   </item>
<item label="mcEdit">
    <action name="Execute">
      <command>xterm -e mcedit</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>Nano</wmclass>
      </startupnotify>
    </action>
  </item>
</menu>
<menu id="apps-term-menu" label="Terminals">
 <item label="Xterm">
    <action name="Execute">
    <command>xterm</command>
   </action>
 </item>
<item label="MC">
    <action name="Execute">
    <command>xterm -e mc</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="Netsurf">
    <action name="Execute">
      <command>netsurf</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="Sylpheed">
    <action name="Execute">
      <command>sylpheed</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Chestnut-dailer">
    <action name="Execute">
      <command>chestnut-dialer</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="Wicd Internet Connection Manager">
    <action name="Execute">
      <command>wicd-client --no-tray</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>

<menu id="apps-office-menu" label="Office">
  <item label="Abiword">
    <action name="Execute">
      <command>abiword</command>
    </action>
  </item>
  <item label="Gnumeric">
    <action name="Execute">
      <command>gnumeric</command>
    </action>
  </item>
  <item label="J-Pilot">
    <action name="Execute">
      <command>jpilot</command>
    </action>
  </item>
  <item label="Calculator">
    <action name="Execute">
      <command>galculator</command>
    </action>
  </item>
  <item label="Scanning">
    <action name="Execute">
      <command>xsane</command>
    </action>
  </item>
  <item label="Printing">
    <action name="Execute">
      <command>system-config-printer</command>
    </action>
  </item>
  <item label="Cups Interface">
    <action name="Execute">
      <command>/usr/bin/xdg-open http:..localhost:631/</command>
    </action>
  </item>
</menu>

<menu id="apps-multimedia-menu" label="Multimedia">
  <item label="Aumix">
    <action name="Execute">
      <command>aumix</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Grip">
    <action name="Execute">
      <command>grip</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="lxmusic">
    <action name="Execute">
      <command>lxmusic</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="VLC">
    <action name="Execute">
      <command>vlc %U</command>
      <startupnotify>
        <enabled>yes</enabled>
        <wmclass>MPlayer</wmclass>
      </startupnotify>
    </action>
  </item>
  <item label="Xine">
    <action name="Execute">
      <command>xine</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
<item label="XMMS">
    <action name="Execute">
      <command>xmms</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
</menu>

<menu id="apps-fileman-menu" label="File Managers">
  <item label="PC-Manfm">
    <action name="Execute">
      <command>pcmanfm</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="GPicview">
    <action name="Execute">
      <command>gpicview</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Shotwell">
    <action name="Execute">
      <command>shotwell</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Xsane">
    <action name="Execute">
      <command>xsane</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="Xkill">
    <action name="Execute">
      <command>xkill</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>
</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="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
</menu>

</openbox_menu>

writing error when I try to edit it. And the obmenu has this error in the terminal
herpy:$ obmenu
Error: "/home/herpy/.config/openbox/menu.xml" not found

All of this is in the VL Light beta 3 btw.
Logged
Forever in a box

Joncho

  • Member
  • *
  • Posts: 45
Re: obmenu
« Reply #6 on: February 02, 2012, 07:18:03 am »

Quote
writing error when I try to edit it. And the obmenu has this error in the terminal
herpy:$ obmenu
Error: "/home/herpy/.config/openbox/menu.xml" not found

All of this is in the VL Light beta 3 btw.


The writing error is probably because you need to be root to edit files in /etc directory.

The error message returned by obmenu its because it is trying to edit openbox menu for your user only (/etc/xdg/openbox/menu.xml configuration is global)
         try this in a terminal:
Code: [Select]
cp /etc/xdg/openbox/menu.xml /home/herpy/.config/openbox/menu.xml
then run obmenu
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: obmenu
« Reply #7 on: February 02, 2012, 10:50:43 am »

Ok obmenu has been uploaded and triggered.  It was uploaded along with a huge 8gig flight simulator program so it took the whole day.
It's there now.

ps.
Joncho, is right you will need to be root to edit /etx/xdg/openbox/menu.xml directly.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee