1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02: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 {
type =
types.enum [ "Shift" "Control" "Mod1" "Mod2" "Mod3" "Mod4" "Mod5" ];
type = types.str;
default = cfg.config.modifier;
defaultText = "${moduleName}.config.modifier";
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";
};