dotfiles/bin/laptop-disp.sh
2022-01-03 10:48:25 -08:00

11 lines
176 B
Bash
Executable file

#!/bin/bash
#LAPTOP="eDP-1"
LAPTOP="LVDS-1"
if grep -q open /proc/acpi/button/lid/LID*/state;
then
swaymsg "output $LAPTOP enable"
else
swaymsg "output $LAPTOP disable"
fi