blob: 81ae9e87c4583cfe7ef9932ee330a726706e1e97 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env bash
# https://github.com/hyprwm/Hyprland/issues/1754#issue-1618824532
if grep open /proc/acpi/button/lid/LID0/state; then
hyprctl keyword monitor "eDP-1,highres,auto,1"
else
if [[ `hyprctl monitors | grep "Monitor" | wc -l` != 1 ]]; then
hyprctl keyword monitor "eDP-1, disable"
fi
fi
|