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
+1 2023-01-10Add null-ls to neovimLuca Matei Pintilie5-5/+29 2022-12-31Improve git configLuca Matei Pintilie2-3/+46 2022-11-26Add bash completionLuca Matei Pintilie3-0/+1596 2022-11-13Upgrade to neovim 0.8Luca Matei Pintilie2-7/+54 2022-11-12Fix tmux colours and add gitsigns to neovimLuca Matei Pintilie4-9/+88 2022-11-08Foot use tmux by defaultLuca Matei Pintilie1-1/+1 2022-11-08Neovim omnisharp plugin and tmux color fix on foot and inputrc emacsLuca Matei Pintilie5-7/+13 2022-10-25Update neovim, inputrc and bootstrap.shLuca Matei Pintilie4-9/+18 2022-10-24Remove weather from tmux configLuca Matei Pintilie1-1/+1