Files
.dotfiles/.config/sway/scripts/clamshell.sh
2024-03-21 12:35:55 +01:00

8 lines
169 B
Bash
Executable File

#!/usr/bin/bash
# change output
if cat /proc/acpi/button/lid/LID/state | grep -q open; then
swaymsg output <eDP-1> enable
else
swaymsg output <eDP-1> disable
fi