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)