Gaming Config (Tips & Tricks?)

Here is a frequently used macro I use for a multi-function key:

ifGesture timeoutIn 300 $thisKeyId final tapKey c
ifHold {
    ifShift {
        releaseKey leftShift
        suppressMods tapKeySeq B
        break
    }
    final tapKey b
}
ifShift {
    releaseKey leftShift
    suppressMods final tapKey A
    break
}
final tapKey a

I’m not sure if this reply:

resolves the

in the first post, but I’ve been using ifGesture timeoutIn 300 $thisKeyId with no issues.

TLDR:
Tap: a
Shift+Tap: A
Hold: b
Shift+Hold: B
Double tap for c

Hope this helps! I actually use this for productivity, in this example:

ifGesture timeoutIn 300 $thisKeyId final tapKey ~
ifHold {
    ifShift {
        releaseKey leftShift
        suppressMods tapKeySeq ` ` ` S-enter S-enter ` ` ` upArrow
        break
    }
    final tapKeySeq ` ` leftArrow
}
ifShift {
    releaseKey leftShift
    suppressMods tapKeySeq ` ` ` S-enter
    break
}
final tapKey `

Tap: single backtick
Shift+Tap: 3 backticks and line break
Hold: 2 backticks and move cursor in between
Shift+Hold: 6 backticks with linebreaks and move cursor in betwreen
Double tap for ~

I use this a lot for posts like this, discord, and LLMs.

3 Likes

Looks potentially useful. I’ll have to tinker with these a bit, when I find the time…

So an Idea that I have been playing around is something like per profile backlighting;
like If I’m on my nomral QWR layout I like to have the functional backlighting; but here is what I’m currently working on for one of my macros

$onKeyMapChange HD2

// set up backlight

set backlight.strategy perKeyRgb

// set helldivers movment keys to Red
set backlight.keyRgb.base.w 255 0 0
set backlight.keyRgb.base.a 255 0 0
set backlight.keyRgb.base.s 255 0 0
set backlight.keyRgb.base.d 255 0 0
set backlight.keyRgb.base.leftAlt 255 0 0

//left contorl is mapped to the mod key for this profile

I’m still kind of strggeling as I like to use functional backlighting at the default when I’m not gaming; if any body has any tips or tricks please let me know thank you

Welcome to the forum! :waving_hand:

You can kinda do the reverse of that by setting the following in Agent:
“LED settings → Backlighting mode → Per-key backlighting”
That will let you manually map the colors you want via the main keymap interface, instead of typing it all in with macros. :smiling_face_with_sunglasses:

My gaming keymap -

Then use set backlight.strategy functional for any keymaps you want to use functional lighting for.

For example, to only use functional lighting on your default QWR:

$onKeymapChange QWR

set backlight.strategy functional

Or for all other maps:

$onKeymapChange any

set backlight.strategy functional

BUT… Don’t forget that you’ll still need to use set backlight.strategy perKeyRgb in your $onKeymapChange HD2 or whatever when switching between functional/Per-keyRgb keymaps.

2 Likes

Sorry I’ve neglected to update this thread for a while. I definitely have a couple things that need to be added/changed. I’ll try to do so soon… :sloth:

sadly I just tried that; and when switching back to the QWR keymap it does not activate the functioal rgp

Hmmm…
My first guess is to check that your $onKeymapChange macros are correctly titled:

The “M” should be lowercase in your example there. :wink:

If that’s not the issue, then what firmware and Agent versions are you on? Can you share your userConfig?

haha thanks case sensitfy will get ya every time

2 Likes

We’ll make such issues easier to notice:

1 Like