Skip to content

Commit

Permalink
Xulkal Changes (qmk#9004)
Browse files Browse the repository at this point in the history
* Xulkal Changes

* Fixing alt keymap
  • Loading branch information
XScorpion2 committed May 5, 2020
1 parent e8f842e commit dc00942
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 10 deletions.
38 changes: 38 additions & 0 deletions keyboards/helix/rev2/keymaps/xulkal/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
This is the c configuration file for the keymap
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

// place overrides here

// If you need more program area, try select and reduce rgblight modes to use.

// Selection of RGBLIGHT MODE to use.
#if defined(LED_ANIMATIONS)
# define RGBLIGHT_EFFECT_BREATHING
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
# define RGBLIGHT_EFFECT_SNAKE
# define RGBLIGHT_EFFECT_KNIGHT
# define RGBLIGHT_EFFECT_CHRISTMAS
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
//#define RGBLIGHT_EFFECT_RGB_TEST
//#define RGBLIGHT_EFFECT_ALTERNATING
#endif
8 changes: 4 additions & 4 deletions keyboards/helix/rev2/keymaps/xulkal/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________, \
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________, \
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________, \
_________________QWERTY_L4_________________, RGB_TOG, RGBRST, _________________QWERTY_R4_________________, \
_________________QWERTY_L5_________________, RGB_RMOD, RGB_MOD, _________________QWERTY_R5_________________ \
_________________QWERTY_L4_________________, KC_MINS, KC_EQL, _________________QWERTY_R4_________________, \
_________________QWERTY_L5_________________, KC_LBRC, KC_RBRC, _________________QWERTY_R5_________________ \
),

#ifndef GAMELAYER_DISABLE
[_GAME] = EXPAND_LAYOUT( \
___________________GAME_L1_________________, ___________________GAME_R1_________________, \
___________________GAME_L2_________________, ___________________GAME_R2_________________, \
___________________GAME_L3_________________, ___________________GAME_R3_________________, \
___________________GAME_L4_________________, RGB_TOG, RGBRST, ___________________GAME_R4_________________, \
___________________GAME_L5_________________, RGB_RMOD, RGB_MOD, ___________________GAME_R5_________________ \
___________________GAME_L4_________________, KC_MINS, KC_EQL, ___________________GAME_R4_________________, \
___________________GAME_L5_________________, KC_LBRC, KC_RBRC, ___________________GAME_R5_________________ \
),
#endif

Expand Down
2 changes: 2 additions & 0 deletions keyboards/rgbkb/sol/keymaps/xulkal/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 8
#endif

#define ENCODER_RESOLUTION 2
3 changes: 2 additions & 1 deletion keyboards/rgbkb/sol/keymaps/xulkal/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RGBLIGHT_ENABLE = no # Enable global lighting effects. Do not ena
RGBLIGHT_ANIMATIONS = no # LED animations
LED_MIRRORED = no # Mirror LEDs across halves (enable DIP 1 on slave, and DIP 2 and 3 on master)
RGB_MATRIX_ENABLE = WS2812 # Enable per-key coordinate based RGB effects. Do not enable with RGBlight
FULLHAND_ENABLE = yes # Enables the additional 24 Full Hand LEDs
FULLHAND_ENABLE = no # Enables the additional 24 Full Hand LEDs
SF_ENABLE = no # Enables the additional 38 Starfighter LEDs

# Misc
OLED_DRIVER_ENABLE = yes # Enable the OLED Driver
Expand Down
7 changes: 4 additions & 3 deletions users/xulkal/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
#undef RGB_MATRIX_KEYRELEASES
#undef RGB_MATRIX_FRAMEBUFFER_EFFECTS
#else
#define RGB_MATRIX_KEYPRESSES
#undef RGB_MATRIX_KEYRELEASES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
# define RGB_MATRIX_KEYPRESSES
# undef RGB_MATRIX_KEYRELEASES
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
# define ENABLE_TYPING_HEATMAP_DISTANCE_CHECK
#endif

// No need for the single versions when multi performance isn't a problem =D
Expand Down
2 changes: 1 addition & 1 deletion users/xulkal/layouts.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

/* LOWER Layout
* ,-----------------------------------------. ,-----------------------------------------.
* | |RGBMD |RGBRMD|RGBTOG| | | | | | | | | |
* | |RGBMD |RGBRMD|RGBTOG| | | | | | | SLCK | NLCK | DEL |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | SPDI | SAI | VAI | HUI | RESET| | | | | 7 | 8 | 9 | |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
Expand Down
2 changes: 1 addition & 1 deletion users/xulkal/process_records.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
reset_keyboard();
}
return false;
#ifdef RGB_MATRIX_TOG_LAYERS
#if defined(RGB_MATRIX_TOG_LAYERS) && defined(RGB_ENABLE)
case RGB_TOG:
if (record->event.pressed) {
rgb_matrix_increase_flags();
Expand Down

0 comments on commit dc00942

Please sign in to comment.