mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
Migrates from the deprecated toCommandLineShell to toCommandLineShellGNU. This changes the output format to use GNU-style concatenated options (--line-height=28) and adds shell escaping for values with special characters (e.g., '#1e1e2e' becomes '--ab=#1e1e2e'). The format was verified to work correctly with bemenu. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
28 lines
804 B
Nix
28 lines
804 B
Nix
{
|
|
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";
|
|
width-factor = 0.3;
|
|
};
|
|
};
|
|
|
|
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' '--width-factor=0.300000'\""
|
|
'';
|
|
}
|