From aa21f61808f92e5c447f2c8bd34ea66eb51c71ee Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Fri, 21 Feb 2025 20:30:43 +0000 Subject: [PATCH] HDR-Helper v1.2.1.0 - HDR capabilities testing. - Reformatted help display for better readability. --- hdr-helper | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hdr-helper b/hdr-helper index 9908600..3ab6d7a 100755 --- a/hdr-helper +++ b/hdr-helper @@ -65,13 +65,14 @@ disable_hdr() { } test_hdr_support() { -if [[ $(kscreen-doctor -o | grep -A 15 $MONITOR | grep "HDR" | awk '{ print $3 }') == *"incapable"* ]]; then + HDR_CONTEXT=$(kscreen-doctor -o | grep -A 15 $MONITOR | grep "HDR" | awk '{ print $3 }') +if [[ $HDR_CONTEXT == *"incapable"* ]]; then echo "❌ HDR capabilities are either disabled or not supported on your current display." echo "" echo "Please check the correct display is configured in monitor.conf and that" echo "HDR is both supported and enabled." echo "" -elif [[ $(kscreen-doctor -o | grep -A 15 $MONITOR | grep "HDR" | awk '{ print $3 }') == *"enabled"* || *"disabled"* ]]; then +elif [[ $HDR_CONTEXT == *"enabled"* || *"disabled"* ]]; then echo "✅ HDR capabilities are supported on your current display." echo "" else