Improve keyboard handling

This commit is contained in:
Geoffrey Frogeye 2025-11-22 16:07:48 +01:00
parent 06208621c6
commit 65cc76dc7a
2 changed files with 19 additions and 5 deletions

View file

@ -42,12 +42,18 @@
};
};
# Alt key swallowed the Meta one
home-manager.users.geoffrey =
{ ... }:
{
wayland.windowManager.sway.config.modifier = "Mod1";
# The LeftMeta key doesn't exist, but there's a 🔍 that triggers LetMeta at CapsLock's place
# So let's just put Meta in place of LeftAlt and LeftAlt in place of 🔍 (who cares about CapsLock)
services.keyd = {
enable = true;
keyboards.internal = {
ids = [ "0001:0001:70533846" ];
settings.main = {
leftalt = "layer(meta)";
leftmeta = "overload(alt, esc)";
};
};
};
# 8 makes it run out of memory when rebuilding.
nix.settings.max-jobs = 1;