From 6b8309550e50358b63366d9bf3edb7ef08b9a7cc Mon Sep 17 00:00:00 2001 From: NukDokPlex Date: Mon, 12 May 2025 04:17:33 +0500 Subject: [PATCH] wayprompt: init (#1250) Link: https://github.com/danth/stylix/pull/1250 Reviewed-by: awwpotato Co-authored-by: awwpotato --- flake.lock | 6 +++--- modules/wayprompt/hm.nix | 35 +++++++++++++++++++++++++++++++++++ modules/wayprompt/meta.nix | 6 ++++++ stylix/maintainers.nix | 9 +++++++++ 4 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 modules/wayprompt/hm.nix create mode 100644 modules/wayprompt/meta.nix diff --git a/flake.lock b/flake.lock index 78fb47c4..cec8bae6 100644 --- a/flake.lock +++ b/flake.lock @@ -224,11 +224,11 @@ ] }, "locked": { - "lastModified": 1746369725, - "narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=", + "lastModified": 1746912617, + "narHash": "sha256-SSw/98B3Htw7iJWCyq08fAEL5w+a/Vj+YbQq0msVFTA=", "owner": "nix-community", "repo": "home-manager", - "rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d", + "rev": "9ef92f1c6b77944198fd368ec805ced842352a1d", "type": "github" }, "original": { diff --git a/modules/wayprompt/hm.nix b/modules/wayprompt/hm.nix new file mode 100644 index 00000000..15ed39ec --- /dev/null +++ b/modules/wayprompt/hm.nix @@ -0,0 +1,35 @@ +{ config, lib, ... }: +let + cfg = config.stylix.targets.wayprompt; +in +{ + options.stylix.targets.wayprompt.enable = + config.lib.stylix.mkEnableTarget "wayprompt" true; + + config = lib.mkIf (config.stylix.enable && cfg.enable) { + programs.wayprompt.settings.colours = + with config.lib.stylix.colors; + lib.mapAttrs (_: color: "0x${color}") { + background = base00; + border = base0D; + text = base05; + error-text = base08; + + pin-background = base01; + pin-border = base05; + pin-square = base05; + + ok-button = green; + ok-button-border = green; + ok-button-text = base00; + + not-ok-button = yellow; + not-ok-button-border = yellow; + not-ok-button-text = base00; + + cancel-button = red; + cancel-button-border = red; + cancel-button-text = base00; + }; + }; +} diff --git a/modules/wayprompt/meta.nix b/modules/wayprompt/meta.nix new file mode 100644 index 00000000..cadf63c1 --- /dev/null +++ b/modules/wayprompt/meta.nix @@ -0,0 +1,6 @@ +{ lib, ... }: +{ + name = "wayprompt"; + homepage = "https://git.sr.ht/~leon_plickat/wayprompt"; + maintainers = [ lib.maintainers.nukdokplex ]; +} diff --git a/stylix/maintainers.nix b/stylix/maintainers.nix index 94e73cab..4d933db5 100644 --- a/stylix/maintainers.nix +++ b/stylix/maintainers.nix @@ -34,6 +34,15 @@ { fingerprint = "36BC 916D DD4E B1EE EE82 4BBF DC95 900F 6DA7 9992"; } ]; }; + nukdokplex = { + email = "nukdokplex@nukdokplex.ru"; + name = "Viktor Titov"; + github = "nukdokplex"; + githubId = 25458915; + keys = [ + { fingerprint = "3C97 1C61 0E9E BE35 3259 C1D3 2CA7 0354 EA17 07B9"; } + ]; + }; repparw = { email = "ubritos@gmail.com"; name = "Ulises Britos";