sway: add --locked flag for lid bindswitches
This commit is contained in:
9
bin/sway-lid-watcher.sh
Executable file
9
bin/sway-lid-watcher.sh
Executable 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
|
||||
Reference in New Issue
Block a user