Skip to content

Instantly share code, notes, and snippets.

@TobleMiner
Created February 18, 2015 23:00
Show Gist options
  • Save TobleMiner/3a077031ddf442461bf3 to your computer and use it in GitHub Desktop.
Save TobleMiner/3a077031ddf442461bf3 to your computer and use it in GitHub Desktop.
Shell fullscreen
#!/bin/bash
x_width=$(xrandr --current | grep '* ' | uniq | awk '{print $1}' | cut -d 'x' -f1)
x_height=$(xrandr --current | grep '* ' | uniq | awk '{print $1}' | cut -d 'x' -f2)
chromium&
pid=$!
while [ "$WID" == "" ]; do
WID=$(wmctrl -lp | grep $pid | cut "-d " -f1)
done
wmctrl -i -r $WID -e 0,0,0,"$x_width","$x_height"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment