From 5289d8847bb7b2637d2209f973cb3e0dea5581c2 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Tue, 10 Sep 2024 10:49:46 -0700 Subject: [PATCH] [sway] Fix/add caps:escape option --- home/modules/i3+sway/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/home/modules/i3+sway/default.nix b/home/modules/i3+sway/default.nix index 4f7664d..c2f3ad4 100644 --- a/home/modules/i3+sway/default.nix +++ b/home/modules/i3+sway/default.nix @@ -1,11 +1,13 @@ { config, lib, pkgs, ... }: +with lib; + let shared_config = { - modifier = "Mod4"; - terminal = "kitty"; - defaultWorkspace = "workspace number 1"; - }; + modifier = "Mod4"; + terminal = "kitty"; + defaultWorkspace = "workspace number 1"; + }; in { xsession.windowManager.i3 = { enable = true; @@ -14,6 +16,12 @@ in { wayland.windowManager.sway = { enable = true; - config = shared_config; + config = recursiveUpdate shared_config { + input = { + "type:keyboard" = { + xkb_options = "caps:escape"; + }; + }; + }; }; }