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/
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_VERSION=1.2.0.0
|
_VERSION=1.2.0.1
|
||||||
CONFIG_PATH="$HOME/.config/hdr-helper/"
|
CONFIG_PATH="$HOME/.config/hdr-helper/"
|
||||||
CONFIG_FILE="$CONFIG_PATH/monitor.conf"
|
CONFIG_FILE="$CONFIG_PATH/monitor.conf"
|
||||||
CURR_BRIGHT_LVL_PATH="/tmp/hdr-helper/"
|
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() {
|
show_hdr_status() {
|
||||||
ICON="/usr/share/icons/breeze-dark/devices/64/monitor.svg"
|
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"
|
notify-send -a "HDR Helper" -i $ICON "HDR Enabled"
|
||||||
else
|
else
|
||||||
notify-send -a "HDR Helper" -i $ICON "HDR Disabled"
|
notify-send -a "HDR Helper" -i $ICON "HDR Disabled"
|
||||||
@@ -65,7 +65,7 @@ disable_hdr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto_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
|
disable_hdr
|
||||||
else
|
else
|
||||||
enable_hdr
|
enable_hdr
|
||||||
|
|||||||
Reference in New Issue
Block a user