sway: allow unsetting status command

This commit is contained in:
Roman Volosatovs 2020-05-11 19:41:44 +02:00 committed by Robert Helgesson
parent 37202a1b70
commit 7f4053084c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 5 additions and 2 deletions

View file

@ -48,7 +48,10 @@ rec {
mode ${mode} mode ${mode}
hidden_state ${hiddenState} hidden_state ${hiddenState}
position ${position} position ${position}
status_command ${statusCommand} ${
optionalString (statusCommand != null)
"status_command ${statusCommand}"
}
${moduleName}bar_command ${command} ${moduleName}bar_command ${command}
workspace_buttons ${if workspaceButtons then "yes" else "no"} workspace_buttons ${if workspaceButtons then "yes" else "no"}
strip_workspace_numbers ${if !workspaceNumbers then "yes" else "no"} strip_workspace_numbers ${if !workspaceNumbers then "yes" else "no"}

View file

@ -111,7 +111,7 @@ let
}; };
statusCommand = mkOption { statusCommand = mkOption {
type = types.str; type = types.nullOr types.str;
default = "${pkgs.i3status}/bin/i3status"; default = "${pkgs.i3status}/bin/i3status";
description = "Command that will be used to get status lines."; description = "Command that will be used to get status lines.";
}; };