New animation

This commit is contained in:
Kyle Brown
2019-03-15 17:37:25 -07:00
parent bb198709f2
commit 86b8c4ffb0
5 changed files with 82 additions and 21 deletions

View File

@@ -52,8 +52,6 @@ def gesc_pressed(key, state, KC, *args, **kwargs):
if GESC_TRIGGERS.intersection(state.keys_pressed):
# First, release GUI if already pressed
state.keys_pressed.discard(KC.LGUI)
state.keys_pressed.discard(KC.RGUI)
state.config._send_hid()
# if Shift is held, KC_GRAVE will become KC_TILDE on OS level
state.keys_pressed.add(KC.GRAVE)
@@ -191,6 +189,12 @@ def rgb_mode_rainbow(key, state, *args, **kwargs):
return state
def rgb_mode_swirl(key, state, *args, **kwargs):
state.config.pixels.effect_init = True
state.config.pixels.animation_mode = 'swirl'
return state
def rgb_mode_knight(key, state, *args, **kwargs):
state.config.pixels.effect_init = True
state.config.pixels.animation_mode = 'knight'