mutt: Update colors-gruvbox-shuber
[shutils.git] / lenovo-x220-linuxacpi / etc / acpi / actions / btn-vga.sh
index 629b400a6e4177dfb8b3ba64f1f2b446b20d71b3..9d0b9648a49103ced254ff47668c7c3615da1534 100755 (executable)
@@ -1,11 +1,12 @@
 #! /bin/sh
 
 . /usr/local/bin/getXenv.inc
+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 \
@@ -14,7 +15,7 @@ function vgaoff
        echo "vgaoff" > $STATEFILE
 }
 
-function vgamirror
+vgamirror()
 {
        logger "Mirror LVDS1 to $1"
        xrandr --output $1 --primary --auto \
@@ -22,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 \
@@ -30,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 \