Excellent. Thank you.MochiMoppel wrote:For closing all windows on all desktops you can use something like this:Code: Select all
WIN_ID=$(wmctrl -l | awk '{print $1}') for i in $WIN_ID; do wmctrl -ic $i done
How to close all windows of a given program at once
- TwoPuppies
- Posts: 77
- Joined: Wed 29 Dec 2010, 05:13
- Location: Melbourne, Australia
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]
Puppy Linux, and the sort with four legs and a tail.[/color]
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
User gychang requested here to close all minimized windows at once.
One way to do this:
One way to do this:
Code: Select all
WIN_ID=$(wmctrl -l | awk '{print $1}')
for i in $WIN_ID; do
[[ $(xprop -id $i WM_STATE) = *Iconic* ]] && wmctrl -ic $i
done
this script works well!MochiMoppel wrote:User gychang requested here to close all minimized windows at once.
One way to do this:Code: Select all
WIN_ID=$(wmctrl -l | awk '{print $1}') for i in $WIN_ID; do [[ $(xprop -id $i WM_STATE) = *Iconic* ]] && wmctrl -ic $i done
---
trying to learn puppylinux... :D
---
trying to learn puppylinux... :D
---