nixos/nate-work/dotfiles/sway/scripts/clamshell.sh

7 lines
147 B
Bash
Raw Permalink Normal View History

2024-12-17 14:40:05 -07:00
#!/usr/bin/bash
if cat /proc/acpi/button/lid/*/state | grep -q open; then
swaymsg output eDP-1 enable
else
swaymsg output eDP-1 disable
fi