chore(wm): Conditionally check for args
This commit is contained in:
parent
6f90f67384
commit
65e21a7d00
3 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;"
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ in {
|
|||
};
|
||||
|
||||
windowRules = lib.mkOption {
|
||||
default = [];
|
||||
default = {};
|
||||
example = {
|
||||
niri = [
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue