OT: Where to put wmnet parameters?Forum: Other Help Topics Topic: OT: Where to put wmnet parameters? started by: eco2geek Posted by eco2geek on Jan. 02 2006,08:52
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"? Posted by mikshaw on Jan. 02 2006,13:58
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. Posted by eco2geek on Jan. 03 2006,06:36
That was it. Thanks.
D'oh! It was in "startup" twice. |