From 91255c46a0dbdb7f58ad72e7cb8540bca985de96 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Thu, 2 Jan 2025 20:37:15 +0000 Subject: [PATCH] HDR-Helper v1.1.0.1 DEV - Made tweak to the HDR detection script to better handle more than one monitor. https://www.reddit.com/r/linux_gaming/comments/1hqpp2t/comment/m4xd24n/ --- hdr-helper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hdr-helper b/hdr-helper index f5108fd..c9f0d21 100755 --- a/hdr-helper +++ b/hdr-helper @@ -1,6 +1,6 @@ #!/bin/bash -_VERSION=1.2.0.0 +_VERSION=1.2.0.1 CONFIG_PATH="$HOME/.config/hdr-helper/" CONFIG_FILE="$CONFIG_PATH/monitor.conf" CURR_BRIGHT_LVL_PATH="/tmp/hdr-helper/" @@ -9,7 +9,7 @@ CURR_BRIGHT_LVL_FILE="$CURR_BRIGHT_LVL_PATH/current-brightness-level" show_hdr_status() { ICON="/usr/share/icons/breeze-dark/devices/64/monitor.svg" - if [[ $(kscreen-doctor -o | grep HDR) == *"enabled"* ]]; then + if [[ $(kscreen-doctor -o | grep -A 15 $MONITOR | grep HDR) == *"enabled"* ]]; then notify-send -a "HDR Helper" -i $ICON "HDR Enabled" else notify-send -a "HDR Helper" -i $ICON "HDR Disabled" @@ -65,7 +65,7 @@ disable_hdr() { } auto_hdr() { - if [[ $(kscreen-doctor -o | grep HDR) == *"enabled"* ]]; then + if [[ $(kscreen-doctor -o | grep -A 15 $MONITOR | grep HDR) == *"enabled"* ]]; then disable_hdr else enable_hdr