diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2022-06-05 18:44:14 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2022-06-05 18:44:14 +0000 |
commit | 32bfefb810b16920b2882e638045959991b46aa6 (patch) | |
tree | 6b645c688ce24d4c082dec6b401814e024ec387c /.config/sway/clamshell.sh | |
parent | 720b6cf512a6b60aae4fcf1a4c14d3a5c2b1b3c0 (diff) | |
download | dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.gz dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.bz2 dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.lz dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.xz dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.zst dotfiles-32bfefb810b16920b2882e638045959991b46aa6.zip |
Minor updates
Diffstat (limited to '.config/sway/clamshell.sh')
-rwxr-xr-x | .config/sway/clamshell.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/sway/clamshell.sh b/.config/sway/clamshell.sh new file mode 100755 index 0000000..b5b9388 --- /dev/null +++ b/.config/sway/clamshell.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +laptop_screen=eDP-1 + +if grep -q open /proc/acpi/button/lid/LID/state; then + swaymsg output $laptop_screen enable +else + swaymsg output $laptop_screen disable +fi |