mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
9 lines
251 B
Bash
9 lines
251 B
Bash
#!/bin/bash
|
|
|
|
if grep open /proc/acpi/button/lid/LID/state; then
|
|
hyprctl keyword monitor "eDP-1, preferred, auto, 1"
|
|
else
|
|
if [[ `hyprctl monitors | grep "Monitor" | wc -l` != 1 ]]; then
|
|
hyprctl keyword monitor "eDP-1, disable"
|
|
fi
|
|
fi |