0

Docky has the feature of tiling/cascading the desktop. I'd like to know what it taps into to acheive this, and if I could get similar functionality in Unity without docky

1 Answer 1

1

I'll admit, I'm also curious to know but there is a package that control the behaviour without needing to get under the bonnet.

sudo apt-get install wmctrl

From there you can run:

wmctrl -k on  # hides the desktop
wmctrl -k off # restores

Here's a script for toggling (Credit to Jeff.Smith on Ubuntu Forums):

#!/bin/sh
if wmctrl -m | grep "mode: ON"; then
    exec wmctrl -k off
else
    exec wmctrl -k on
fi

Save that somewhere, chmod +x it and create a launcher for it and you're done.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .