From 7ebf8d623f141ebdbd81edb483e5b06858dcb217 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Mon, 4 Mar 2019 23:23:15 -0800 Subject: [PATCH] Fix toggle --- kmk/handlers/stock.py | 4 ++++ user_keymaps/kdb424/nyquist_r2.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kmk/handlers/stock.py b/kmk/handlers/stock.py index 736cc61..1c58565 100644 --- a/kmk/handlers/stock.py +++ b/kmk/handlers/stock.py @@ -121,6 +121,8 @@ def td_released(key, state, *args, **kwargs): def rgb_tog(key, state, *args, **kwargs): + if state.config.pixels.animation_mode == 'static_standby': + state.config.pixels.animation_mode = 'static' state.config.pixels.enabled = not state.config.pixels.enabled return state @@ -196,6 +198,8 @@ def rgb_mode_knight(key, state, *args, **kwargs): def led_tog(key, state, *args, **kwargs): + if state.config.led.animation_mode == 'static_standby': + state.config.led.animation_mode = 'static' state.config.led.enabled = not state.config.led.enabled return state diff --git a/user_keymaps/kdb424/nyquist_r2.py b/user_keymaps/kdb424/nyquist_r2.py index d05aabd..2fe1e1a 100644 --- a/user_keymaps/kdb424/nyquist_r2.py +++ b/user_keymaps/kdb424/nyquist_r2.py @@ -24,7 +24,7 @@ keyboard.rgb_sat_default = 100 keyboard.rgb_val_default = 20 keyboard.rgb_knight_effect_length = 4 keyboard.rgb_animation_mode = 'static' -keyboard.rgb_animation_speed = 2 +keyboard.rgb_animation_speed = 1 emoticons = compile_unicode_string_sequences({ # Emoticons, but fancier