From c0309fc3f4315cfb7e1e588a43ed19516c8b6022 Mon Sep 17 00:00:00 2001 From: Pavel Borzenkov Date: Mon, 5 Aug 2024 17:42:24 +0200 Subject: [PATCH] wofi: init (#493) --- modules/wofi/hm.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 modules/wofi/hm.nix diff --git a/modules/wofi/hm.nix b/modules/wofi/hm.nix new file mode 100644 index 0000000..f8268fc --- /dev/null +++ b/modules/wofi/hm.nix @@ -0,0 +1,45 @@ +{ + config, + lib, + ... +}: +with config.stylix.fonts; let + colors = config.lib.stylix.colors.withHashtag; +in { + options.stylix.targets.wofi.enable = + config.lib.stylix.mkEnableTarget "wofi" config.programs.wofi.enable; + + config = lib.mkIf (config.stylix.enable && config.stylix.targets.wofi.enable) { + programs.wofi.style = with colors; '' + window { + font-family: "${monospace.name}"; + font-size: ${toString sizes.popups}; + + background-color: ${base00}; + color: ${base05}; + } + + #entry:nth-child(odd) { + background-color: ${base00}; + } + + #entry:nth-child(even) { + background-color: ${base01}; + } + + #entry:selected { + background-color: ${base02}; + } + + #input { + background-color: ${base01}; + color: ${base04}; + border-color: ${base02}; + } + + #input:focus { + border-color: ${base0A}; + } + ''; + }; +}