Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

1 Answer 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.