Last active
August 29, 2015 14:04
-
-
Save p120ph37/5b66d9a2c40bf265c7f5 to your computer and use it in GitHub Desktop.
Rotate screen every 15 minutes (for 2 hours)
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/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