Advertisement
metalx1000

Maximize all Windows

Aug 29th, 2017
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/bash              
  2. window_ids=$(wmctrl -l | cut -f1 -d " ")            
  3. for window_id in $window_ids                        
  4. do                        
  5.   wmctrl -i -r "$window_id" -b toggle,maximized_vert,maximized_horz                                    
  6.   wmctrl -i -r "$window_id" -b add,maximized_vert,maximized_horz                                        
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement