1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

random-background: add option display

This option parameterizes the `--bg-*` argument for feh.
This commit is contained in:
Richard Marko 2019-05-29 20:01:04 +02:00 committed by Robert Helgesson
parent 2e13c3cdfd
commit d7eaeaf636
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -25,6 +25,12 @@ in
'';
};
display = mkOption {
type = types.enum [ "center" "fill" "max" "scale" "tile" ];
default = "fill";
description = "Display background images according to this option.";
};
interval = mkOption {
default = null;
type = types.nullOr types.str;
@ -50,7 +56,7 @@ in
Service = {
Type = "oneshot";
ExecStart = "${pkgs.feh}/bin/feh --randomize --bg-fill ${cfg.imageDirectory}";
ExecStart = "${pkgs.feh}/bin/feh --randomize --bg-${cfg.display} ${cfg.imageDirectory}";
IOSchedulingClass = "idle";
};