From af069fea96c10ae6946bccbaad36175d3e013363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 21 Oct 2022 13:42:06 +0300 Subject: Some cleanup --- laptop/lid-button | 2 -- laptop/lid-button.sh | 18 ------------------ 2 files changed, 20 deletions(-) delete mode 100644 laptop/lid-button delete mode 100755 laptop/lid-button.sh (limited to 'laptop') 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 -- cgit v1.2.3