chore(wm): Conditionally check for args

This commit is contained in:
DashieTM 2025-10-07 12:34:48 +02:00
parent 6f90f67384
commit 65e21a7d00
3 changed files with 3 additions and 3 deletions

View file

@ -161,7 +161,7 @@ in {
bind: "${mkMods bind},${bind.key},${mkCommand bind}"
);
mkCommand = bind: let
inherit (bind) args;
args = bind.args or [];
in
if bind.command == "quit"
then "exit"

View file

@ -69,7 +69,7 @@ in {
then "\"${(lib.strings.concatStringsSep " " args)}\""
else "";
mkNiriCommand = bind: let
inherit (bind) args;
args = bind.args or [];
in
if bind.command == "quit"
then "quit;"

View file

@ -319,7 +319,7 @@ in {
};
windowRules = lib.mkOption {
default = [];
default = {};
example = {
niri = [
''