25 lines
443 B
Bash
Executable file
25 lines
443 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -lt 1 ]
|
|
then
|
|
echo "Usage : $0 [dual|extern|laptop]"
|
|
exit
|
|
fi
|
|
|
|
case "$1" in
|
|
|
|
"dual")
|
|
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
|
|
--output VGA1 --auto --rotate normal --right-of LVDS1
|
|
;;
|
|
|
|
"laptop")
|
|
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
|
|
--output VGA1 --off
|
|
;;
|
|
|
|
"extern")
|
|
xrandr --output LVDS1 --off \
|
|
--output VGA1 --auto --rotate normal
|
|
;;
|
|
esac
|