aboutsummaryrefslogtreecommitdiff
path: root/system/keyd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/keyd.nix')
-rw-r--r--system/keyd.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/keyd.nix b/system/keyd.nix
new file mode 100644
index 0000000..6732912
--- /dev/null
+++ b/system/keyd.nix
@@ -0,0 +1,23 @@
+{ ... }:
+
+{
+ services.keyd = {
+ enable = true;
+
+ keyboards."*".settings = {
+ main = {
+ # Swap alt and meta keys.
+ # I prefer (physical) alt as my WM modifier key because it
+ # is easier to reach. This can collide with some programs
+ # shortcuts if they inlcude alt. Swapping alt and meta fixes
+ # this by making my WM mod key (software) meta, freeing up alt.
+
+ leftalt = "leftmeta";
+ leftmeta = "leftalt";
+
+ rightalt = "rightmeta";
+ rightmeta = "rightalt";
+ };
+ };
+ };
+}