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:
MD-Gonzalez 2026-04-05 19:29:53 -03:00 committed by GitHub
parent ac331a0d70
commit b20401be46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;