tofi: init (#355)

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
aftix 2024-05-09 04:08:53 -05:00 committed by GitHub
parent 8f7abd2252
commit f1bb5c5080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 3 deletions

View file

@ -170,11 +170,11 @@
]
},
"locked": {
"lastModified": 1711915616,
"narHash": "sha256-co6LoFA+j6BZEeJNSR8nZ4oOort5qYPskjrDHBaJgmo=",
"lastModified": 1714679908,
"narHash": "sha256-KzcXzDvDJjX34en8f3Zimm396x6idbt+cu4tWDVS2FI=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "820be197ccf3adaad9a8856ef255c13b6cc561a6",
"rev": "9036fe9ef8e15a819fa76f47a8b1f287903fb848",
"type": "github"
},
"original": {

34
modules/tofi/hm.nix Normal file
View file

@ -0,0 +1,34 @@
{
config,
lib,
...
}:
with config.stylix.fonts;
with config.lib.stylix.colors.withHashtag; {
options.stylix.targets.tofi.enable =
config.lib.stylix.mkEnableTarget "Tofi" true;
config = lib.mkIf config.stylix.targets.tofi.enable {
programs.tofi.settings = let
background = base00;
foreground = base05;
darkForeground = base04;
selection = base03;
in {
font = monospace.name;
font-size = toString sizes.popups;
background-color = background;
outline-color = darkForeground;
border-color = foreground;
text-color = foreground;
prompt-color = base0A;
prompt-background = background;
placeholder-color = selection;
input-background = background;
default-result-background = background;
selection-color = selection;
selection-background = background;
};
};
}