From 122a01eb91da32f79c16694aeef00fda81cd8420 Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 17 Apr 2024 15:13:58 -0400 Subject: [PATCH] home: init hyprpaper --- home/profiles/tsuki/default.nix | 3 +++ home/wayland/default.nix | 3 --- home/wayland/hyprland/config/general.nix | 2 +- home/wayland/services/hyprpaper.nix | 14 ++++++++++++++ 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 home/wayland/services/hyprpaper.nix diff --git a/home/profiles/tsuki/default.nix b/home/profiles/tsuki/default.nix index 93d6ade..6534a85 100644 --- a/home/profiles/tsuki/default.nix +++ b/home/profiles/tsuki/default.nix @@ -9,6 +9,7 @@ inputs.ags.homeManagerModules.default inputs.hypridle.homeManagerModules.default inputs.hyprlock.homeManagerModules.default + inputs.hyprpaper.homeManagerModules.default inputs.nix-index-database.hmModules.nix-index ../../services ../../programs/ags @@ -24,6 +25,7 @@ ../../programs/media/zathura.nix ../../wayland/hyprland ../../wayland/services/hypridle.nix + ../../wayland/services/hyprpaper.nix ../../wayland/programs/hyprlock.nix ]; @@ -42,6 +44,7 @@ jellyfin-mpv-shim virt-manager qbittorrent + hyprpicker imv mpv ffmpeg diff --git a/home/wayland/default.nix b/home/wayland/default.nix index 50cd572..af9a378 100644 --- a/home/wayland/default.nix +++ b/home/wayland/default.nix @@ -25,9 +25,6 @@ in { satty wl-clipboard wlr-randr - hyprpicker - hyprcursor - swww ]; sessionVariables = { GBM_BACKEND = "nvidia-drm"; diff --git a/home/wayland/hyprland/config/general.nix b/home/wayland/hyprland/config/general.nix index 4acee56..797cc96 100644 --- a/home/wayland/hyprland/config/general.nix +++ b/home/wayland/hyprland/config/general.nix @@ -9,7 +9,7 @@ ]; exec-once = [ "ags" - "swww init && swww img ~/Pictures/wallpapers/frieren.png" + "hyprpaper" "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1" "~/.local/bin/lock" diff --git a/home/wayland/services/hyprpaper.nix b/home/wayland/services/hyprpaper.nix new file mode 100644 index 0000000..c86ac2b --- /dev/null +++ b/home/wayland/services/hyprpaper.nix @@ -0,0 +1,14 @@ +_: { + services.hyprpaper = { + enable = true; + ipc = true; + splash = false; + preloads = ["~/Pictures/wallpapers/frieren.png"]; + wallpapers = [ + "HDMI-A-1,~/Pictures/wallpapers/frieren.png" + "DP-1,~/Pictures/wallpapers/frieren.png" + "DP-2,~/Pictures/wallpapers/frieren.png" + "DP-3,~/Pictures/wallpapers/frieren.png" + ]; + }; +}