From: Andre Ramnitz Date: Mon, 15 Jan 2024 17:23:50 +0000 (+0100) Subject: hypr: disable 10bit colors during gamemode X-Git-Tag: v0.2~237 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=db210c60026a31bb0a53c6fb536df6fa524bd69b;p=dotfiles.git hypr: disable 10bit colors during gamemode --- diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 05c3c037..88373539 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -205,6 +205,7 @@ bind = $suremod, F, fullscreen,0 bind = $suremod, Return, exec, konsole # backup terminal app bind = $suremod, D, denywindowfromgroup, toggle bind = $suremod, V, togglefloating, +bind = $suremod, C, exec, ~/.config/hypr/scripts/gamemode.sh # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainmod, Return, exec, foot diff --git a/config/hypr/scripts/gamemode.sh b/config/hypr/scripts/gamemode.sh index f97d4f4f..5de4329e 100755 --- a/config/hypr/scripts/gamemode.sh +++ b/config/hypr/scripts/gamemode.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '2p' | awk '{print $2}') -if [ $HYPRGAMEMODE = 1 ] ; then +if [ "$HYPRGAMEMODE" = 1 ] ; then hyprctl --batch "\ keyword animations:enabled 0;\ keyword decoration:drop_shadow 0;\ @@ -8,7 +8,8 @@ if [ $HYPRGAMEMODE = 1 ] ; then keyword general:gaps_in 0;\ keyword general:gaps_out 0;\ keyword general:border_size 1;\ - keyword decoration:rounding 0" + keyword decoration:rounding 0; \ + keyword monitor DP-3,preferred,auto,1,vrr,2" exit fi hyprctl reload