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 :)

  • I solved this by adding a layer for games.

    Since I use Dvorak, games usually meant reconfiguring every game key layout, and with Factorio, that’s every key, and key combination. So I made a QWERTY layer and bound a layer switch to pressing both shift keys at the same time. I just toggle between the layers between games and non games.

    • digginOP
      link
      fedilink
      323 hours ago

      Yess i forgot about layers haha.

      Ty for the help

  • junderwood
    link
    fedilink
    32 days ago

    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 :)

    • digginOP
      link
      fedilink
      223 hours ago

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

    • digginOP
      link
      fedilink
      22 days ago

      And how it works? Can I change between profiles with a shortcut?