You are not logged in.

#1 2009-04-08 02:18:21

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Trying openbox again

I have been using Arch with KDEmod 4 on my desktop with no issues. I want to install Arch on my laptop (HP Compaq 6910p) with Openbox. I tried Openbox once before but couldn't figure out how to customize it the way I wanted. I have every thing installed and somewhat functional. I am trying to set up my menu.xml but couldn't find answers to a few questions from googling. This is a rough outline of what I want my menu to look like:

Firefox
Home
Pidgin
xterm
-----

Office
-OoO - Writer
---- - Calc
---- - Impress
---- - Base
---- - Draw
---- - Math
-Calculator
-Ark
-Leafpad

Graphics
-Gimp
-Nitrogen
-gqView

Multimedia
-Banshee
-Sonata
-VLC
-Mplayer

Net
-Firefox
-Pidgin
-Wicd


Places
-Docs
-Pics
-Music
-Video
-OS Images
-eBooks

I'm having trouble with a few things:
1. I'm not sure how to get Firefox and the other things at the top to show up there. I am not too sure what I am doing but I moved the Firefox entry right below <openbox_menu> and when I reconfigure it doesn't show up. How do I get things to show up there?
2. I want everything to be in the order it is listed here. I moved the Office category to the top of the menu.xml file but it still shows somewhere toward the bottom. Not sure why?
3. Openoffice isn't in /usr/bin , where is it installed so I can add it to work in the menu?


I know these are probably somewhat easy question to answer but I'm not too sure what I am doing yet. I really want to give openbox a fair chance this time and make it work. Thanks for the help.

Offline

#2 2009-04-08 02:20:30

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

Re: Trying openbox again

Here's my menu.xml. Edit and use as you see fit

<?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="Feh">
      <action name="Execute">
    <command>feh -g 640x480 -d -S filename ~/wallpapers</command>
      </action>
    </item>
    <item label="Mirage">
      <action name="Execute">
    <command>mirage</command>
      </action>
    </item>    
    <item label="Leafpad">
      <action name="Execute">
        <command>leafpad</command>
      </action>
    </item>
    <item label="PCManFM">
      <action name="Execute">
    <command>pcmanfm</command>
      </action>
    </item>
    <item label="Rxvt Unicode">
      <action name="Execute">
    <command>urxvt -bg black -fg white</command>
      </action>
    </item>
    <item label="XArchiver">
      <action name="Execute">
    <command>xarchiver</command>
      </action>
    </item>
  </menu>

  <menu id="apps-net-menu" label="Internet">
    <item label="Firefox">
      <action name="Execute">
        <command>firefox</command>
      </action>
    </item>
    <item label="Pidgin">
      <action name="Execute">
    <command>pidgin</command>
      </action>
    </item>
    <item label="Skype">
      <action name="Execute">
        <command>skype</command>
      </action>
    </item>
    <item label="rTorrent">
      <action name="Execute">
    <command>urxvt -bg black -fg white -T "rTorrent" -name rTorrent -e screen -S rtorrent rtorrent</command>
      </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="sonata">
      <action name="Execute">
    <command>sonata</command>
      </action>
    </item>
    <item label="vlc">
      <action name="Execute">
    <command>vlc</command>
      </action>
    </item>
    <item label="Recorder">
      <action name="Execute">
    <command>recorder</command>
      </action>
    </item>
    <item label="Easytag">
      <action name="Execute">
    <command>easytag</command>
      </action>
    </item>
  </menu>

  <menu id="system-menu" label="System">
    <item label="Conky">
      <action name="Execute">
    <command>conky</command>
      </action>
    </item>
    <item label="hTop">
      <action name="Execute">
    <execute>urxvt -bg black -fg white -name hTop -T "hTop" -e htop</execute>
      </action>
    </item>
    <item label="Pstree">
      <action name="Execute">
    <execute>urxvt -bg black -fg white -T "Pstree" -e pstree.x11</execute>
      </action>
    </item>
    <item label="nVidia X Server Settings">
      <action name="Execute">
    <command>nvidia-settings</command>
      </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> -->
  </menu>
  <menu id="openbox-menu" label="OpenBox">
    <item label="Appearance">
      <action name="Execute">
    <command>lxappearance</command>
      </action>
    </item>
    <item label="Change Wallpaper">
      <action name="Execute">
    <command>feh -g 640x480 -d -S filename ~/wallpapers/</command>
      </action>
    </item>
    <item label="Configuration Manager">
      <action name="Execute">
    <command>obconf</command>
      </action>
    </item>
  <separator/>
    <item label="Reconfigure">
      <action name="Reconfigure"/>
    </item>
  </menu>
  
  <menu id="quit-menu" label="Quit">
    <item label="Log Out">
      <action name="Exit">
    <prompt>yes</prompt>
      </action>
    </item>
    <item label="Reboot">
      <action name="Execute">
    <command>sudo reboot</command>
      </action>
    </item>
    <item label="Shutdown">
      <action name="Execute">
    <command>sudo poweroff</command>
      </action>
    </item>
  </menu>  

  <menu id="root-menu" label="Openbox 3">
    <separator label="Openbox 3"/>
    <item label="Terminal">
      <action name="Execute">
    <command>urxvt -bg black -fg white</command>
      </action>
    </item>
    <item label="Web Browser">
      <action name="Execute">
    <command>firefox</command>
      </action>
    </item>
    <item label="File Manager">
      <action name="Execute">
    <command>pcmanfm</command>
      </action>
    </item>
    <separator label="Applications"/>
    <menu id="apps-accessories-menu"/>
    <menu id="apps-net-menu"/>
    <!-- <menu id="apps-office-menu"/> -->

    <menu id="apps-multimedia-menu"/>
    <separator label="System"/>
    <menu id="system-menu"/>
    <menu id="openbox-menu"/>
    <separator label="Quit"/>
    <menu id="quit-menu"/>
  </menu>
