From b06a70f2058cd580b1b23de9515f05eb5e7140dc Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Wed, 19 Jun 2024 11:07:57 +0200 Subject: [PATCH] keyboard layout switching in sway --- hosts/tabby/default.nix | 1 - profiles/desktop/sway/default.nix | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/tabby/default.nix b/hosts/tabby/default.nix index 58a0a66..f7b6447 100644 --- a/hosts/tabby/default.nix +++ b/hosts/tabby/default.nix @@ -28,7 +28,6 @@ services.fwupd.enable = true; services.xserver.xkb.layout = lib.mkForce "us"; - home-manager.users.sammy.wayland.windowManager.sway.config.input."*".xkb_layout = lib.mkForce "us"; users.users.sammy.packages = with pkgs; [ picard diff --git a/profiles/desktop/sway/default.nix b/profiles/desktop/sway/default.nix index 0578312..0aa2e35 100644 --- a/profiles/desktop/sway/default.nix +++ b/profiles/desktop/sway/default.nix @@ -85,8 +85,8 @@ input = { "*" = { - xkb_layout = "de"; - xkb_options = "caps:escape"; + xkb_layout = "us,de"; + xkb_options = "caps:escape,grp:rctrl_toggle"; }; "type:touchpad" = { tap = "enabled";