aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/LidSwitch.sh
blob: 76bce1f2ee7bcb4a2e68372ddf2c23904b893016 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage