Created
June 16, 2015 16:32
-
-
Save kalebo/743b7e40981f0f61d30c to your computer and use it in GitHub Desktop.
swapwin
This file contains 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 | |
## | |
# Example usage: swapwin firefox 1280 | |
# | |
# Be sure to install wmctrl. | |
## | |
name=$1 | |
location=$2 | |
wmctrl -r $name -b remove,fullscreen | |
wmctrl -r $name -b remove,maximized_vert,maximized_horz | |
wmctrl -r $name -e 0,$location,0,-1,-1 | |
wmctrl -r $name -b add,fullscreen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment