Improve keyboard handling
This commit is contained in:
parent
06208621c6
commit
65cc76dc7a
2 changed files with 19 additions and 5 deletions
|
|
@ -42,12 +42,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Alt key swallowed the Meta one
|
# The LeftMeta key doesn't exist, but there's a 🔍 that triggers LetMeta at CapsLock's place
|
||||||
home-manager.users.geoffrey =
|
# So let's just put Meta in place of LeftAlt and LeftAlt in place of 🔍 (who cares about CapsLock)
|
||||||
{ ... }:
|
services.keyd = {
|
||||||
{
|
enable = true;
|
||||||
wayland.windowManager.sway.config.modifier = "Mod1";
|
keyboards.internal = {
|
||||||
|
ids = [ "0001:0001:70533846" ];
|
||||||
|
settings.main = {
|
||||||
|
leftalt = "layer(meta)";
|
||||||
|
leftmeta = "overload(alt, esc)";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# 8 makes it run out of memory when rebuilding.
|
# 8 makes it run out of memory when rebuilding.
|
||||||
nix.settings.max-jobs = 1;
|
nix.settings.max-jobs = 1;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,14 @@
|
||||||
default_session = initial_session;
|
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
|
udev.packages = with pkgs; [ ddcutil ]; # TODO Doesn't seem to help
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue