Azundris
May 7th, 2007, 02:16 PM
Since "set window attribs by various criteria" only seems to work once in a blue moon (is this random? is it first match for a program only? and what about regexes? I'll really have to look into it some time.), there is no option for size, and positioning isn't a very exact science, I wrote a QND shell-wrapper around wmctl that spins the cube (or, presumably, the wall) to the appropriate viewport, opens the given program there, and applies a geometry (x,y,width,height) if given. This is more visually effective when starting several programs in sequence, sending the cube spinning, say when starting your session. I spawn mine off from ~/.xinitrc, like so:
[code:3455e]( sleep 10; ~/bin/my_session )[/code:3455e]
[url=http://www.azundris.com/hacks/scripts/my_session.example:3455e]example session[/url:3455e]
[url=http://www.azundris.com/hacks/scripts/xstartup:3455e]start script[/url:3455e]
[url=http://www.azundris.com/hacks/scripts/wmctl-1.07.tar.bz2:3455e]wmctl-1.07.tar.bz2[/url:3455e]
Yes, this is complete rubbish, but I find it amusing rubbish until it's sorted in the WM. :)
[code:3455e]( sleep 10; ~/bin/my_session )[/code:3455e]
[url=http://www.azundris.com/hacks/scripts/my_session.example:3455e]example session[/url:3455e]
[url=http://www.azundris.com/hacks/scripts/xstartup:3455e]start script[/url:3455e]
[url=http://www.azundris.com/hacks/scripts/wmctl-1.07.tar.bz2:3455e]wmctl-1.07.tar.bz2[/url:3455e]
Yes, this is complete rubbish, but I find it amusing rubbish until it's sorted in the WM. :)