fix(hyprpaper): was not auto starting

This commit is contained in:
kenji
2026-07-06 07:57:23 -05:00
parent 9706d4d95d
commit e3669e3a8a
+3 -2
View File
@@ -8,7 +8,7 @@
# TODO: rewrite # TODO: rewrite
wallpaperDir = "${config.home.homeDirectory}/.config/nixos/assets/Wallpapers"; wallpaperDir = "${config.home.homeDirectory}/.config/nixos/assets/Wallpapers";
defaultWallpaper = "${wallpaperDir}/${myConfig.hyprland.wallpaper}"; defaultWallpaper = "${wallpaperDir}/${myConfig.hyprland.wallpaper}";
cacheWallpaper = "${config.home.homeDirectory}/.cache/current_wallpaper"; cacheWallpaper = "${config.home.homeDirectory}/.local/state/current_wallpaper";
switch-wallpaper = pkgs.writeShellScriptBin "hakase-wallpaper-switch" '' switch-wallpaper = pkgs.writeShellScriptBin "hakase-wallpaper-switch" ''
if [[ "$1" != "run" ]]; then if [[ "$1" != "run" ]]; then
@@ -69,7 +69,8 @@
in { in {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
exec-once = [ exec-once = [
"uwsm app -- hyprpaper" # "uwsm app -- hyprpaper"
"uwsm app -- matugen image ${cacheWallpaper} --source-color-index 0"
]; ];
bindd = [ bindd = [