Skip to content

Instantly share code, notes, and snippets.

@aboettger
Created January 10, 2015 17:28
Show Gist options
  • Save aboettger/c3f2e7a2038455eb3964 to your computer and use it in GitHub Desktop.
Save aboettger/c3f2e7a2038455eb3964 to your computer and use it in GitHub Desktop.
changes window width (75%)
#!/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