2023-05-03 22:55:06 +02:00
|
|
|
{ pkgs, ... }:
|
2023-02-21 12:24:34 +01:00
|
|
|
{
|
2023-05-03 22:55:06 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
hyprpaper
|
2023-02-21 12:24:34 +01:00
|
|
|
];
|
|
|
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
2023-04-12 22:09:46 +02:00
|
|
|
preload = ${../../../../images/wallpaper.png}
|
|
|
|
wallpaper =eDP-1, ${../../../../images/wallpaper.png}
|
|
|
|
wallpaper =HDMI-A-1, ${../../../../images/wallpaper.png}
|
2023-02-21 12:24:34 +01:00
|
|
|
'';
|
|
|
|
systemd.user.services.hyprpaper = {
|
2023-04-12 22:09:46 +02:00
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
2023-02-21 12:24:34 +01:00
|
|
|
Service = {
|
2023-05-03 22:55:06 +02:00
|
|
|
ExecStart = "${pkgs.hyprpaper}/bin/hyprpaper";
|
2023-02-21 12:24:34 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|