1

I want to know how to restore all windows which I have minimized (using the mouse). I find it annoying to have to browse through my windows manually to restore all of them.

Both GUI-based and command line solutions work for me.

To show that I have searched for answers before posting here:

Pang
  • 373
DriesB
  • 51

2 Answers2

4

There's a package called xdotools which can do this. The command to be used is;

xdotool search --onlyvisible --name '.*' windowactivate %@

You can add this to a shortcut and place it on the toolbar so a single click opens everything.

Kulfy
  • 17,696
Tsundar
  • 51
  • Yes, this works! But I get an error message as well: XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1). – DriesB Sep 12 '19 at 10:04
  • Yes sorry it did error for me, but I figured if I really wanted to I'd script something to catch and dispose of the error messages, sloppy I know but it's a way around the initial question. – Tsundar Sep 16 '19 at 15:53
4

Based on this post by user55822 on closing all open windows, I found the following solution:

WIN_IDs=$(wmctrl -l | awk '$3 != "N/A" {print $1}')
for i in $WIN_IDs; do wmctrl -ia "$i"; done
pomsky
  • 68,507
DriesB
  • 51