9 lines
175 B
Bash
9 lines
175 B
Bash
|
#!/bin/bash
|
||
|
source $HOME/.config/sway/displays.sh
|
||
|
if grep -q open /proc/acpi/button/lid/LID/state;
|
||
|
then
|
||
|
swaymsg output $LAPTOP enable
|
||
|
else
|
||
|
swaymsg output $LAPTOP disable
|
||
|
fi
|