aboutsummaryrefslogtreecommitdiff
path: root/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'laptop')
-rw-r--r--laptop/lid-button2
-rwxr-xr-xlaptop/lid-button.sh18
2 files changed, 0 insertions, 20 deletions
diff --git a/laptop/lid-button b/laptop/lid-button
deleted file mode 100644
index e2a381d..0000000
--- a/laptop/lid-button
+++ /dev/null
@@ -1,2 +0,0 @@
-event=button/lid
-action=/etc/acpi/actions/lid-button.sh %e
diff --git a/laptop/lid-button.sh b/laptop/lid-button.sh
deleted file mode 100755
index 71f67c6..0000000
--- a/laptop/lid-button.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-export SWAYSOCK=/run/user/1000/sway-ipc.1000.$(pgrep -x sway).sock
-
-case "$3" in
- close)
- logger "LID close on custom";
- if [ "$(ps cax | grep sway)" ]; then
- su yaroslav -c "swaymsg exec 'swaysession suspend'"
- else
- systemctl suspend
- fi
- ;;
- open)
- logger "LID open on custom" ;;
- *)
- logger "LID undefined action $1" ;;
-esac