mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
Merge PR #1229
This commit is contained in:
commit
4ae188bfc7
2 changed files with 8 additions and 4 deletions
|
@ -10,8 +10,9 @@ rec {
|
||||||
|
|
||||||
keybindingsStr = keybindings:
|
keybindingsStr = keybindings:
|
||||||
concatStringsSep "\n" (mapAttrsToList (keycomb: action:
|
concatStringsSep "\n" (mapAttrsToList (keycomb: action:
|
||||||
optionalString (action != null) "bindsym ${keycomb} ${action}")
|
optionalString (action != null) "bindsym ${
|
||||||
keybindings);
|
lib.optionalString (moduleName == "sway") "--to-code "
|
||||||
|
}${keycomb} ${action}") keybindings);
|
||||||
|
|
||||||
keycodebindingsStr = keycodebindings:
|
keycodebindingsStr = keycodebindings:
|
||||||
concatStringsSep "\n" (mapAttrsToList (keycomb: action:
|
concatStringsSep "\n" (mapAttrsToList (keycomb: action:
|
||||||
|
@ -47,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"}
|
||||||
|
|
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue