mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
random-background: add option display
This option parameterizes the `--bg-*` argument for feh.
This commit is contained in:
parent
2e13c3cdfd
commit
d7eaeaf636
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue