diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-10-21 13:42:06 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-10-21 13:42:06 +0300 |
commit | af069fea96c10ae6946bccbaad36175d3e013363 (patch) | |
tree | 7a0acc05098f9b7d2abe10d209c878db6a7a1875 /laptop | |
parent | 6983c1eb909e4c7182ff208da139f2a4469d1514 (diff) | |
download | swayrice-af069fea96c10ae6946bccbaad36175d3e013363.tar.gz swayrice-af069fea96c10ae6946bccbaad36175d3e013363.zip |
Some cleanup
Diffstat (limited to 'laptop')
-rw-r--r-- | laptop/lid-button | 2 | ||||
-rwxr-xr-x | laptop/lid-button.sh | 18 |
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 |