nixos/pkgs/bemenu-configured.nix

29 lines
648 B
Nix

{
pkgs,
config,
cmd ? "bemenu-run",
...
}: let
colDark = config.colorsDark.colors;
in
pkgs.writeShellApplication {
name = "bemenu-run-configured";
runtimeInputs = [
pkgs.bemenu
pkgs.hackNerdLigatures
];
text = ''
exec ${cmd} -inl80 \
--fn 'Hack NF FC Ligatured 11' \
--tb=#${colDark.base08} \
--tf=#${colDark.base00} \
--fb=#${colDark.base00} \
--ff=#${colDark.base05} \
--nb=#${colDark.base00} \
--nf=#${colDark.base05} \
--hb=#${colDark.base0D} \
--hf=#${colDark.base00} \
"$@"
'';
}