From 2ffd42e17955aa0f3dd214142243005267fb553f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 14 Feb 2022 07:06:02 -0800 Subject: sway: set keyboard options Set the keyboard layouts to be US and FR. Map capslock to control, and switch between layouts using shift+caps. --- users/fcuny/desktop/sway/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'users/fcuny/desktop/sway/default.nix') diff --git a/users/fcuny/desktop/sway/default.nix b/users/fcuny/desktop/sway/default.nix index 19a2f98..6d60db4 100644 --- a/users/fcuny/desktop/sway/default.nix +++ b/users/fcuny/desktop/sway/default.nix @@ -17,8 +17,9 @@ ]; home.sessionVariables = { - MOZ_ENABLE_WAYLAND = true; LIBSEAT_BACKEND = "logind"; + MOZ_ENABLE_WAYLAND = true; + XDG_CURRENT_DESKTOP = "sway"; }; wayland.windowManager.sway = { @@ -31,6 +32,9 @@ bars = [ ]; output = { "*" = { + "xkb_layout" = "us,fr"; + # map capslock to ctrl, and switch layout using shift+caps + "xkb_options" = "ctrl:nocaps,grp:shift_caps_toggle"; scale = "1.5"; }; }; -- cgit 1.4.1