Created
January 10, 2015 17:28
-
-
Save aboettger/c3f2e7a2038455eb3964 to your computer and use it in GitHub Desktop.
changes window width (75%)
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 | |
#screenWidth=$(xdpyinfo | grep dimensions | grep -o '[0-9]*' | head -n1) | |
#width=$(xdotool getactivewindow getwindowgeometry --shell | head -4 | tail -1 | sed 's/[^0-9]*//') | |
height=$(xdotool getactivewindow getwindowgeometry --shell | head -5 | tail -1 | sed 's/[^0-9]*//') | |
xdotool getactivewindow windowsize 75% "$height" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment