From 920f0f73acb04a0740e026e5bac1964b675dd741 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 5 Nov 2013 23:31:51 +0100 Subject: [PATCH] x220-acpi: bashifiction --- lenovo-x220-linuxacpi/etc/acpi/actions/btn-vga.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 \ -- 2.39.5