diff --git a/config/default.nix b/config/default.nix index 032e1290..ca4b2e5f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -435,6 +435,40 @@ in { }; }; services = { + swww-daemon = { + Service = { + RestartSec = 3; + ExecStart = "${pkgs.swww}/bin/swww-daemon"; + }; + Install.WantedBy = [ "compositor.target" ]; + Unit = { + Description = "Wayland Wallpaper Service"; + PartOf = [ "compositor.target" ]; + After = [ "compositor.target" ]; + }; + }; + swww-wallpapers = { + Service = { + RestartSec = 3; + Type = "oneshot"; + Environment = [ + "SWWW_TRANSITION_FPS=120" + "SWWW_TRANSITION_STEP=30" + "SWWW_TRANSITION_DURATION=0.75" + ]; + ExecStart = let wallpaper-dir = "${dotsDir}/.local/share/wallpapers"; + in [ + "${pkgs.swww}/bin/swww img -t random ${wallpaper-dir}/Nebula.jpg" + "${pkgs.swww}/bin/swww img -t wipe --transition-angle 40 -o eDP-1 ${wallpaper-dir}/Autumn-Leaves.jpg" + ]; + }; + Install.WantedBy = [ "swww-daemon.service" ]; + Unit = { + Description = "Wayland Wallpaper Service"; + PartOf = [ "swww-daemon.service" ]; + After = [ "swww-daemon.service" ]; + }; + }; keyd-application-mapper = { Unit = { Description = "Keyd - Linux Keyboard Remapper"; diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 60f6e015..66e95c7d 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -5,7 +5,6 @@ exec = systemd-run --user --unit=blueman-applet blueman-applet || systemctl --us exec = systemd-run --user --unit=slimbookbattery slimbookbattery --minimize || systemctl --user restart slimbookbattery exec = systemd-run --user --unit=clight-gui clight-gui --tray || systemctl --user restart clight-gui exec = systemd-run --user --unit=events-monitor ~/.config/hypr/scripts/launchers/events-monitor.bash || systemctl --user restart events-monitor -exec = systemd-run --user --unit=wallpapers ~/.config/hypr/scripts/launchers/launch-swww.bash || systemctl --user restart wallpapers exec = systemd-run --user --unit=xwaylandvideobridge xwaylandvideobridge || systemctl --user restart xwaylandvideobridge exec = systemd-run --user --unit=polkit-agent /usr/lib/polkit-kde-authentication-agent-1 || systemctl --user restart polkit-agent exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP PATH