diff --git a/home/wm/addon/wallpaper.nix b/home/wm/addon/wallpaper.nix index 352e2ec..9e34186 100644 --- a/home/wm/addon/wallpaper.nix +++ b/home/wm/addon/wallpaper.nix @@ -6,11 +6,12 @@ in { systemd.user = { services = { - wallhaven = { + getpaper = { Unit = { Description = "Wallpaper Downloader"; - PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session-pre.target" ]; + After = [ "graphical-session.target" "gnome-keyring.service" ]; + Wants = "gnome-keyring.service"; + }; Service = { Type = "oneshot"; @@ -18,7 +19,7 @@ in }; }; - wallpaper = { + setpaper = { Unit = { Description = "Change Wallpaper"; PartOf = [ "graphical-session.target" ]; @@ -35,7 +36,7 @@ in }; }; timers = { - wallhaven = { + getpaper = { Unit = { Description = "Wallpaper Downloader"; }; @@ -47,7 +48,7 @@ in Persistent = true; }; }; - wallpaper = { + setpaper = { Unit = { Description = "Change Wallpaper"; }; diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index c06235b..f9a9701 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -177,7 +177,7 @@ in "SUPER_SHIFT,b, exec, ${extra-packages.rofi-bluetooth}/bin/rofi-bluetooth" "SUPER,escape, exec, ${loginctl} lock-session" - "SUPER_SHIFT,W, exec, systemctl --user start wallpaper.service" + "SUPER_SHIFT,W, exec, systemctl --user start setpaper.service" "SUPER,1, workspace, 1" "SUPER,2, workspace, 2"