diff --git a/.config/sway/scripts/clamshell.sh b/.config/sway/scripts/clamshell.sh index 1404d36..36b5146 100644 --- a/.config/sway/scripts/clamshell.sh +++ b/.config/sway/scripts/clamshell.sh @@ -1,5 +1,5 @@ #!/usr/bin/bash -if cat /proc/acpi/button/lid/LID/state | grep -q open; then +if cat /proc/acpi/button/lid/*/state | grep -q open; then swaymsg output enable else swaymsg output disable