refactor: simplify menuCmd specification in hyprland keybind configuration
All checks were successful
ci / nix-fmt (push) Successful in 4m11s
All checks were successful
ci / nix-fmt (push) Successful in 4m11s
This commit is contained in:
parent
9b4f7a5cd4
commit
8518f63bb3
1 changed files with 5 additions and 7 deletions
12
modules/home/desktop/env/hyprland/keybinds.nix
vendored
12
modules/home/desktop/env/hyprland/keybinds.nix
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue