pinwheel: Style bemenu to match waybar

This commit is contained in:
Alexander Heldt
2023-10-17 23:02:38 +02:00
parent 6af142e20b
commit db23cf2ca7

View File

@@ -1,6 +1,27 @@
{ pkgs, lib, config, ... }:
let
hyprlandEnabled = config.mod.hyprland.enable;
bmr =
let
foreground = "#f9c22b";
foreground-dim = "#a57b06";
background = "#262626";
in
pkgs.writeShellScript "bmr" ''
${pkgs.bemenu}/bin/bemenu-run \
--fn 'DejaVuSansM Nerd Font Mono 16' \
--hp 10 \
--line-height 38 \
--cw 12 \
--ch 25 \
--fixed-height \
--ff "${foreground}" --fb "${background}" \
--hf "${foreground}" --hb "${background}" \
--af "${foreground-dim}" --ab "${background}" \
--nf "${foreground-dim}" --nb "${background}" \
--prompt ""
'';
in
{
home-manager.users.alex = {
@@ -8,9 +29,7 @@ in
wayland.windowManager.hyprland = lib.mkIf hyprlandEnabled {
settings = {
bind = [
"$mod, SPACE, exec, ${pkgs.bemenu}/bin/bemenu-run --fn 'DejaVuSansM Nerd Font Mono 14'"
];
bind = [ "$mod, SPACE, exec, ${bmr}" ];
};
};
};