feat: initial commit

This commit is contained in:
2025-06-02 10:36:41 +02:00
commit e45db90e8b
16 changed files with 1087 additions and 0 deletions

12
.config/kanshi/lid.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/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