Is it possible to have single click on the dock icons activate expose by default?
If you have a single window open in ubuntu it doesn't activate expose but if you have multiple windows open it does. This cause issues when I tried to use expose on several different windows in ubuntu.
Contents:
1. Overview
As mentioned in the comments, this functionality apparently got removed since 12.04 and now click on the launcher icon minimizes the window (which apparently was a highly-requested feature, from what I can see in my online searches). However, there exists a keyboard to turn on expo for a single window, which is Super+Ctrl+W. Knowing that, if we can detect click on the launcher or position of the cursor when window is raised , then we can simulate that single window expo via that keyboard shortcut. The script below does exactly that.
This is meant to be saved as
/usr/bin/single_click_expo.py
file and added to Startup Applications2. Script Source
Also available on GitHub
3. Additional notes
NOTE:
The script relies on
xdotool
utility. You must have it installed. Withoutxdotool
it won't work, sincexdotool
is used to simulate keypresses. Install it viasudo apt-get install xdotool