From f6d4428d48f22d76a27d1c2a5512703aa94ef87c Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 25 May 2024 23:11:52 +0530 Subject: [PATCH] rename scripts --- home/wm/addon/wallpaper.nix | 13 +++++++------ home/wm/hyprland/default.nix | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) 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"