Some context: I'm using a program called Synergy, which is a network-based KVM. Within the program's settings, I've created toggles to switch between my machines (toggles are Ctrl+[ and Ctrl+]).
What I'm looking to do is create a macro that will activate one of the toggles and also switch to another keyboard layer.
This is what I have so far:
case 1:
return MACRO(D(LCTL), T(LBRC), U(LCTL), END);
So far, that macro works. This does Ctrl+[ and switches to my Mac, so I've been trying to add something to get my keyboard to switch to my Mac layer.
I've tried this:
case 1:
return MACRO(D(LCTL), T(LBRC), U(LCTL), T(TO(MAC)), END);
And it didn't work. I also tried defining it. I added #define KC_TOMAC TO(MAC)
to my keymap file, but it didn't work. Maybe I'm supposed to put the definition somewhere else? Again, I'm new to QMK, so I'm sure that I'm doing something wrong. Hopefully someone has some suggestions for me to try.