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}" bind: "${mkMods bind},${bind.key},${mkCommand bind}"
); );
mkCommand = bind: let mkCommand = bind: let
inherit (bind) args; args = bind.args or [];
in in
if bind.command == "quit" if bind.command == "quit"
then "exit" then "exit"

View file

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

View file

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