nixos/pkgs/bemenu-configured.nix

37 lines
739 B
Nix
Raw Normal View History

2022-04-17 19:44:06 +02:00
{
writeShellApplication,
bemenu,
hack-font,
hackNerdLigatures ? hack-font,
# Color config
color ? {
base00 = "000000";
base05 = "ff0000";
base08 = "00ff00";
base0D = "0000ff";
},
# Command name,
2022-04-17 19:44:06 +02:00
cmd ? "bemenu-run",
...
}:
writeShellApplication {
name = "bemenu-run-configured";
runtimeInputs = [
bemenu
hackNerdLigatures
];
text = ''
exec ${cmd} -inl80 \
--fn 'Hack NF FC Ligatured 11' \
--tb=#${color.base08} \
--tf=#${color.base00} \
--fb=#${color.base00} \
--ff=#${color.base05} \
--nb=#${color.base00} \
--nf=#${color.base05} \
--hb=#${color.base0D} \
--hf=#${color.base00} \
"$@"
'';
}