The following commit has been merged in the master branch:
commit 7244e482907cd1d458563d19f7ac097b2a5a913f
Author: Damyan Ivanov <[EMAIL PROTECTED]>
Date: Sat Sep 6 00:59:17 2008 +0300
hotkey.sh: move camera toggling in a function; detect unavailable camera
diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index cb4ae6b..589e5e9 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -91,6 +91,15 @@ show_camera() {
fi
}
+handle_camera_toggle() {
+ if [ -e $CAM_CTL ]; then
+ toggle_camera
+ show_camera
+ else
+ notify Camera unavailable
+ fi
+}
+
#show_brightness() {
# # final digit of ACPI code is brightness level in hex
# level=0x${code:${#code}-1}
@@ -141,8 +150,7 @@ case $code in
;;
0000001c)
# soft-buton 3 -- toggle camera
- toggle_camera
- show_camera
+ handle_camera_toggle
;;
0000001d)
# soft-buton 4 -- toggle bluetooth
--
Maintenance of eeepc-acpi-scripts debian package
_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel