HDR-Helper v1.1.0.0 WIP

-Adjusted language in Readme.

-Added a fixed config file path.
This commit is contained in:
2024-12-31 23:36:54 +00:00
parent fff7df78b4
commit e0063f8167
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ please take this into consideration :)
# The Problem
At this moment in time, pretty much all games require HDR to be manually enabled for it to properly function. Normally
this isn't a problem when using Gamescope as your native compositor. Most normal people however run a fully fledged
desktop environment on their PCs unless they're using SteamOS or Bazzite.
this isn't a problem when using Gamescope as your native compositor. Most people however run a fully fledged desktop
environment on their PCs unless they're using SteamOS or Bazzite.
This can be annoying because running Gamescope from within KDE Plasma with the HDR flag enabled still won't magically
make HDR work, unless it's also enabled from your compositor's side too; in this case, KWin. Although KWin has a way
+8 -8
View File
@@ -1,6 +1,7 @@
#!/bin/bash
_VERSION=1.0.1.0
_VERSION=1.1.0.0
CONFIG_FILE="$HOME/.config/hdr-helper/monitor.conf"
MONITOR= # MODIFY THESE VALUES INSIDE MONITOR.CONF #
NATIVE_RES= ###########################################
TEMP_RES= ###########################################
@@ -71,8 +72,7 @@ if [[ $(whereis kscreen-doctor) != *"kscreen-doctor" ]]; then
fi
# Import monitor.conf values
if [ -f monitor.conf ]; then
source monitor.conf
if source "$CONFIG_FILE"; then
if [[ $MONITOR == "" ]] || [[ $NATIVE_RES == "" ]] || [[ $TEMP_RES == "" ]]; then
echo "Error: monitor.conf has not been configured."
exit -2
@@ -83,15 +83,15 @@ else
fi
# Handle Args
if [[ $1 == "-e" ]] || [ $1 == "--enable" ]; then
if [[ $1 == "-e" ]] || [[ $1 == "--enable" ]]; then
enable_hdr
elif [[ $1 == "-d" ]] || [ $1 == "--disable" ]; then
elif [[ $1 == "-d" ]] || [[ $1 == "--disable" ]]; then
disable_hdr
elif [[ $1 == "-s" ]] || [ $1 == "--status" ]; then
elif [[ $1 == "-s" ]] || [[ $1 == "--status" ]]; then
show_hdr_status
elif [[ $1 == "-v" ]] || [ $1 == "--version" ]; then
elif [[ $1 == "-v" ]] || [[ $1 == "--version" ]]; then
show_version
elif [[ $1 == "-h" ]] || [ $1 == "--help" ]; then
elif [[ $1 == "-h" ]] || [[ $1 == "--help" ]]; then
show_help
elif [[ $# -eq 0 ]]; then # Automatically Toggle HDR | Default Behaviour
auto_hdr