Minimize all or single opened application window(s) [SOLVED]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Minimize all or single opened application window(s) [SOLVED]
Hello,
Is it possible and if yes, how to minimize all opened application windows to the task bar using a command line?
Thank you.
Cordialement.
Is it possible and if yes, how to minimize all opened application windows to the task bar using a command line?
Thank you.
Cordialement.
Last edited by Argolance on Mon 21 Jan 2013, 14:56, edited 1 time in total.
Here you go.
Minimize all windows:
Unminimize:
More:
I've seen some packages in PET'n'Stuff section.
Too bad it's not OOTB in Puppies - it's small yet very powerful...
Greetings!
Minimize all windows:
Code: Select all
for i in `wmctrl -l | cut -f1 -d ' '`; do wmctrl -i -r $i -b add,hidden; done
Code: Select all
for i in `wmctrl -l | cut -f1 -d ' '`; do wmctrl -i -r $i -b remove,hidden; done
Code: Select all
wmctrl --help
Too bad it's not OOTB in Puppies - it's small yet very powerful...
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
You can also use xdotool-
Available here- http://www.murga-linux.com/puppy/viewtopic.php?t=79573
Cheers,
s
Code: Select all
for i in $(xdotool search ".*");do xdotool windowminimize $i;done
Cheers,
s
Amigo, yes - I checked it out again and most likely it's:
wmctrl -k on
however it doesn't work in JWM, though eg. Openbox is fine...
Greetings!
wmctrl -k on
however it doesn't work in JWM, though eg. Openbox is fine...
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
Thank you for answering.
This is exactly what I was expecting for, though I had to install wmctrl using PPM because it is not present on Puppy Precise 5.4.3.
May I ask a supplementary question, so this will be quite perfect and duly [SOLVED] :
How to minimize a single window? I noticed this command line running wmctrl --help, to close the window "gracefully":I presume <WIN> is something like the window ID? I would like to know how to get it?
Cordialement.
Thank you for answering.
This is exactly what I was expecting for, though I had to install wmctrl using PPM because it is not present on Puppy Precise 5.4.3.
May I ask a supplementary question, so this will be quite perfect and duly [SOLVED] :
How to minimize a single window? I noticed this command line running wmctrl --help, to close the window "gracefully":
Code: Select all
wmctrl -c <WIN>.
Cordialement.
That one simply closes a window, not minimizes it.Argolance wrote:How to minimize a single window? I noticed this command line running wmctrl --help, to close the window "gracefully":I presume <WIN> is something like the window ID? I would like to know how to get it?Code: Select all
wmctrl -c <WIN>.
To get names and IDs of opened windows:
Code: Select all
wmctrl -l
Code: Select all
wmctrl -r window_name -b add,hidden
Code: Select all
wmctrl -i -r window_ID -b add,hidden
Also, if you're planning more complex actions (eg. to simulate keystrokes, mouse) it's worth to follow Seaside's advice and play with xdotool too, since they (xdotool+wmctrl) complement each other in some extent.
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]