bemenu: add module

This commit is contained in:
Omer Naveed 2023-11-29 01:23:23 -06:00 committed by Robert Helgesson
parent c48ae40dbb
commit 2aff324cf6
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
8 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
programs.bemenu = {
enable = true;
settings = {
line-height = 28;
prompt = "open";
ignorecase = true;
fb = "#1e1e2e";
ff = "#cdd6f4";
nb = "#1e1e2e";
nf = "#cdd6f4";
tb = "#1e1e2e";
hb = "#1e1e2e";
tf = "#f38ba8";
hf = "#f9e2af";
af = "#cdd6f4";
ab = "#1e1e2e";
};
};
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
"export BEMENU_OPTS=\"'--ab' '#1e1e2e' '--af' '#cdd6f4' '--fb' '#1e1e2e' '--ff' '#cdd6f4' '--hb' '#1e1e2e' '--hf' '#f9e2af' '--ignorecase' '--line-height' '28' '--nb' '#1e1e2e' '--nf' '#cdd6f4' '--prompt' 'open' '--tb' '#1e1e2e' '--tf' '#f38ba8'\""
'';
}

View file

@ -0,0 +1,4 @@
{
bemenu-empty-configuration = ./empty-configuration.nix;
bemenu-basic-configuration = ./basic-configuration.nix;
}

View file

@ -0,0 +1,9 @@
{
programs.bemenu = { enable = true; };
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh \
"export BEMENU_OPTS"
'';
}