aboutsummaryrefslogtreecommitdiff
path: root/my-x200.sh
diff options
context:
space:
mode:
Diffstat (limited to 'my-x200.sh')
-rw-r--r--my-x200.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/my-x200.sh b/my-x200.sh
index a34d9b0..1cd3b06 100644
--- a/my-x200.sh
+++ b/my-x200.sh
@@ -14,6 +14,18 @@ case "$1" in
14 ;; 14 ;;
15 esac 15 esac
16 ;; 16 ;;
17 button/suspend)
18 case "$2" in
19 SUSP)
20 logger 'SuspendButton pressed'
21 /bin/loginctl sleep
22 rc-service my-x200 restart
23 ;;
24 *)
25 logger "ACPI action undefined: $2"
26 ;;
27 esac
28 ;;
17 button/lid) 29 button/lid)
18 case "$3" in 30 case "$3" in
19 close) 31 close)