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
 

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

reply to topic new topic new poll
Topic: OT: Where to put wmnet parameters?< Next Oldest | Next Newest >
eco2geek Offline





Group: Members
Posts: 16
Joined: Aug. 2005
Posted: Jan. 02 2006,08:52 QUOTE

This is OT because it's not DSL-related. (Maybe a bit, since I borrowed from DSL when configuring Fluxbox on my computer. Thanks, guys.)

I'm trying to configure wmnet to work with Fluxbox on Debian, and it doesn't seem to want to be started in ~/.fluxbox/startup, just in ~/.fluxbox/slitlist (if it's in both it puts up two instances, one just floating on the desktop). However, it needs to monitor "lan0" rather than the default "eth0", so it needs the "--device=lan0" parameter, but it won't take any parameters in "slitlist".

How can I feed it parameters without calling it in "startup"?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 02 2006,13:58 QUOTE

Most non-interactive programs check for a "help" parameter, and if found will display available parameters and quit.  Usually it is "--help", "-help", or "-h", and sometimes you can use any of those on a given application.  It's my opinion that all apps that accept commandline parameters *should* accept all 3 versions of help, but not enough developers do that.
Open a terminal and type "wmnet --help".  You'll see that it has a "-w" option, which is used to start it "withdrawn" (for slit, dock, etc), and "-W" for device name.
So, if you add "wmnet -wW lan0 &" to .xinitrc (or optionally .fluxbox/startup in flux 0.9.x) you should get what you need.

Slitlist does not start applications...it just tells fluxbox what order to display them.  If you got doubles, it probably wasn't because of the slitlist.

EDIT:  It seems you already knew the --help thing, but i'll leave the post in case it helps others.  The most important thing, though, is that the apps is started "withdrawn" in order to get it into the slit, and put the command in .xinitrc so you can add parameters.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
eco2geek Offline





Group: Members
Posts: 16
Joined: Aug. 2005
Posted: Jan. 03 2006,06:36 QUOTE

Quote
You'll see that it has a "-w" option, which is used to start it "withdrawn"

That was it. Thanks.

Quote
Slitlist does not start applications...it just tells fluxbox what order to display them.  If you got doubles, it probably wasn't because of the slitlist.

D'oh! It was in "startup" twice.
Back to top
Profile PM 
2 replies since Jan. 02 2006,08:52 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: OT: Where to put wmnet parameters?

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