Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: how to start apps?< Next Oldest | Next Newest >
tjwoosta Offline





Group: Members
Posts: 17
Joined: Mar. 2008
Posted: April 18 2008,18:53 QUOTE

thanks man,  i actually understand what that did now!

by the way how do you make custom menu entries?

ive figurd out how to make desktop icons but i would like to have my own menus like you did
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: April 18 2008,18:57 QUOTE

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)
Back to top
Profile PM WEB 
tjwoosta Offline





Group: Members
Posts: 17
Joined: Mar. 2008
Posted: April 19 2008,01:32 QUOTE

thanks again for all your help, worked like a charm!

also when i went into the .fluxbox directory i found where the styles and backgrounds are kept, so now im gonna edit some of these themes and add my own background untill i have a completely customized desktop!
Back to top
Profile PM 
7 replies since April 18 2008,00:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: how to start apps?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code