From c1cdce3d89741d402d8fd2c93e3d2643ff85b053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Fri, 14 Jul 2023 21:26:09 +0200 Subject: [PATCH] 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`. --- modules/services/window-managers/i3-sway/lib/options.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/services/window-managers/i3-sway/lib/options.nix b/modules/services/window-managers/i3-sway/lib/options.nix index 650b42c5..d669f766 100644 --- a/modules/services/window-managers/i3-sway/lib/options.nix +++ b/modules/services/window-managers/i3-sway/lib/options.nix @@ -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"; };