Skip to content

Instantly share code, notes, and snippets.

@p120ph37
Last active August 29, 2015 14:04
Show Gist options
  • Save p120ph37/5b66d9a2c40bf265c7f5 to your computer and use it in GitHub Desktop.
Save p120ph37/5b66d9a2c40bf265c7f5 to your computer and use it in GitHub Desktop.
Rotate screen every 15 minutes (for 2 hours)
#!/bin/sh
#
# to fix:
# xrandr | grep \ connected | cut -f1 -d\ | xargs -I{} xrandr --output {} --rotate normal
times=2
delay=900
for y in `seq 1 $times`; do
for x in right inverted left normal; do
sleep $delay
xrandr | grep \ connected | cut -f1 -d\ | xargs -I{} xrandr --output {} --rotate $x
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment