Remap Capslock to Control (when held) and Esc (when pressed) #1383
Replies: 7 comments 1 reply
|
Worked like a charm. Thank you! |
|
My pinky finger thanks you 🙏 |
|
This worked great thank you even better that expected thanks for the hold = ctrl that is awesome |
|
For anyone who just wants to rebind caps to esc, you can do it in your |
|
Thanks for this |
|
add the following to hl.config({
input = {
-- Map caps lock to control
kb_options = "ctrl:nocaps",
},
})
|
|
update for Quattro: Also, if you're using a logitech mouse and OpenLogi to manage it, you may notice the scroll wheel stops working after doing this. This is at the moment a known quirk of keyd - since we're using a wildcard in the
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Here’s the short, copy-pasteable way to get Caps Lock = Control when held, Escape when tapped using keyd on Arch (works on Omarchy.
1) Install keyd
sudo pacman -S keyd # (If it's not found: yay -S keyd)2) Create the keyd config
3) Enable and start keyd
sudo systemctl enable --now keyd4) Tell Hyprland to use Pause as Compose
Edit
~/.config/hypr/input.conf:Change the current
kb_optionsto the following:Reload Hyprland:
5) Verify
'thena→ should produce á (example Compose sequence).6) Edit later
Change
/etc/keyd/default.conf, then:All reactions