about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/.Xmodmap7
-rw-r--r--configs/.config/nixpkgs/home.nix7
2 files changed, 7 insertions, 7 deletions
diff --git a/configs/.Xmodmap b/configs/.Xmodmap
deleted file mode 100644
index 518793b86705..000000000000
--- a/configs/.Xmodmap
+++ /dev/null
@@ -1,7 +0,0 @@
-! remap caps-lock to escape
-remove Lock = Caps_Lock
-keysym Caps_Lock = Escape
-
-! swap ctrl and super (similar to OSX) -- currently not working
-! remove mod4 = Super_L
-! add control = Super_L
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index 76dce2f21b2b..840483556573 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -15,6 +15,13 @@
       jq
       pup
     ];
+    keyboard = {
+      options = [
+        # Swap Caps-Lock and Escape
+        "remove Lock = Caps_Lock"
+        "keysym Caps_Lock = Escape"
+      ];
+    };
     sessionVariables = {
     };
     stateVersion = "19.09";