fix(bemenu-configured): Make buildable without special overlays
This commit is contained in:
parent
5716aa16be
commit
d7d8102393
|
@ -1,28 +1,36 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
writeShellApplication,
|
||||
bemenu,
|
||||
hack-font,
|
||||
hackNerdLigatures ? hack-font,
|
||||
# Color config
|
||||
color ? {
|
||||
base00 = "000000";
|
||||
base05 = "ff0000";
|
||||
base08 = "00ff00";
|
||||
base0D = "0000ff";
|
||||
},
|
||||
# Command name,
|
||||
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} \
|
||||
"$@"
|
||||
'';
|
||||
}
|
||||
}:
|
||||
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} \
|
||||
"$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}: let
|
||||
cfg = config.settings.hyprland;
|
||||
|
||||
bemenu = pkgs.callPackage ../../pkgs/bemenu-configured.nix {inherit config;};
|
||||
bemenu = pkgs.callPackage ../../pkgs/bemenu-configured.nix {color = config.colorsDark.colors;};
|
||||
doNotDisturb = pkgs.callPackage ../../pkgs/do-not-disturb.nix {};
|
||||
|
||||
hyprpaperConfig = ''
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
bemenuConfigured = pkgs.callPackage ../../pkgs/bemenu-configured.nix {
|
||||
inherit config;
|
||||
color = config.colorsDark.colors;
|
||||
cmd = "bemenu";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue