#!/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