Q: Babblepaste
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.
it's possible, but you need to know the current OS first. the OS detection is the hardest part I think
What if set OS variable and then change it with some macro instead of detection? For example, with Bluetooth profile change.
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.
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.
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.
QMK has OS detection, but it's actually a "guess" and requires USB connection. I don't know if there is better solution here
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.