1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 03:56:04 +01:00

i3-sway/lib: modifier accepts any string (#7398)

Currently, we aggressively limit what modifier can be used in the module
system that blocks valid configurations. Allow any strings to unblock
these configs. But, could be refactored further to support list of
modifiers and automatically convert to a config string.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-07-06 12:42:26 -05:00 committed by GitHub
parent b4486ff44a
commit 9d21f9985e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -639,7 +639,7 @@ in
};
modifier = mkOption {
type = types.enum [
type = types.either (types.enum [
"Shift"
"Control"
"Mod1"
@ -647,7 +647,7 @@ in
"Mod3"
"Mod4"
"Mod5"
];
]) types.str;
default = "Mod1";
description = "Modifier key that is used for all default keybindings.";
example = "Mod4";