mooz / xkeysnail

Yet another keyboard remapping tool for X environment
890 stars 112 forks source link

plusminus and section key #172

Open sebastian-ruiz opened 1 year ago

sebastian-ruiz commented 1 year ago

I would like to swap the plusminus ±/section § key on my keyboard with the tilde/backtick (also called grave) key. Here is a picture of my keyboard:

bitmap

But in the xkeysnail/key.py file I don't find what the plusminus ±/section § key is called.

I can remap the tilde/backtick (grave) keys like this:

K('GRAVE'):K("a"),
K('Shift-GRAVE'):K("b"),

but how do I map them to ± and § ?

Thanks!

justJackjon commented 1 year ago

Also looking for an answer to this. Did you ever find a solution @sebastian-ruiz?

eddiehazel commented 9 months ago
define_keymap(lambda wm_class: True, {
        K("LShift-KEY_102ND"): K("LShift-GRAVE"),
        K("LShift-GRAVE"): K("LShift-KEY_102ND"),
        K("GRAVE"): K("KEY_102ND"),
        K("KEY_102ND"): K("GRAVE")
    }
)

this seems to work for me for the same problem guys.

if anyone else needs to work out what the xkeysnail is receiving, i managed it by running the binary from the cli

sudo xkeysnail ~/.config/kinto/kinto.py (i am using kinto)

then watch the logs as you press the relevant keys

:pray: