[openbox] Move to last desktop

Brian Mattern rephorm at rephorm.com
Mon Dec 10 16:40:49 EST 2012


On Mon, 10 Dec 2012, Jim Rees wrote:

> As long as you're willing to use ugly hacks, how about this?
> 
>   wmctrl -s `wmctrl -d |tail +2 |wc -l`
> 
> Faster, less typing, and no upper limit on number of desktops.  Better, use
> "expr" instead of "tail" but you'll have to work out the double eval.

wmctrl -s $(expr `wmctrl -d|wc -l` - 1)


More information about the openbox mailing list