switch from wpaperd to mpvpaper
This commit is contained in:
parent
3af156e3e8
commit
0395c66547
2 changed files with 22 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue