Something that's missing in Blackbox is the ability to minimize all applications. This is something which is on their todo list, but I thought I'd make a script which could do this by leveraging wmctrl.
Goal / pseudocode ∞
- Use wmctrl get a list of all applications
- Learn which applications are on the current desktop
- Learn which applications are not minimized
- Minimize all non-minimized applications
-
Set some variable to true
Also do the reverse:
- If some variable is true
- Use wmctrl get a list of all applications
- Learn which applications are on the current desktop
- Learn which applications are minimized
- Restore all minimized applications
-
Set some variable to false
- The Result:
Well, it's not good
- It's not possible to minimize a window!
-
I also have no idea how to learn the status of a window.
So I ended up toggling shaded. Sigh.
I might explore this to set the variable and properly turn shaded on or off depending on that variable.
- To do:
-
There are some other X applications which I could use to determine individual window settings.
Ruby code ∞
(Ruby)
TODO - link to GitHub - wmctrl_minimize_all.rb
Last updated 2016-12-31 at 15:57:53