nixos/pkgs/bemenu-configured.nix
2022-04-17 19:44:06 +02:00

29 lines
632 B
Nix

{
pkgs,
config,
cmd ? "bemenu-run",
...
}: let
col = config.colors;
in
pkgs.writeShellApplication {
name = "bemenu-run-configured";
runtimeInputs = [
pkgs.bemenu
pkgs.hackNerdLigatures
];
text = ''
exec ${cmd} -inl80 \
--fn 'Hack NF FC Ligatured 11' \
--tb=${col.warn.hashRgb} \
--tf=${col.bg.hashRgb} \
--fb=${col.bg.hashRgb} \
--ff=${col.fg.hashRgb} \
--nb=${col.bg.hashRgb} \
--nf=${col.fg.hashRgb} \
--hb=${col.primary.hashRgb} \
--hf=${col.bg.hashRgb} \
"$@"
'';
}