diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:00:14 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:00:14 +0900 |
| commit | a8a00c1e4ee22c65feef98b397415d70a50c48b4 (patch) | |
| tree | 19bda7318851728453b110f32e900e01c42ac753 /ar | |
| parent | bed58b07b5669cd6e333cd20c984a808ca16fbaa (diff) | |
modified bin/setmonitor
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.local/bin/setmonitor | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/setmonitor b/ar/.local/bin/setmonitor index 18c054a..8ed4589 100755 --- a/ar/.local/bin/setmonitor +++ b/ar/.local/bin/setmonitor @@ -13,7 +13,7 @@ for connected in $(xrandr -q | grep -w "connected" | cut -d ' ' -f 1); do done # If the lid is closed, turn off the laptop's screen -if grep -q "disabled" /sys/class/drm/card0-eDP-1/enabled || grep -q "closed" /proc/acpi/button/lid/LID/state; then +if grep -q "closed" /proc/acpi/button/lid/LID/state; then if [ -n "$hdmi" ] && [ -z "$dp" ] && [ -n "$edp" ]; then xrandr --output "$edp" --off --output "$hdmi" --primary $default elif [ -z "$hdmi" ] && [ -n "$dp" ] && [ -n "$edp" ]; then |
