Created
January 12, 2015 16:10
-
-
Save platan/e63b465c2fcfe3d0cccd to your computer and use it in GitHub Desktop.
Maximize all windows from command line in linux (via wmctrl)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
window_ids=$(wmctrl -l | cut -f1 -d " ") | |
for window_id in $window_ids | |
do | |
wmctrl -i -r "$window_id" -b add,maximized_vert,maximized_horz | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
....on second thought, I'm not sure "toggle" is ideal since it will un-maximize windows that are already maxed. might make two separate aliases instead.