View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#198
Qole - quick thought;
in your next edition/release.. any chance you could make debwm take 4 arguments, and change xpice to something more generic (startwm) and have it take 2 arguments..

debwm IceWM startwm IceWM icewm-session

this makes it dynamic.. your shortcuts and stuff will still launch iceWM by default.. but this makes it so users can simply add their own menu icon by running:

debwm xfce4 startwm xfce4 xfce4-session

The code would look something like this:

Code:
#/usr/bin/startwm
Xephyr :1 -br -screen 800x480x16 -dpi 96 parent `wmctrl -l | grep -i $1 | awk '{print $1}'` -ac &
....
su user -c 'export DISPLAY=:1; $2'
There might be a way to clean that up a bit .. obviously the first and third arguments need to be the same as they both represent the window managers title.. if there was some way to pass that title using just the first argument would be nice but I haven't tried any of this on my table.. i might do it while I'm bored here at work though..
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!