Files
sway/.config/sway/scripts/clamshell.sh
2021-02-05 15:41:33 +00:00

7 lines
153 B
Bash

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