chscr (256B)
1 #!/usr/bin/env sh 2 3 set -e 4 5 if [ -z "$1" ]; then 6 echo "Use vga or lvds as a argument." 7 exit 1 8 fi 9 10 case "$1" in 11 "vga" ) 12 xrandr --output VGA-1 --auto --output LVDS-1 --off;; 13 "lvds" | * ) 14 xrandr --output LVDS-1 --auto --output VGA-1 --off;; 15 esac 16