refactor: simplify menuCmd specification in hyprland keybind configuration
All checks were successful
ci / nix-fmt (push) Successful in 4m11s

This commit is contained in:
Ceferino Patino 2026-05-15 10:14:32 -05:00
commit 8518f63bb3
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -11,18 +11,16 @@
launcherCfg = getAttrByNamespace config "${namespace}.desktop.apps.launchers";
launcher = launcherCfg.launcher;
menuCmd =
if launcher == "anyrun"
then "GSK_RENDERER=ngl anyrun"
else if launcher == "walker"
then "walker"
else "";
in {
config = mkIf cfg.enable {
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
"$terminal" = "kitty";
"$menu" = menuCmd;
"$menu" =
{
"anyrun" = "GSK_RENDERER=ngl anyrun";
"walker" = "walker";
}."${launcher}" or "";
bind = [
# General