mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
linux-wallpaperengine: migrate to lib.cli.toCommandLineGNU
Replace deprecated lib.cli.toGNUCommandLine with lib.cli.toCommandLineGNU. Should support the GNU style of convention. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ in
|
|||||||
args = lib.lists.forEach cfg.wallpapers (
|
args = lib.lists.forEach cfg.wallpapers (
|
||||||
each:
|
each:
|
||||||
lib.concatStringsSep " " (
|
lib.concatStringsSep " " (
|
||||||
lib.cli.toGNUCommandLine { } {
|
lib.cli.toCommandLineGNU { } {
|
||||||
screen-root = each.monitor;
|
screen-root = each.monitor;
|
||||||
inherit (each) scaling fps;
|
inherit (each) scaling fps;
|
||||||
inherit (each.audio) silent;
|
inherit (each.audio) silent;
|
||||||
@@ -125,9 +125,11 @@ in
|
|||||||
no-audio-processing = !each.audio.processing;
|
no-audio-processing = !each.audio.processing;
|
||||||
}
|
}
|
||||||
++ each.extraOptions
|
++ each.extraOptions
|
||||||
|
++ [
|
||||||
|
"--bg"
|
||||||
|
each.wallpaperId
|
||||||
|
]
|
||||||
)
|
)
|
||||||
# This has to be the last argument in each group
|
|
||||||
+ " --bg ${each.wallpaperId}"
|
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@linux-wallpaperengine@/bin/linux-wallpaperengine --assets-dir /some/path/to/assets --clamping border --fps 6 --scaling fit --screen-root HDMI-1 --bg 12345678 --no-audio-processing --noautomute --screen-root DP-1 --silent --scaling fill --fps 12 --bg 87654321
|
ExecStart=@linux-wallpaperengine@/bin/linux-wallpaperengine --assets-dir /some/path/to/assets --clamping border --fps=6 --scaling=fit --screen-root=HDMI-1 --bg 12345678 --no-audio-processing --noautomute --screen-root=DP-1 --silent --scaling fill --fps 12 --bg 87654321
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@linux-wallpaperengine@/bin/linux-wallpaperengine --screen-root HDMI-A-1 --bg 2902931482
|
ExecStart=@linux-wallpaperengine@/bin/linux-wallpaperengine --screen-root=HDMI-A-1 --bg 2902931482
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
Reference in New Issue
Block a user