]> Freerunner's - dotfiles.git/commitdiff
hypr: update gamemode
authorAndre Ramnitz <andre.ramnitz@mail.de>
Sun, 25 Oct 2026 08:05:23 +0000 (09:05 +0100)
committerAndre Ramnitz <andre.ramnitz@mail.de>
Sun, 25 Oct 2026 08:05:23 +0000 (09:05 +0100)
dot-config/hypr/scripts/gamemode.sh

index ea10625..546b336 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
 COMFY=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
 if [ "$COMFY" = true ] ; then
     hyprctl eval 'hl.config({
@@ -37,6 +37,7 @@ if [ "$COMFY" = true ] ; then
             },
         })'
     noctalia msg power-set performance
+    noctalia msg wallpaper-get > "/tmp/last_wallpaper"
     noctalia msg wallpaper-set color:\#333333
     noctalia msg nightlight-disable
     noctalia msg osd-disable
@@ -45,7 +46,7 @@ if [ "$COMFY" = true ] ; then
     exit
 fi
     noctalia msg power-set balanced
-    noctalia msg wallpaper-random
+    noctalia msg wallpaper-set "$(cat /tmp/lastwallpaper)"
     noctalia msg nightlight-enable
     noctalia msg osd-enable
     lact cli profile set UV