rvaiya / keyd

A key remapping daemon for linux.
MIT License
2.74k stars 160 forks source link

mapping capslock #816

Open dagimg-dot opened 4 weeks ago

dagimg-dot commented 4 weeks ago

I mapped capslock + f to ctrl + v (paste) and also i mapped caplock + e to ctrl only when pressed like this

[capslock:C] f = C-v e = layer(control)

now what i want is when i press capslock + e + f to work like ctrl + f since capslock + e is ctrl. how can i achieve that. currently when i press capslock + e + f it performs capslock + f which is ctrl + v

nsbgn commented 4 weeks ago
[main]
capslock = layer(capslock)

[capslock:C]
f = C-v
e = layer(control)

[capslock+control]
f = C-f
dagimg-dot commented 4 weeks ago

Thank you it works for f

one more question. Can i make capslock+e to behave like ctrl for all cases without losing what i have now. like all comibinations with ctrl will work when i hold capslock + e. currently it works only for f like you gave me above

[main]
capslock = layer(capslock)

[capslock:C]
f = C-v
e = layer(control)

[capslock+control]
f = C-f