keyd icon indicating copy to clipboard operation
keyd copied to clipboard

Capslock as meta key

Open 5ila5 opened this issue 8 months ago • 1 comments

I know I have a pretty niche problem, but I tried a lot of different stuff but could not get it to work.

I use the german NEO2 neoqwertz layout (https://www.neo-layout.org/Layouts/neoqwertz/#die-ebenen) keyboard layout which uses a standard german QWERTZ layout for normal and shift layer and capslock or the US \ key to enter a new layer with a lot of special characters which are a lot better accesible as the normal QWERTZ special characters. I now want to rebind the CAPSLOCK key to behave like an escape key (as I need it quite often and want it to be easier toreach) when tapped but still use my capslock layer when keeping it pressed. I could not get this to work as Capslock is not a meta key, so capslock = overload(capslock, esc) does not work without suppling my own capslock layer. But I don't want to add the complete caps layer into my configuration, but just to trigger the capslock key press when entering the layer and release when exiting it. Is there any way to archive my goal at the moment?

5ila5 avatar Mar 30 '25 16:03 5ila5

Attaching an arbitrary key to a layer has been discussed before; I can look up the issues later, but in any case, it is not currently possible.

If I understand correctly, you have a layout outside of keyd that interprets capslock as a a virtual modifier.

The easiest way to achieve this at the moment might be to reimplement that layout in keyd. You could also define a layer that rebinds keys like a = capslock+a, but that is not much of an improvement...

On March 30, 2025 6:31:23 PM GMT+02:00, 5ila5 @.***> wrote:

5ila5 created an issue (rvaiya/keyd#984)

I know I have a pretty niche problem, but I tried a lot of different stuff but could not get it to work.

I use the german NEO2 neoqwertz layout (https://www.neo-layout.org/Layouts/neoqwertz/#die-ebenen) keyboard layout which uses a standard german QWERTZ layout for normal and shift layer and capslock or the US \ key to enter a new layer with a lot of special characters which are a lot better accesible as the normal QWERTZ special characters. I now want to rebind the CAPSLOCK key to behave like an escape key (as I need it quite often and want it to be easier toreach) when tapped but still use my capslock layer when keeping it pressed. I could not get this to work as Capslock is not a meta key, so capslock = overload(capslock, esc) does not work without suppling my own capslock layer. But I don't want to add the complete caps layer into my configuration, but just to trigger the capslock key press when entering the layer and release when exiting it. Is there any way to archive my goal at the moment?

-- Reply to this email directly or view it on GitHub: https://github.com/rvaiya/keyd/issues/984 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

nsbgn avatar Mar 30 '25 17:03 nsbgn