[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 440c60c9e962da7ba96dcb0855a82f1b326dfefb

Nico Golde nion at debian.org
Fri Mar 7 13:26:34 UTC 2008


The following commit has been merged in the master branch:
commit b4f7d6ace080b723f3905cbc368561453ecb5db4
Author: Nico Golde <nion at debian.org>
Date:   Fri Mar 7 14:24:58 2008 +0100

    beginning with vga toggle script

diff --git a/actions/vga-toggle.sh b/actions/vga-toggle.sh
new file mode 100644
index 0000000..48bc070
--- /dev/null
+++ b/actions/vga-toggle.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# return: 0 on disconnect, 1 on connected vga, 2 else
+getvga_status(){
+    STATUS=$( xrandr -q | grep VGA | cut -d ' ' -f 2,3 )
+    case "$STATUS" in
+    disconnected*)
+        return 0
+        ;;
+    connected\ \(*)
+        return 1
+        ;;
+    *)
+        return 2
+        ;;
+    esac
+}
+
+getvga_status
+# handle return value
+

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list