rmk icon indicating copy to clipboard operation
rmk copied to clipboard

Q: Babblepaste

Open FoxPride opened this issue 7 months ago • 7 comments

Hi! I would like to know if it is possible to replicate something similar to Babblepaste with current code?

In short, this is a macro that allows you to achieve stable behavior for operations in different OS (copy, paste, etc. on one button).

The idea is that we set some variable that represents the current OS. When we press the macro to copy, we check the variable and call the corresponding combo.

FoxPride avatar Jun 07 '25 07:06 FoxPride

it's possible, but you need to know the current OS first. the OS detection is the hardest part I think

HaoboGu avatar Jun 07 '25 13:06 HaoboGu

What if set OS variable and then change it with some macro instead of detection? For example, with Bluetooth profile change.

FoxPride avatar Jun 07 '25 13:06 FoxPride

I don't think it will solve the problem because you don't know what is the current value of that "OS variable" without having a display on the keyboards.

HaoboGu avatar Jun 07 '25 13:06 HaoboGu

Or you can create a keycode for every support platform, such as "SetWindows", "SetMacos", etc. But it's quite verbose and I don't like it.

HaoboGu avatar Jun 07 '25 13:06 HaoboGu

The easiest way to implement this would be to use forks The detected (or set) OS should be encoded in some flags, and aollow the forks to act on thise flags too, not just on modifiers.

Entering unicode characters is also OS specific - there could be also useful these flags...

The simplest implementation is for OS "detection" is: add a small switch on the back of the keyboard and connect it to some GPIO pins.

tib888 avatar Jun 21 '25 21:06 tib888

QMK has OS detection, but it's actually a "guess" and requires USB connection. I don't know if there is better solution here

HaoboGu avatar Jun 22 '25 02:06 HaoboGu

My idea was something similar - just assume that we starting at certain OS and then switch to the one you need right now.

Regarding original question: I was wandering if I can replicate similar functionality with current rmk features.

FoxPride avatar Jun 22 '25 03:06 FoxPride