nixos-config/users/rouven/modules/hyprland/hyprpaper.nix

28 lines
821 B
Nix
Raw Normal View History

2023-02-21 12:24:34 +01:00
{ config, hyprpaper, ... }:
let
hyprpaper-pkg = hyprpaper.packages.x86_64-linux.default;
in
{
home.packages = [
hyprpaper-pkg
];
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${../../../../images/wallpaper.png}
wallpaper =eDP-1, ${../../../../images/wallpaper.png}
wallpaper =HDMI-A-1, ${../../../../images/wallpaper.png}
'';
systemd.user.services.hyprpaper = {
Install.WantedBy = ["graphical-session.target"];
Service = {
ExecStart = "${hyprpaper-pkg}/bin/hyprpaper";
Restart = "on-failure";
};
Unit = {
After = "graphical-session.target";
2023-03-18 13:24:07 +01:00
Description = "Blazingly fast wayland wallpaper utility with IPC controls";
2023-02-21 12:24:34 +01:00
Documentation = "https://github.com/hyprwm/hyprpaper";
PartOf = "graphical-session.target";
};
};
}