sway: add --locked flag for lid bindswitches

This commit is contained in:
2022-08-26 21:51:57 +03:00
parent 71a784cff6
commit 78dd9bd07a
2 changed files with 12 additions and 2 deletions

9
bin/sway-lid-watcher.sh Executable file
View File

@@ -0,0 +1,9 @@
#! /bin/bash
output="eDP-1"
if grep -q open /proc/acpi/button/lid/LID/state; then
swaymsg output $output enable
else
swaymsg output $output disable
fi