diff options
Diffstat (limited to 'laptop/lid-button.sh')
-rwxr-xr-x | laptop/lid-button.sh | 18 |
1 files changed, 0 insertions, 18 deletions
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 |