From: Stefan Huber Date: Tue, 5 Nov 2013 22:31:51 +0000 (+0100) Subject: x220-acpi: bashifiction X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=920f0f73acb04a0740e026e5bac1964b675dd741;p=shutils.git x220-acpi: bashifiction --- diff --git a/lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh b/lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh index 0b319af..9d0b964 100755 --- a/lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh +++ b/lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh @@ -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 \