I’m looking to create a macro keyboard (full keyboard) which is separate from my main keyboard, under Debian with KDE Plasma running under Wayland. I have seen similar tools for X11 but they do not work under Wayland for obvious reasons. I have been able to create basic macros using Python, but is there a much better way for Wayland?

  • donnachaidh@lemmy.dcmrobertson.com
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    You could do that at the firmware level, with QMK or ZMK macros (or, presumably, whatever other firmware). It might be a long one, but launching an application or the like could just be typing the combination that runs it. I haven’t used KDE, but something like super, then type the name, then enter, should work.

    Having said that, a quick look at keyd proposed by the other replier does seem like it has more than enough capability, and if you have one setup you want to use it for and not move the keyboard between computers, it very well might be the better choice for you.

  • donio@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    So you want use a second hardware keyboard to trigger custom key events or sequences, right?

    I don’t use Wayland but keyd works on the evdev/uinput level so I think it should work regardless of the display server used. To use it for the secondary keyboard only you’d list only that device in the [ids] section of the config.

    • msinfo32@lemmy.msinfo32.ukOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      This doesn’t seem to be able to run & open applications though? Seems like it may be useful however though, thanks!