switch from wpaperd to mpvpaper

This commit is contained in:
Sean Kovacs 2026-02-20 14:56:55 -05:00
commit 0395c66547
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; bottom-right = 8.0;
}; };
clip-to-geometry = true; clip-to-geometry = true;
opacity = 1.0; opacity = 0.975;
} }
{ {
matches = [ matches = [
@ -159,9 +159,20 @@
{ {
app-id = "vesktop$"; app-id = "vesktop$";
} }
{
app-id = "org.gnome.Nautilus$";
}
]; ];
block-out-from = "screen-capture"; block-out-from = "screen-capture";
} }
{
matches = [
{
is-active = false;
}
];
opacity = 0.95;
}
{ {
matches = [ matches = [
{ {
@ -183,6 +194,9 @@
{ {
namespace = "^wpaperd.*"; namespace = "^wpaperd.*";
} }
{
namespace = "^mpvpaper";
}
]; ];
place-within-backdrop = true; place-within-backdrop = true;
} }

View file

@ -1,24 +1,9 @@
{ {
pkgs, pkgs,
config,
... ...
}: }:
{ {
home.packages = with pkgs; [ systemd.user.services.mpvpaper = {
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 = {
Unit = { Unit = {
Description = "Modern wallpaper daemon for Wayland"; Description = "Modern wallpaper daemon for Wayland";
PartOf = [ "niri.service" ]; PartOf = [ "niri.service" ];
@ -26,7 +11,11 @@
After = [ "niri.service" ]; After = [ "niri.service" ];
}; };
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 = { Install = {
WantedBy = [ "niri.service" ]; WantedBy = [ "niri.service" ];
@ -59,7 +48,7 @@
-i preferences-desktop-wallpaper \ -i preferences-desktop-wallpaper \
"$TITLE" "$TITLE"
''; '';
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart wpaperd.service"; ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart mpvpaper.service";
}; };
Install = { Install = {
WantedBy = [ "niri.service" ]; WantedBy = [ "niri.service" ];