lucky13
Group: Members
Posts: 1478
Joined: Feb. 2007 |
|
Posted: April 18 2008,18:57 |
|
Open .jwmrc in an editor. It's just XML so you can use other entries as your guide.
Code Sample | <Menu label="my applications"> <Program label="description" icon="icon.xpm">executable string</Program> </Menu>
|
1. Remember to close tags. There are a few exceptions in jwmrc that you can close with a slash, but use close tags (</Menu> and </Program>) for menu entries. This is important when nesting menus -- I set up my close tags when I open them and then go back and fill (usually cut/paste as many as I'll need when I start). 2. Remember that case matters: "Program" is different from "program" and jwm knows this. 3. You can set up labels and icons inside the opening tag for Menu and Program entries. Labels are essential to knowing what each entry does. Icons are optional. Be sure to use quotation marks for both of those. 4. The "executable string" can be whatever you need -- if it's in $PATH you only need the application name (i.e., "beaver" will open the same thing "/usr/bin/beaver" will); if something isn't in $PATH or if you have multiple versions you can use specific paths for what's not in $PATH (e.g., if you want to use /opt/firefox-2.whatever/firefox instead of the default version, etc.); and you can set up specific options if you want (e.g., if you want to set up a command to change your screen to specific color combinations you can set up entries like "xsri --color=black --color2=grey" or if you want to open particular documents without using icons or file managers you can add entries like "beaver .jwmrc").
Let me know if you need more specific info for that or if you run into any problems.
---------- EDIT --------------- Oops. I'm sorry, I forgot you'd written that you're using fluxbox instead of jwm. The fluxbox menu is in /home/dsl/.fluxbox/menu. You can edit it similarly using the existing menu. Its format is like this:
Code Sample | [submenu] (SubMenuName) [exec] (ApplicationDescription) {/path/to/program} [end]
|
So you could make a submenu of "my apps" with an entry for foo to open in aterm:
[submenu] (my apps) [exec] (foo) {aterm -T "foo" -e foo} [end]
Again, sorry I forgot you're using fluxbox.
-------------- "It felt kind of like having a pitbull terrier on my rear end." -- meo (copyright(c)2008, all rights reserved)
|