wayprompt: init (#1250)

Link: https://github.com/danth/stylix/pull/1250

Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
NukDokPlex 2025-05-12 04:17:33 +05:00 committed by GitHub
parent 77696d77ae
commit 6b8309550e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 53 additions and 3 deletions

6
flake.lock generated
View file

@ -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": {

35
modules/wayprompt/hm.nix Normal file
View file

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

View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
name = "wayprompt";
homepage = "https://git.sr.ht/~leon_plickat/wayprompt";
maintainers = [ lib.maintainers.nukdokplex ];
}

View file

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