about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-14 07:06:02 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-14 07:09:30 -0800
commit2ffd42e17955aa0f3dd214142243005267fb553f (patch)
treebf32bd936cb7506ece122e1f124a059d9a8e3818 /users
parentemail: multiple fixes (diff)
downloadworld-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.nix6
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";
         };
       };