mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-18 10:16:54 +00:00
i3,sway: remove dependency between docs and config
This commit is contained in:
parent
ad506dc1d6
commit
c5c78a4183
2 changed files with 22 additions and 2 deletions
modules/services/window-managers/i3-sway
|
@ -533,6 +533,10 @@ in {
|
|||
# so preserve it for backwards compatibility purposes
|
||||
sway = if cfg.config.focus.forceWrapping then "yes" else "no";
|
||||
}.${moduleName};
|
||||
defaultText = literalExpression {
|
||||
i3 = ''if focus.forceWrapping then "force" else "yes"'';
|
||||
sway = ''if focus.forceWrapping then "yes" else "no"'';
|
||||
}.${moduleName};
|
||||
description = ''
|
||||
Whether the window focus commands automatically wrap around the edge of containers.
|
||||
|
||||
|
|
|
@ -135,9 +135,9 @@ let
|
|||
let
|
||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||
in lib.mkOptionDefault {
|
||||
"''${modifier}+Return" = "exec ${cfg.config.terminal}";
|
||||
"''${modifier}+Return" = "exec alacritty";
|
||||
"''${modifier}+Shift+q" = "kill";
|
||||
"''${modifier}+d" = "exec ${cfg.config.menu}";
|
||||
"''${modifier}+d" = "exec bemenu-run";
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
@ -200,6 +200,22 @@ let
|
|||
"Return" = "mode default";
|
||||
};
|
||||
};
|
||||
defaultText = literalExpression ''
|
||||
{
|
||||
resize = {
|
||||
"''${config.left}" = "resize shrink width 10 px";
|
||||
"''${config.down}" = "resize grow height 10 px";
|
||||
"''${config.up}" = "resize shrink height 10 px";
|
||||
"''${config.right}" = "resize grow width 10 px";
|
||||
"Left" = "resize shrink width 10 px";
|
||||
"Down" = "resize grow height 10 px";
|
||||
"Up" = "resize shrink height 10 px";
|
||||
"Right" = "resize grow width 10 px";
|
||||
"Escape" = "mode default";
|
||||
"Return" = "mode default";
|
||||
};
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
An attribute set that defines binding modes and keybindings
|
||||
inside them
|
||||
|
|
Loading…
Add table
Reference in a new issue