aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/tk/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/keymaps/tk/keymap.c')
-rw-r--r--keyboards/planck/keymaps/tk/keymap.c63
1 files changed, 32 insertions, 31 deletions
diff --git a/keyboards/planck/keymaps/tk/keymap.c b/keyboards/planck/keymaps/tk/keymap.c
index b3273aec5..1ceb6cc5b 100644
--- a/keyboards/planck/keymaps/tk/keymap.c
+++ b/keyboards/planck/keymaps/tk/keymap.c
@@ -1,18 +1,18 @@
1/* Copyright 2020 Tushar Khan 1/* Copyright 2020 Tushar Khan
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by 4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or 5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version. 6 * (at your option) any later version.
7 * 7 *
8 * This program is distributed in the hope that it will be useful, 8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details. 11 * GNU General Public License for more details.
12 * 12 *
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include QMK_KEYBOARD_H 17#include QMK_KEYBOARD_H
18#include "muse.h" 18#include "muse.h"
@@ -77,8 +77,8 @@ enum keycodes {
77 EMAIL, // [email address] 77 EMAIL, // [email address]
78 PHONE, // [phone number] 78 PHONE, // [phone number]
79 GT_CMT, // git commit -m '' 79 GT_CMT, // git commit -m ''
80 SHEBANG, // #!/usr/bin/env 80 SHEBANG, // #!/usr/bin/env
81 CHMOD, // chmod 744 *sh 81 CHMOD, // chmod 744 *sh
82 PY_VENV, // source *env*/bin/activate 82 PY_VENV, // source *env*/bin/activate
83}; 83};
84 84
@@ -355,7 +355,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
355 // enabling base layer song breaks a lot of other songs including 355 // enabling base layer song breaks a lot of other songs including
356 // - macro recording start song 356 // - macro recording start song
357 // - rotary feedback songs 357 // - rotary feedback songs
358 358
359 // PLAY_SONG(base_song); 359 // PLAY_SONG(base_song);
360 break; 360 break;
361 case _HYPER: 361 case _HYPER:
@@ -393,10 +393,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
393 switch (keycode) { 393 switch (keycode) {
394 394
395 /* 395 /*
396 ██  ██ ███████ ██  ██  ██████  ██████  ██████  ███████ ███████  396 ██  ██ ███████ ██  ██  ██████  ██████  ██████  ███████ ███████
397 ██  ██  ██       ██  ██  ██      ██    ██ ██   ██ ██      ██       397 ██  ██  ██       ██  ██  ██      ██    ██ ██   ██ ██      ██
398 █████   █████   ████   ██  ██  ██ ██  ██ █████  ███████  398 █████   █████   ████   ██  ██  ██ ██  ██ █████  ███████
399 ██  ██  ██      ██   ██  ██  ██ ██  ██ ██          ██  399 ██  ██  ██      ██   ██  ██  ██ ██  ██ ██          ██
400 ██  ██ ███████  ██   ██████  ██████  ██████  ███████ ███████ 400 ██  ██ ███████  ██   ██████  ██████  ██████  ███████ ███████
401 */ 401 */
402 402
@@ -480,10 +480,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
480 return false; 480 return false;
481 481
482 /* 482 /*
483 ███  ███  █████  ██████ ██████  ██████  ███████  483 ███  ███  █████  ██████ ██████  ██████  ███████
484 ████  ████ ██   ██ ██      ██   ██ ██    ██ ██       484 ████  ████ ██   ██ ██      ██   ██ ██    ██ ██
485 ██ ████ ██ ███████ ██  ██████  ██  ██ ███████  485 ██ ████ ██ ███████ ██  ██████  ██  ██ ███████
486 ██  ██  ██ ██   ██ ██  ██   ██ ██  ██      ██  486 ██  ██  ██ ██   ██ ██  ██   ██ ██  ██      ██
487 ██      ██ ██  ██  ██████ ██  ██  ██████  ███████ 487 ██      ██ ██  ██  ██████ ██  ██  ██████  ███████
488 */ 488 */
489 489
@@ -527,10 +527,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
527 }; 527 };
528 528
529 /* 529 /*
530 █████  ██  ██ ██████  ██  ██████ 530 █████  ██  ██ ██████  ██  ██████
531 ██   ██ ██  ██ ██   ██ ██ ██    ██ 531 ██   ██ ██  ██ ██   ██ ██ ██    ██
532 ███████ ██  ██ ██  ██ ██ ██  ██ 532 ███████ ██  ██ ██  ██ ██ ██  ██
533 ██   ██ ██  ██ ██  ██ ██ ██  ██ 533 ██   ██ ██  ██ ██  ██ ██ ██  ██
534 ██  ██  ██████  ██████  ██  ██████ 534 ██  ██  ██████  ██████  ██  ██████
535 */ 535 */
536 536
@@ -600,7 +600,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
600} 600}
601 601
602void post_process_record_user(uint16_t keycode, keyrecord_t *record) { 602void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
603 603
604} 604}
605 605
606 606
@@ -615,7 +615,7 @@ void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
615 615
616 616
617#ifdef ENCODER_ENABLE 617#ifdef ENCODER_ENABLE
618void encoder_update_user(uint8_t index, bool clockwise) { 618bool encoder_update_user(uint8_t index, bool clockwise) {
619 static int scroll_interval = 5; 619 static int scroll_interval = 5;
620 620
621 switch (rotary_state) { 621 switch (rotary_state) {
@@ -686,5 +686,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
686 } 686 }
687 break; 687 break;
688 } 688 }
689 return true;
689} 690}
690#endif 691#endif