1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-19 01:29:46 +01:00

i3-sway: allow arbitrary floating modifier (#4229)

The floating modifier can consist of a combination of modifier keys.
Trying to model this with a regex doesn't seem worth it, so just use
`str`.
This commit is contained in:
Naïm Favier 2023-07-14 21:26:09 +02:00 committed by GitHub
parent f63b39a67d
commit c1cdce3d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -469,12 +469,11 @@ in {
}; };
modifier = mkOption { modifier = mkOption {
type = type = types.str;
types.enum [ "Shift" "Control" "Mod1" "Mod2" "Mod3" "Mod4" "Mod5" ];
default = cfg.config.modifier; default = cfg.config.modifier;
defaultText = "${moduleName}.config.modifier"; defaultText = "${moduleName}.config.modifier";
description = description =
"Modifier key that can be used to drag floating windows."; "Modifier key or keys that can be used to drag floating windows.";
example = "Mod4"; example = "Mod4";
}; };