</openbox_menu>

you will need to change the menu with the id=root-menu to change the order of the apps.

So basically every menu is individually created and then I use the id of each to plug them into the main menu with id=root-menu

Last edited by Inxsible (2009-04-08 02:23:57)


Forum Rules

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

Offline

#3 2009-04-08 07:33:17

celettu
Member
Registered: 2007-12-01
Posts: 143
Website

Re: Trying openbox again

Isn't using OBmenu easier?


Keep it Simple, Sexy

Offline

#4 2009-04-08 07:42:04

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Trying openbox again

Obmenu would do the trick, but I find it better and faster to use key shortcuts for most used apps....


Mr Green

Offline

#5 2009-04-08 08:00:05

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: Trying openbox again

You can also try out obmenu.

Edit: ninja'd *reloads all tabs before going farther*

Last edited by cerbie (2009-04-08 08:00:59)


"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner

Offline

#6 2009-04-08 15:28:37

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Re: Trying openbox again

celettu wrote:

Isn't using OBmenu easier?

I was going to try that as well, but I am not sure how to make the entries I want to appear at the very top of the menu show up there using OBmenu? Also, sometimes I have found OBMenu doesn't save the changes.

Offline

#7 2009-04-08 15:39:00

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

Re: Trying openbox again

JawsThemeSwimming428 wrote:
celettu wrote:

Isn't using OBmenu easier?

I was going to try that as well, but I am not sure how to make the entries I want to appear at the very top of the menu show up there using OBmenu? Also, sometimes I have found OBMenu doesn't save the changes.

did you have a look at my post about regarding the menu with id=root-menu? Its listed in there. The first 3 entries are for Terminal, Web Browser and File Manager


Forum Rules

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

Offline

#8 2009-04-08 17:33:45

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Re: Trying openbox again

Inxsible wrote:
JawsThemeSwimming428 wrote:
celettu wrote:

Isn't using OBmenu easier?

I was going to try that as well, but I am not sure how to make the entries I want to appear at the very top of the menu show up there using OBmenu? Also, sometimes I have found OBMenu doesn't save the changes.

did you have a look at my post about regarding the menu with id=root-menu? Its listed in there. The first 3 entries are for Terminal, Web Browser and File Manager

Yea, I am at work and plan on trying it when I get home. I appreciate everyone's help.

Offline

#9 2009-04-09 00:10:20

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Trying openbox again

Ummmm....  First of all,  if you are using the menu.xml that came with arch,  it needs a little bit of explaining in order for you to be able to use it effectively.

That particular menu.xml actually sets up the submenus first, and then, near the bottom of the xml it sets up the root menu.

If you want to have a custom menu set up prior to that, you can simply write it up in another xml file with a unique menu id, then put that menu id into the root menu, and also put the name of the xml file into the files section of the rc.xml.

If you need help with it, post your menu.xml and we can go from there.

HTH


Knute

Offline

Board footer

Powered by FluxBB