this post was submitted on 16 May 2025
4 points (100.0% liked)

Mechanical Keyboards

10055 readers
2 users here now

Are you addicted to the clicking sounds of your beautiful and impressive mechanical keyboard?
If so, this community is for you!

Here you can discuss everything about mechanical keyboards (and only mechanical keyboards).

Banner by Jay Zhang on Unsplash

founded 4 years ago
 

I have an Alice Keyboard (space split in two). I remap left space to the Super key (windows key for nerds) but when I want to play some games I have to remap again with the VIA gui.

I want to automate this process with a bash script (I use arch btw) but I can't find any info related.

Someone with the same problem? Any solution?

Ty :)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] junderwood@lemmy.world 3 points 1 week ago (1 children)

I know in QMK you can set up different layouts that you can switch to. This is used for switching between qwerty and dvorak and stuff like that. You could set up layers that have the space defined like you want it in each condition. Check out PDF(layer): https://docs.qmk.fm/feature_layers#switching-and-toggling-layers

The Planck keyboard default firmware does this on an 'adjust' layer: https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/rev7/keymaps/default/keymap.c

This is how I'd do it. But it's not something that you control from the computer side. Also, having it baked into the firmware means you can use that feature on whatever system you might want to plug the keyboard into. I don't know if that kind of thing is possible to set up with the VIA gui. But since you're using arch (btw), learning QMK might be right up your alley!

There's also this feature in QMK that I don't quite understand called the 'Programmable Button' that lets the software interpret certain keycodes before handing off to the OS (I think that's how it works? I might have that wrong): https://docs.qmk.fm/features/programmable_button

I hope that helps :)

Wow literally the rabbit hole of qmk. I will take a look, thank u so much!