mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
sway: order input config from least to most specific (#7684)
Workaround for https://github.com/swaywm/sway/issues/7271.
This commit is contained in:
parent
ec73c06d34
commit
75f97fcbe3
3 changed files with 19 additions and 1 deletions
|
|
@ -7,6 +7,8 @@
|
|||
let
|
||||
inherit (lib)
|
||||
concatStringsSep
|
||||
filterAttrs
|
||||
hasPrefix
|
||||
mapAttrsToList
|
||||
mkIf
|
||||
mkOption
|
||||
|
|
@ -471,7 +473,9 @@ let
|
|||
(keycodebindingsStr keycodebindings)
|
||||
]
|
||||
++ optional (builtins.attrNames bindswitches != [ ]) (bindswitchesStr bindswitches)
|
||||
++ mapAttrsToList inputStr input
|
||||
++ mapAttrsToList inputStr (filterAttrs (n: v: n == "*") input)
|
||||
++ mapAttrsToList inputStr (filterAttrs (n: v: hasPrefix "type:" n) input)
|
||||
++ mapAttrsToList inputStr (filterAttrs (n: v: n != "*" && !(hasPrefix "type:" n)) input)
|
||||
++ mapAttrsToList outputStr output # outputs
|
||||
++ mapAttrsToList seatStr seat # seats
|
||||
++ mapAttrsToList (modeStr cfg.config.bindkeysToCode) modes # modes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue