diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-14 07:06:02 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-14 07:09:30 -0800 |
commit | 2ffd42e17955aa0f3dd214142243005267fb553f (patch) | |
tree | bf32bd936cb7506ece122e1f124a059d9a8e3818 /users | |
parent | email: multiple fixes (diff) | |
download | world-2ffd42e17955aa0f3dd214142243005267fb553f.tar.gz |
sway: set keyboard options
Set the keyboard layouts to be US and FR. Map capslock to control, and switch between layouts using shift+caps.
Diffstat (limited to '')
-rw-r--r-- | users/fcuny/desktop/sway/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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"; }; }; |