update lid settings
This commit is contained in:
parent
6e3bd00d04
commit
d7103b0a00
2 changed files with 144 additions and 126 deletions
9
modules/desktop/hyprland/displayswitch.sh
Normal file
9
modules/desktop/hyprland/displayswitch.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if grep open /proc/acpi/button/lid/LID/state; then
|
||||
hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1"
|
||||
else
|
||||
if [[ $(hyprctl monitors | grep -c "Monitor") != 1 ]]; then
|
||||
hyprctl keyword monitor "eDP-1, disable"
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue