aboutsummaryrefslogtreecommitdiff
path: root/.config/sway/clamshell.sh
blob: b5b9388b790cefe406b0eed65e346ffae35bf2b2 (plain) (blame)
1
2
3
4
5
6
7
8
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
d>Luca Matei Pintilie3-1/+8 2024-07-14implement turnstile-style servicesLuca Matei Pintilie17-48/+94 2024-07-11dwm(bar): silence errors a bitLuca Matei Pintilie1-16/+36 2024-07-11sway: use hyprlock, swaysome, swayr and swaybarLuca Matei Pintilie1-51/+59 2024-07-11swaylock: set background imageLuca Matei Pintilie1-2/+5 2024-07-11hyprlock: add configLuca Matei Pintilie2-0/+132 2024-07-11swayrbar: add configLuca Matei Pintilie6-0/+252