dotfiles/bin/laptop-disp.sh

9 lines
176 B
Bash
Raw Normal View History

2021-04-07 22:05:46 +00:00
#!/bin/bash
source $HOME/.config/sway/displays.sh
2021-04-07 23:54:41 +00:00
if grep -q open /proc/acpi/button/lid/LID*/state;
2021-04-07 22:05:46 +00:00
then
swaymsg output $LAPTOP enable
else
swaymsg output $LAPTOP disable
fi