switch from wpaperd to mpvpaper

This commit is contained in:
Sean Kovacs 2026-02-20 14:56:55 -05:00
commit e73494dfb4
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 22 additions and 19 deletions

View file

@ -138,7 +138,7 @@
bottom-right = 8.0;
};
clip-to-geometry = true;
opacity = 1.0;
opacity = 0.975;
}
{
matches = [
@ -159,9 +159,20 @@
{
app-id = "vesktop$";
}
{
app-id = "org.gnome.Nautilus$";
}
];
block-out-from = "screen-capture";
}
{
matches = [
{
is-active = false;
}
];
opacity = 0.95;
}
{
matches = [
{
@ -183,6 +194,9 @@
{
namespace = "^wpaperd.*";
}
{
namespace = "^mpvpaper";
}
];
place-within-backdrop = true;
}

View file

@ -1,24 +1,9 @@
{
pkgs,
config,
...
}:
{
home.packages = with pkgs; [
wpaperd
];
home.file.".config/wpaperd/config.toml" = {
text = ''
[default]
mode = "center"
[any]
path = "/home/${config.userOptions.username}/.local/share/wallpaper/daily.jpg"
'';
force = true;
};
systemd.user.services.wpaperd = {
systemd.user.services.mpvpaper = {
Unit = {
Description = "Modern wallpaper daemon for Wayland";
PartOf = [ "niri.service" ];
@ -26,7 +11,11 @@
After = [ "niri.service" ];
};
Service = {
ExecStart = "${pkgs.wpaperd}/bin/wpaperd";
ExecStart = ''
${pkgs.mpvpaper}/bin/mpvpaper '*' \
'/home/sckova/.local/share/wallpaper/daily.jpg' \
-o '--keep-open=always --save-position-on-quit' \
'';
};
Install = {
WantedBy = [ "niri.service" ];
@ -59,7 +48,7 @@
-i preferences-desktop-wallpaper \
"$TITLE"
'';
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart wpaperd.service";
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart mpvpaper.service";
};
Install = {
WantedBy = [ "niri.service" ];