8 lines
169 B
Bash
Executable File
8 lines
169 B
Bash
Executable File
#!/usr/bin/bash
|
|
# change output
|
|
if cat /proc/acpi/button/lid/LID/state | grep -q open; then
|
|
swaymsg output <eDP-1> enable
|
|
else
|
|
swaymsg output <eDP-1> disable
|
|
fi
|