]> Freerunner's - dotfiles.git/commitdiff
hypr: disable 10bit colors during gamemode
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 15 Jan 2024 17:23:50 +0000 (18:23 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
config/hypr/hyprland.conf
config/hypr/scripts/gamemode.sh

index 05c3c0373be055be30d41d98a565a68ffaf96f74..88373539295ddee480ce05f479a040bd054bc707 100644 (file)
@@ -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
index f97d4f4f0b3c035c466e44e97e44a6d5c83880c4..5de4329ed0d85c19fb1708407588329f19376322 100755 (executable)
@@ -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