Improve keyboard handling
This commit is contained in:
parent
06208621c6
commit
65cc76dc7a
2 changed files with 19 additions and 5 deletions
|
|
@ -42,11 +42,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
# 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.
|
||||
|
|
|
|||
|
|
@ -24,6 +24,14 @@
|
|||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
# Rebind CapsLock to Escape (when tapped)
|
||||
keyd = {
|
||||
enable = true;
|
||||
keyboards.default = {
|
||||
ids = [ "*" ];
|
||||
settings.main.capslock = "overload(capslock, esc)";
|
||||
};
|
||||
};
|
||||
udev.packages = with pkgs; [ ddcutil ]; # TODO Doesn't seem to help
|
||||
pipewire = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue