tdualhead - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
tdualhead (595B)
---
1 #!/bin/sh
2
3 case "$1" in
4 left)
5 xrandr --output VGA1 --primary --auto --output LVDS1 --auto --right-of VGA1;;
6 right)
7 xrandr --output VGA1 --primary --auto --output LVDS1 --auto --left-of VGA1;;
8 dup)
9 xrandr --output VGA1 --same-as LVDS1 --output LVDS1 --primary;;
10 screen)
11 xrandr --output VGA1 --primary --auto --output LVDS1 --off;;
12 laptop)
13 xrandr --output LVDS1 --primary --auto --output VGA1 --off;;
14 list)
15 xrandr | grep '\<connected\>' | cut -d\ -f1;;
16 *) echo `basename $0` '{left|right|dup|screen|laptop|list}';;
17 esac