Add kuatsure map to preonic board (#3087)
* preonic-keymap: kuatsure keymap * preonic-kuatsure: move arrows and braces and stuffs * preonic-kuatsure: give more time for leader * preonic-kuatsure: move _ to lower o * preonic-kuatsure: tap dance space to enter * preonic-kuatsure: move vol buttons around conflicted with kaleidoscope file navigation * preonic-kuatsure: lower+spc = esc * preonic-kuatsure: add lock key & remove led stuff * preonic-kuatsure: little bit of tmux leadering * preonic-kuatsure: remove colemak and dvorak * preonic-kuatsure: remove lock key and tap dance * preonic-kuatsure: lower space -> enter -- raise space -> esc * preonice-kuatsure: move tmux stuff to homerow keys * preonic-kuatsure: set tmux prefix to a function * preonic-kuatsure: hello game layers * preonic-kuatsure: instead of zelda, ffvii for game mode :) * preonic-kuatsure: mild changes after playing games to game modes * preonice-kuatsure: omg comma dangles and spaces in switch! * preonic-kuatsure: kinda make lower a shift on special characters * preonic-kuatsure: I don't use these * preonic-kuatsure: move vol- to the begining of media row * preonic-kuatsure: more tmux leader stuff ( pane 3 & last pane ) * preonic-kuatsure: abstract out tmux pane zooming * preonic-kuatsure: abstract pane switch * preonic-kuatsure: game_mod is carries over lower positions starting to wonder if I need game_mod ... lol * preonic-kuatsure: switch lwr/rse esc / ent * preonic-kuatsure: add leaders for window switching * preonic-kuatsure: major pruning of adjust layer * preonic-kuatsure: major rework on raise layer * preonic-kuatsure: game mods f layer is raise now * user-kuatsure: hello * various-kuatsure: use layout format + globalize querty / number keys * preonic-kuatsure: don't use tap dance anymore * various-kuatsure: code formatting * various-kuatsure: add function layer vars * preonic-kuatsure: moar formatting * preonic-kuatsure: add home / end keys
This commit is contained in:
parent
835431330c
commit
258954dc3e
9 changed files with 431 additions and 1 deletions
111
users/kuatsure/kuatsure.c
Normal file
111
users/kuatsure/kuatsure.c
Normal file
|
@ -0,0 +1,111 @@
|
|||
#include "kuatsure.h"
|
||||
|
||||
void tmux_prefix(void) {
|
||||
register_code(KC_LCTL);
|
||||
register_code(KC_SPC);
|
||||
|
||||
unregister_code(KC_LCTL);
|
||||
unregister_code(KC_SPC);
|
||||
}
|
||||
|
||||
void tmux_pane_zoom(void) {
|
||||
tmux_prefix();
|
||||
|
||||
register_code(KC_Z);
|
||||
unregister_code(KC_Z);
|
||||
}
|
||||
|
||||
void tmux_pane_switch(uint16_t keycode) {
|
||||
tmux_prefix();
|
||||
|
||||
register_code(KC_Q);
|
||||
unregister_code(KC_Q);
|
||||
|
||||
register_code(keycode);
|
||||
unregister_code(keycode);
|
||||
}
|
||||
|
||||
void tmux_window_switch(uint16_t keycode) {
|
||||
tmux_prefix();
|
||||
|
||||
register_code(keycode);
|
||||
unregister_code(keycode);
|
||||
}
|
||||
|
||||
LEADER_EXTERNS();
|
||||
void matrix_scan_user(void) {
|
||||
LEADER_DICTIONARY() {
|
||||
leading = false;
|
||||
leader_end();
|
||||
|
||||
// Available seqs
|
||||
// SEQ_ONE_KEY, SEQ_TWO_KEYS, SEQ_THREE_KEYS
|
||||
// anything you can do in a macro https://docs.qmk.fm/macros.html
|
||||
// https://docs.qmk.fm/feature_leader_key.html
|
||||
|
||||
// Whole Screen Shot
|
||||
SEQ_ONE_KEY(KC_A) {
|
||||
register_code(KC_LGUI);
|
||||
register_code(KC_LSFT);
|
||||
register_code(KC_3);
|
||||
|
||||
unregister_code(KC_3);
|
||||
unregister_code(KC_LSFT);
|
||||
unregister_code(KC_LGUI);
|
||||
}
|
||||
|
||||
// Selective Screen Shot
|
||||
SEQ_ONE_KEY(KC_S) {
|
||||
register_code(KC_LGUI);
|
||||
register_code(KC_LSFT);
|
||||
register_code(KC_4);
|
||||
|
||||
unregister_code(KC_4);
|
||||
unregister_code(KC_LSFT);
|
||||
unregister_code(KC_LGUI);
|
||||
}
|
||||
|
||||
// TMUX - shift to pane 1 and zoom
|
||||
SEQ_ONE_KEY(KC_J) {
|
||||
tmux_pane_switch(KC_1);
|
||||
tmux_pane_zoom();
|
||||
}
|
||||
|
||||
// TMUX - shift to pane 2 and zoom
|
||||
SEQ_ONE_KEY(KC_K) {
|
||||
tmux_pane_switch(KC_2);
|
||||
tmux_pane_zoom();
|
||||
}
|
||||
|
||||
// TMUX - shift to pane 3 and zoom
|
||||
SEQ_ONE_KEY(KC_L) {
|
||||
tmux_pane_switch(KC_3);
|
||||
tmux_pane_zoom();
|
||||
}
|
||||
|
||||
// TMUX - shift to last pane and zoom
|
||||
SEQ_ONE_KEY(KC_SCOLON) {
|
||||
tmux_prefix();
|
||||
|
||||
register_code(KC_SCOLON);
|
||||
unregister_code(KC_SCOLON);
|
||||
|
||||
tmux_pane_zoom();
|
||||
}
|
||||
|
||||
// TMUX - shift to first window
|
||||
SEQ_ONE_KEY(KC_U) {
|
||||
tmux_window_switch(KC_1);
|
||||
}
|
||||
|
||||
// TMUX - shift to second window
|
||||
SEQ_ONE_KEY(KC_I) {
|
||||
tmux_window_switch(KC_2);
|
||||
}
|
||||
|
||||
// TMUX - shift to third window
|
||||
SEQ_ONE_KEY(KC_O) {
|
||||
tmux_window_switch(KC_3);
|
||||
}
|
||||
}
|
||||
}
|
31
users/kuatsure/kuatsure.h
Normal file
31
users/kuatsure/kuatsure.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef KUATSURE
|
||||
#define KUATSURE
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
void tmux_prefix(void);
|
||||
void tmux_pane_zoom(void);
|
||||
void tmux_pane_switch(uint16_t keycode);
|
||||
void tmux_window_switch(uint16_t keycode);
|
||||
|
||||
#undef LEADER_TIMEOUT
|
||||
#define LEADER_TIMEOUT 300
|
||||
|
||||
#define LAYOUT_preonic_grid_wrapper(...) LAYOUT_preonic_grid(__VA_ARGS__)
|
||||
|
||||
#define _________________NUMBER_L1_________________ KC_1, KC_2, KC_3, KC_4, KC_5
|
||||
#define _________________NUMBER_R1_________________ KC_6, KC_7, KC_8, KC_9, KC_0
|
||||
|
||||
#define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||
#define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
|
||||
#define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B
|
||||
|
||||
#define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
|
||||
#define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
|
||||
#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH
|
||||
|
||||
#define ____________FUNCTION_1____________ KC_F1, KC_F2, KC_F3, KC_F4
|
||||
#define ____________FUNCTION_2____________ KC_F5, KC_F6, KC_F7, KC_F8
|
||||
#define ____________FUNCTION_3____________ KC_F9, KC_F10, KC_F11, KC_F12
|
||||
|
||||
#endif
|
14
users/kuatsure/readme.md
Normal file
14
users/kuatsure/readme.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
Copyright 2018 Jarrett Drouillard jarrett@thestyl.us @kuatsure
|
||||
|
||||
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/>.
|
1
users/kuatsure/rules.mk
Normal file
1
users/kuatsure/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
SRC += kuatsure.c
|
Loading…
Add table
Add a link
Reference in a new issue