1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-29 21:51:01 +01:00

sway: add propagate --to-code for modes (#2176)

Propagates the bindkeysToCode setting which adds --to-code to the keybindings in mode configs.

Closes #2174
This commit is contained in:
Sumner Evans 2021-07-15 07:09:54 -06:00 committed by GitHub
parent 775cb20bd4
commit f56a087cbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 151 additions and 6 deletions

View file

@ -37,9 +37,12 @@ rec {
];
barColorSetStr = c: concatStringsSep " " [ c.border c.background c.text ];
modeStr = name: keybindings: ''
modeStr = bindkeysToCode: name: keybindings: ''
mode "${name}" {
${keybindingsStr { inherit keybindings; }}
${keybindingsStr {
inherit keybindings;
bindsymArgs = lib.optionalString bindkeysToCode "--to-code";
}}
}
'';