fix(bemenu-configured): Make buildable without special overlays

This commit is contained in:
Malte Tammena 2023-04-19 01:21:24 +02:00
parent 5716aa16be
commit d7d8102393
3 changed files with 35 additions and 27 deletions

View file

@ -1,28 +1,36 @@
{ {
pkgs, writeShellApplication,
config, bemenu,
hack-font,
hackNerdLigatures ? hack-font,
# Color config
color ? {
base00 = "000000";
base05 = "ff0000";
base08 = "00ff00";
base0D = "0000ff";
},
# Command name,
cmd ? "bemenu-run", cmd ? "bemenu-run",
... ...
}: let }:
colDark = config.colorsDark.colors; writeShellApplication {
in name = "bemenu-run-configured";
pkgs.writeShellApplication { runtimeInputs = [
name = "bemenu-run-configured"; bemenu
runtimeInputs = [ hackNerdLigatures
pkgs.bemenu ];
pkgs.hackNerdLigatures text = ''
]; exec ${cmd} -inl80 \
text = '' --fn 'Hack NF FC Ligatured 11' \
exec ${cmd} -inl80 \ --tb=#${color.base08} \
--fn 'Hack NF FC Ligatured 11' \ --tf=#${color.base00} \
--tb=#${colDark.base08} \ --fb=#${color.base00} \
--tf=#${colDark.base00} \ --ff=#${color.base05} \
--fb=#${colDark.base00} \ --nb=#${color.base00} \
--ff=#${colDark.base05} \ --nf=#${color.base05} \
--nb=#${colDark.base00} \ --hb=#${color.base0D} \
--nf=#${colDark.base05} \ --hf=#${color.base00} \
--hb=#${colDark.base0D} \ "$@"
--hf=#${colDark.base00} \ '';
"$@" }
'';
}

View file

@ -7,7 +7,7 @@
}: let }: let
cfg = config.settings.hyprland; 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 {}; doNotDisturb = pkgs.callPackage ../../pkgs/do-not-disturb.nix {};
hyprpaperConfig = '' hyprpaperConfig = ''

View file

@ -4,7 +4,7 @@
... ...
}: let }: let
bemenuConfigured = pkgs.callPackage ../../pkgs/bemenu-configured.nix { bemenuConfigured = pkgs.callPackage ../../pkgs/bemenu-configured.nix {
inherit config; color = config.colorsDark.colors;
cmd = "bemenu"; cmd = "bemenu";
}; };