scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

rotmon (432B)


      1 #!/bin/sh
      2 #
      3 # parazyd - (c) wtfpl 2016
      4 # skreenz
      5 
      6 IN="LVDS1"
      7 EXT="VGA1"
      8 
      9 case "$1" in
     10 	left|l)
     11 		xrandr --output $IN --rotate left
     12 #		nitrogen --restore
     13 		;;
     14 	right|r)
     15 		xrandr --output $IN --rotate right
     16 #		nitrogen --restore
     17 		;;
     18 	inverted|i)
     19 		xrandr --output $IN --rotate inverted
     20 #		nitrogen --restore
     21 		;;
     22 	normal|n)
     23 		xrandr --output $IN --rotate normal
     24 		;;
     25 	*)
     26 		echo `basename $0` '{left|right|inverted|normal}'
     27 		;;
     28 esac