diff options
Diffstat (limited to 'bin/clamshell-toggle')
| -rwxr-xr-x | bin/clamshell-toggle | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/clamshell-toggle b/bin/clamshell-toggle new file mode 100755 index 0000000..12997e9 --- /dev/null +++ b/bin/clamshell-toggle @@ -0,0 +1,6 @@ +#!/usr/bin/bash +if grep -q open /proc/acpi/button/lid/LID0/state; then + swaymsg output eDP-1 enable +else + swaymsg output eDP-1 disable +fi |
