summary refs log tree commit diff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-25 16:02:22 +0200
committerMel <mel@rnrd.eu>2025-07-25 16:02:22 +0200
commitce740c588c63ff23f777f5672fdc6cdef8ea7c3b (patch)
treea2124131c6e5460866f88304df967b106f5d8f9d
parent77fabf7098d19abe878f0e8caa887fd38aaaad7d (diff)
downloadminerals-ce740c588c63ff23f777f5672fdc6cdef8ea7c3b.tar.zst
minerals-ce740c588c63ff23f777f5672fdc6cdef8ea7c3b.zip
Map CapsLock to Escape key
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--modules/gnome.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gnome.nix b/modules/gnome.nix
index a753a99..fd90bc5 100644
--- a/modules/gnome.nix
+++ b/modules/gnome.nix
@@ -35,6 +35,10 @@
     # minimize windows when middle-clicking on titlebar
     [org.gnome.desktop.wm.preferences]
     action-middle-click-titlebar="minimize"
+
+    # map caps-lock to escape key, map compose key to right-alt
+    [org.gnome.desktop.input-sources]
+    xkb-options=['caps:escape', 'compose:ralt']
   '';
 
   environment.etc = {