nix fmt
This commit is contained in:
@@ -112,27 +112,12 @@ in
|
||||
enable = true;
|
||||
settings = {
|
||||
preload = [ cfg.hyprpaper.wallpaperPath ];
|
||||
wallpaper =
|
||||
let
|
||||
useMonitorV2 = (lib.versionAtLeast pkgs.hyprland.version "0.40.0") && (cfg.monitorv2 != [ ]);
|
||||
names =
|
||||
if useMonitorV2 then
|
||||
map (m: m.name) cfg.monitorv2
|
||||
else
|
||||
[
|
||||
cfg.display1.input
|
||||
cfg.display2.input
|
||||
];
|
||||
in
|
||||
# if cfg.hyprpaper.usePerMonitor then
|
||||
# map (n: "${n}, ${cfg.hyprpaper.wallpaperPath}") names
|
||||
# else
|
||||
[
|
||||
{
|
||||
monitor = "";
|
||||
path = cfg.hyprpaper.wallpaperPath;
|
||||
}
|
||||
];
|
||||
wallpaper = [
|
||||
{
|
||||
monitor = "";
|
||||
path = cfg.hyprpaper.wallpaperPath;
|
||||
}
|
||||
];
|
||||
splash = false;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user