forked from okuRaku/keyball
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scroll activation for auto mouse
- Loading branch information
Showing
14 changed files
with
165 additions
and
406 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
qmk_firmware/keyboards/keyball/keyball61/keymaps/ljmill/config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
This is the c configuration file for the keymap | ||
Copyright 2022 @Yowkees | ||
Copyright 2022 MURAOKA Taro (aka KoRoN, @kaoriya) | ||
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 | ||
|
||
// #ifdef RGBLIGHT_ENABLE | ||
// # define RGBLIGHT_EFFECT_BREATHING | ||
// #endif | ||
|
||
#define TAP_CODE_DELAY 5 | ||
|
||
#define POINTING_DEVICE_AUTO_MOUSE_ENABLE | ||
#define AUTO_MOUSE_DEFAULT_LAYER 2 | ||
#define DYNAMIC_KEYMAP_LAYER_COUNT 5 | ||
|
||
#ifndef NO_DEBUG | ||
#define NO_DEBUG | ||
#endif // !NO_DEBUG | ||
#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE) | ||
#define NO_PRINT | ||
#endif // !NO_PRINT |
104 changes: 104 additions & 0 deletions
104
qmk_firmware/keyboards/keyball/keyball61/keymaps/ljmill/keymap.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
Copyright 2022 @Yowkees | ||
Copyright 2022 MURAOKA Taro (aka KoRoN, @kaoriya) | ||
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/>. | ||
*/ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
#include "quantum.h" | ||
|
||
// clang-format off | ||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = LAYOUT_universal( | ||
KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS , | ||
MO(3) , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_INT3 , | ||
MO(2) , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , S(KC_7) , | ||
MO(1) , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_RBRC , KC_NUHS, KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , KC_RSFT , | ||
_______ , KC_LCTL , KC_LALT , KC_LGUI,LT(1,KC_LNG2),LT(2,KC_SPC),LT(3,KC_LNG1), KC_BSPC,LT(2,KC_ENT),LT(1,KC_LNG2),KC_RGUI, _______ , KC_RALT , KC_PSCR | ||
), | ||
|
||
[1] = LAYOUT_universal( | ||
S(KC_ESC), S(KC_1) , KC_LBRC , S(KC_3) , S(KC_4) , S(KC_5) , KC_EQL , S(KC_6) ,S(KC_QUOT), S(KC_8) , S(KC_9) ,S(KC_INT1), | ||
S(KC_DEL), S(KC_Q) , S(KC_W) , S(KC_E) , S(KC_R) , S(KC_T) , S(KC_Y) , S(KC_U) , S(KC_I) , S(KC_O) , S(KC_P) ,S(KC_INT3), | ||
S(KC_TAB), S(KC_A) , S(KC_S) , S(KC_D) , S(KC_F) , S(KC_G) , S(KC_H) , S(KC_J) , S(KC_K) , S(KC_L) , KC_QUOT , S(KC_2) , | ||
_______ , S(KC_Z) , S(KC_X) , S(KC_C) , S(KC_V) , S(KC_B) ,S(KC_RBRC), S(KC_NUHS), S(KC_N) , S(KC_M) ,S(KC_COMM), S(KC_DOT),S(KC_SLSH),S(KC_RSFT), | ||
_______ ,S(KC_LCTL),S(KC_LALT),S(KC_LGUI), _______ , _______ , _______ , _______ , _______ , _______ ,S(KC_RGUI), _______ , S(KC_RALT), _______ | ||
), | ||
|
||
[2] = LAYOUT_universal( | ||
SSNP_FRE , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , | ||
SSNP_VRT , _______ , KC_7 , KC_8 , KC_9 , _______ , _______ , KC_LEFT , KC_UP , KC_RGHT , _______ , KC_F12 , | ||
SSNP_HOR , _______ , KC_4 , KC_5 , KC_6 ,S(KC_SCLN), KC_PGUP , KC_BTN1 , KC_DOWN , KC_BTN2 , KC_BTN3 , _______ , | ||
_______ , _______ , KC_1 , KC_2 , KC_3 ,S(KC_MINS), S(KC_8) , S(KC_9) , KC_PGDN , _______ , _______ , _______ , _______ , _______ , | ||
_______ , _______ , KC_0 , KC_DOT , _______ , _______ , _______ , KC_DEL , _______ , _______ , _______ , _______ , _______ , _______ | ||
), | ||
|
||
[3] = LAYOUT_universal( | ||
RGB_TOG , AML_TO , AML_I50 , AML_D50 , _______ , _______ , RGB_M_P , RGB_M_B , RGB_M_R , RGB_M_SW , RGB_M_SN , RGB_M_K , | ||
RGB_MOD , RGB_HUI , RGB_SAI , RGB_VAI , _______ , _______ , RGB_M_X , RGB_M_G , RGB_M_T , RGB_M_TW , _______ , _______ , | ||
RGB_RMOD , RGB_HUD , RGB_SAD , RGB_VAD , _______ , _______ , CPI_D1K , CPI_D100 , CPI_I100 , CPI_I1K , KBC_SAVE , KBC_RST , | ||
_______ , _______ , SCRL_DVD , SCRL_DVI , SCRL_MO , SCRL_TO , EE_CLR , EE_CLR , KC_HOME , KC_PGDN , KC_PGUP , KC_END , _______ , _______ , | ||
QK_BOOT , _______ , KC_LEFT , KC_DOWN , KC_UP , KC_RGHT , _______ , _______ , KC_BSPC , _______ , _______ , _______ , _______ , QK_BOOT | ||
), | ||
|
||
[4] = LAYOUT_universal( | ||
RGB_TOG , AML_TO , AML_I50 , AML_D50 , _______ , _______ , RGB_M_P , RGB_M_B , RGB_M_R , RGB_M_SW , RGB_M_SN , RGB_M_K , | ||
RGB_MOD , RGB_HUI , RGB_SAI , RGB_VAI , _______ , _______ , RGB_M_X , RGB_M_G , RGB_M_T , RGB_M_TW , _______ , _______ , | ||
RGB_RMOD , RGB_HUD , RGB_SAD , RGB_VAD , _______ , _______ , CPI_D1K , CPI_D100 , CPI_I100 , CPI_I1K , KBC_SAVE , KBC_RST , | ||
_______ , _______ , SCRL_DVD , SCRL_DVI , SCRL_MO , SCRL_TO , EE_CLR , EE_CLR , KC_HOME , KC_PGDN , KC_PGUP , KC_END , _______ , _______ , | ||
QK_BOOT , _______ , KC_LEFT , KC_DOWN , KC_UP , KC_RGHT , _______ , _______ , KC_BSPC , _______ , _______ , _______ , _______ , QK_BOOT | ||
), | ||
|
||
}; | ||
// clang-format on | ||
|
||
layer_state_t layer_state_set_user(layer_state_t state) { | ||
// Auto enable scroll mode when the highest layer is 3 | ||
// keyball_set_scroll_mode(get_highest_layer(state) == 3); | ||
uint8_t layer = biton32(state); | ||
switch (layer) { | ||
case 0: | ||
rgblight_sethsv(90, 124, 37); | ||
break; | ||
case 1: | ||
rgblight_sethsv(46, 255, 26); | ||
break; | ||
case 2: | ||
rgblight_sethsv(174, 124, 37); | ||
break; | ||
case 3: | ||
rgblight_sethsv(0, 0, 37); | ||
break; | ||
case 4: | ||
rgblight_sethsv(HSV_PURPLE); | ||
break; | ||
case 5: | ||
rgblight_sethsv(HSV_BLUE); | ||
break; | ||
} | ||
return state; | ||
} | ||
|
||
#ifdef OLED_ENABLE | ||
|
||
# include "lib/oledkit/oledkit.h" | ||
|
||
void oledkit_render_info_user(void) { | ||
keyball_oled_render_keyinfo(); | ||
keyball_oled_render_ballinfo(); | ||
keyball_oled_render_layerinfo(); | ||
} | ||
#endif |
7 changes: 7 additions & 0 deletions
7
qmk_firmware/keyboards/keyball/keyball61/keymaps/ljmill/rules.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RGBLIGHT_ENABLE = yes | ||
|
||
OLED_ENABLE = yes | ||
|
||
VIA_ENABLE = yes | ||
|
||
EXTRAKEY_ENABLE = yes |
67 changes: 0 additions & 67 deletions
67
qmk_firmware/keyboards/keyball/keyball61/keymaps/oku/config.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.