aboutsummaryrefslogblamecommitdiff
path: root/.config/sway/clamshell.sh
blob: b5b9388b790cefe406b0eed65e346ffae35bf2b2 (plain) (tree)
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
nsertions'>+11 2023-09-28Update weechat configLuca Matei Pintilie3-95/+4 2023-09-28Support XDG_CONFIG_HOMELuca Matei Pintilie5-13/+26 2023-09-28Upgrade to ibl v3 and minor lsp adjustmentLuca Matei Pintilie2-21/+28