account for different lid switches?

This commit is contained in:
Morgan McMillian 2021-04-07 16:54:41 -07:00
parent 474265291b
commit 2781b1da6e

View file

@ -1,6 +1,6 @@
#!/bin/bash
source $HOME/.config/sway/displays.sh
if grep -q open /proc/acpi/button/lid/LID/state;
if grep -q open /proc/acpi/button/lid/LID*/state;
then
swaymsg output $LAPTOP enable
else