minimize all windows EXCEPT the active one (toggle)
Most Window Managers come with an "Show Desktop" feature, that will toggle all non-minimized (-iconized) Windows to minimized and back.
Futhermore, in KDE3 we had the possibility to script it by: Code:
dcop kicker kicker toggleShowDesktop M$ is ostentatiously about a new feature in W****** 7 which does the same but leaves the active window untouched. For this, you have to "shake" the windows (which is quite tedious in comparison to some hotkey). This really could be handy e.g. if you are working in a file manager (or browser) and want temporarily access to your desktop to place a link there. And the most comfortable way should be a plain shell script that can be assigned to a hotkey at discretion. Well, first I thought this would be an easy job to to. The idea is clear and presented below, but far from working as expected. As it took more than an hour of searching and trying to find a method how to determine the active window, I leave the 'pseudocode ' here - maybe we work it out collaboratively... Code:
# Minimize/restore all windows except the active one |
"xdotool getactivewindow" will give you the window id of the currently-focused window.
|
I guess you want this for kde, or are you open to alternative -scriptable- window managers?
In fvwm I'd do Code:
All (!Focused) Iconify on |
All times are GMT -5. The time now is 05:52 AM. |