AutoYADM commit: 2025-01-10 17:05:05

This commit is contained in:
Daniel Fichtinger 2025-01-10 17:05:05 -05:00
parent 8c9cbdb0fe
commit 4708c17ef8
3 changed files with 360 additions and 0 deletions

15
.config/sway/clam.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
LAPTOP_OUTPUT="eDP-1"
LID_STATE_FILE="/proc/acpi/button/lid/LID0/state"
read -r LS <"$LID_STATE_FILE"
case "$LS" in
*open) swaymsg output "$LAPTOP_OUTPUT" enable ;;
*closed) swaymsg output "$LAPTOP_OUTPUT" disable ;;
*)
echo "Could not get lid state" >&2
exit 1
;;
esac