dotfiles/bin/laptop-disp.sh
2021-04-07 16:54:41 -07:00

8 lines
176 B
Bash
Executable file

#!/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