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:
parent
f63b39a67d
commit
c1cdce3d89
1 changed files with 2 additions and 3 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue