hyprpaper: add monitor option (#2247)
Link: https://github.com/nix-community/stylix/pull/2247 Co-authored-by: Nuuvv <nuuvvtwitch@gmail.com> Co-authored-by: 0xda157 <da157@voidq.com> Reviewed-by: 0xda157 <da157@voidq.com>
This commit is contained in:
parent
ac331a0d70
commit
b20401be46
1 changed files with 11 additions and 2 deletions
|
|
@ -1,11 +1,20 @@
|
|||
{ lib, mkTarget, ... }:
|
||||
mkTarget {
|
||||
options = {
|
||||
monitor = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
example = "DP-1";
|
||||
description = ''Monitor(s) to apply the wallpaper to (`""` matches all monitors)'';
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
{ image }:
|
||||
{ image, cfg }:
|
||||
{
|
||||
services.hyprpaper.settings = {
|
||||
wallpaper = lib.singleton {
|
||||
monitor = "";
|
||||
inherit (cfg) monitor;
|
||||
path = image;
|
||||
};
|
||||
splash = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue