x220-acpi: bashifiction
authorStefan Huber <shuber@sthu.org>
Tue, 5 Nov 2013 22:31:51 +0000 (23:31 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 5 Nov 2013 22:31:51 +0000 (23:31 +0100)
lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh

index 0b319af3367afb50afa2bae9340ff2bad4d401af..9d0b9648a49103ced254ff47668c7c3615da1534 100755 (executable)
@@ -6,7 +6,7 @@ getXconsole
 STATEFILE="/var/run/vgastate"
 LVDS1_defaultmode="1366x768"
 
-function vgaoff
+vgaoff()
 {
        logger "Turn external video off, putting LVDS1 to standard setup"
        xrandr --output VGA1 --off \
@@ -15,7 +15,7 @@ function vgaoff
        echo "vgaoff" > $STATEFILE
 }
 
-function vgamirror
+vgamirror()
 {
        logger "Mirror LVDS1 to $1"
        xrandr --output $1 --primary --auto \
@@ -23,7 +23,7 @@ function vgamirror
        echo "vgamirror" > $STATEFILE
 }
 
-function vgarightof
+vgarightof()
 {
        logger "Putting $1 right of of LVDS1"
        xrandr --output LVDS1 --primary --auto --mode $LVDS1_defaultmode \
@@ -31,7 +31,7 @@ function vgarightof
        echo "vgarightof" > $STATEFILE
 }
 
-function vgaleftof
+vgaleftof()
 {
        logger "Putting $1 left of of LVDS1"
        xrandr --output LVDS1 --primary --auto --mode $LVDS1_defaultmode \