diff options
| author | csc027 <csc_dev@protonmail.com> | 2020-10-22 09:12:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 20:12:55 +1100 |
| commit | f9853433c140700ce6bfbfba7517e1e0620789d4 (patch) | |
| tree | 70f4c94f43987dfa7ecccc6e4aef71c244b5b0cb /users/csc027 | |
| parent | caf61a19c64e4ee8ae213690a6f9d65a8dbe7241 (diff) | |
| download | qmk_firmware-f9853433c140700ce6bfbfba7517e1e0620789d4.tar.gz qmk_firmware-f9853433c140700ce6bfbfba7517e1e0620789d4.zip | |
csc027/keymap-updates (#10250)
Diffstat (limited to 'users/csc027')
| -rw-r--r-- | users/csc027/csc027.c | 17 | ||||
| -rw-r--r-- | users/csc027/csc027.h | 19 | ||||
| -rw-r--r-- | users/csc027/custom_audio.c | 17 | ||||
| -rw-r--r-- | users/csc027/custom_audio.h | 17 | ||||
| -rw-r--r-- | users/csc027/custom_rgb.c | 17 | ||||
| -rw-r--r-- | users/csc027/custom_rgb.h | 17 | ||||
| -rw-r--r-- | users/csc027/defines.h | 122 | ||||
| -rw-r--r-- | users/csc027/usb_led.c | 17 | ||||
| -rw-r--r-- | users/csc027/usb_led.h | 17 |
9 files changed, 197 insertions, 63 deletions
diff --git a/users/csc027/csc027.c b/users/csc027/csc027.c index de1bad6f2..60f17a7e1 100644 --- a/users/csc027/csc027.c +++ b/users/csc027/csc027.c | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #include "csc027.h" | 18 | #include "csc027.h" |
| 2 | 19 | ||
| 3 | // Declare the strings in PROGMEM using the convenience macro | 20 | // Declare the strings in PROGMEM using the convenience macro |
diff --git a/users/csc027/csc027.h b/users/csc027/csc027.h index 6daae2a30..e13f12861 100644 --- a/users/csc027/csc027.h +++ b/users/csc027/csc027.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | #include "quantum.h" | 20 | #include "quantum.h" |
| @@ -22,7 +39,7 @@ enum custom_layers { | |||
| 22 | _RS, // Raise | 39 | _RS, // Raise |
| 23 | _LW, // Lower | 40 | _LW, // Lower |
| 24 | _MS, // Mouse | 41 | _MS, // Mouse |
| 25 | _GT, // Git | 42 | _WT, // Windows Terminal |
| 26 | _CN, // Convenience | 43 | _CN, // Convenience |
| 27 | _GG, // General Gaming | 44 | _GG, // General Gaming |
| 28 | _CS // Counter-Strike: Global Offensive | 45 | _CS // Counter-Strike: Global Offensive |
diff --git a/users/csc027/custom_audio.c b/users/csc027/custom_audio.c index 96e0e6602..7746a4d1b 100644 --- a/users/csc027/custom_audio.c +++ b/users/csc027/custom_audio.c | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #include "csc027.h" | 18 | #include "csc027.h" |
| 2 | #include "custom_audio.h" | 19 | #include "custom_audio.h" |
| 3 | 20 | ||
diff --git a/users/csc027/custom_audio.h b/users/csc027/custom_audio.h index daea1e652..f51bfcf97 100644 --- a/users/csc027/custom_audio.h +++ b/users/csc027/custom_audio.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | #if defined(AUDIO_ENABLE) | 20 | #if defined(AUDIO_ENABLE) |
diff --git a/users/csc027/custom_rgb.c b/users/csc027/custom_rgb.c index 000483b2a..1d3232d72 100644 --- a/users/csc027/custom_rgb.c +++ b/users/csc027/custom_rgb.c | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #include "csc027.h" | 18 | #include "csc027.h" |
| 2 | #include "custom_rgb.h" | 19 | #include "custom_rgb.h" |
| 3 | 20 | ||
diff --git a/users/csc027/custom_rgb.h b/users/csc027/custom_rgb.h index 47fdeb7b2..de63fc818 100644 --- a/users/csc027/custom_rgb.h +++ b/users/csc027/custom_rgb.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | #if defined(RGBLIGHT_ENABLE) | 20 | #if defined(RGBLIGHT_ENABLE) |
diff --git a/users/csc027/defines.h b/users/csc027/defines.h index 3f599ad65..220001924 100644 --- a/users/csc027/defines.h +++ b/users/csc027/defines.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | #include "csc027.h" | 19 | #include "csc027.h" |
| 3 | 20 | ||
| @@ -14,12 +31,12 @@ | |||
| 14 | * - There is a "Nxt L" function that cycles through the QWERTY and | 31 | * - There is a "Nxt L" function that cycles through the QWERTY and |
| 15 | * game layers. This has been implemented by hard coding the jump to the | 32 | * game layers. This has been implemented by hard coding the jump to the |
| 16 | * next layer in each of the layers using the TO() macro. Currently, the | 33 | * next layer in each of the layers using the TO() macro. Currently, the |
| 17 | * "Nxt L" function skips over the momentary layers (i.e., Mouse, Git, | 34 | * "Nxt L" function skips over the momentary layers (i.e., Mouse, Lower, |
| 18 | * Lower, Raise, and Convenience layers). | 35 | * Raise, Windows Terminal, and Convenience layers). |
| 19 | * - There is a "Rst L" function that resets the current layer to the | 36 | * - There is a "Rst L" function that resets the current layer to the |
| 20 | * QWERTY layer. | 37 | * QWERTY layer. |
| 21 | * - The "Git" one shot function goes to the macro layer which has Git | 38 | * - The "Wt" momentary function goes to the macro layer which has Windows |
| 22 | * commands implemented. | 39 | * Terminal shortcuts. |
| 23 | * - The Right Shift key also doubles as an Enter key if it is tapped rather | 40 | * - The Right Shift key also doubles as an Enter key if it is tapped rather |
| 24 | * than held. | 41 | * than held. |
| 25 | * | 42 | * |
| @@ -30,7 +47,7 @@ | |||
| 30 | * |-----------------------------------| |-----------------------------------| | 47 | * |-----------------------------------| |-----------------------------------| |
| 31 | * |Shift| Z | X | C | V | B | | N | M | , | . | / |Sf/En| | 48 | * |Shift| Z | X | C | V | B | | N | M | , | . | / |Sf/En| |
| 32 | * |-----------------------------------| |-----------------------------------| | 49 | * |-----------------------------------| |-----------------------------------| |
| 33 | * |Cntrl|Super| Alt |Convc|Lower|Space| |Space|Raise| \ | Git |Nxt L|Rst L| | 50 | * |Cntrl|Super| Alt |Convc|Lower|Space| |Space|Raise| \ | Wt |Nxt L|Rst L| |
| 34 | * `-----------------------------------' `-----------------------------------' | 51 | * `-----------------------------------' `-----------------------------------' |
| 35 | */ | 52 | */ |
| 36 | 53 | ||
| @@ -42,7 +59,7 @@ | |||
| 42 | #define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC | 59 | #define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC |
| 43 | #define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT | 60 | #define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT |
| 44 | #define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE | 61 | #define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE |
| 45 | #define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, OSL(_GT), TO(_GG), XXXXXXX | 62 | #define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, MO(_WT), TO(_GG), XXXXXXX |
| 46 | 63 | ||
| 47 | /* Raise Layer | 64 | /* Raise Layer |
| 48 | * | 65 | * |
| @@ -123,8 +140,7 @@ | |||
| 123 | #define ______________________LOWER_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ | 140 | #define ______________________LOWER_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ |
| 124 | #define ______________________LOWER_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX | 141 | #define ______________________LOWER_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX |
| 125 | 142 | ||
| 126 | 143 | /* Mouse Layer | |
| 127 | /* MIT Layout (Mouse) | ||
| 128 | * | 144 | * |
| 129 | * The mouse layer adds keys to use the keyboard like a mouse. | 145 | * The mouse layer adds keys to use the keyboard like a mouse. |
| 130 | * | 146 | * |
| @@ -149,33 +165,7 @@ | |||
| 149 | #define ______________________MOUSE_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ | 165 | #define ______________________MOUSE_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ |
| 150 | #define ______________________MOUSE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX | 166 | #define ______________________MOUSE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX |
| 151 | 167 | ||
| 152 | /* MIT Layout (Git) | 168 | /* Convenience Layer |
| 153 | * | ||
| 154 | * The macro layer that has common git commands. | ||
| 155 | * | ||
| 156 | * ,-----------------------------------. ,-----------------------------------. | ||
| 157 | * | |Chery| Show|Rebas|Reset| Tag | | | Pull| Init|Rmote| Push| | | ||
| 158 | * |-----------------------------------| |-----------------------------------| | ||
| 159 | * | | Add |Sttus| Diff|Fetch| Grep| |Stash| |ChkOt| Log | | | | ||
| 160 | * |-----------------------------------| |-----------------------------------| | ||
| 161 | * | | | |Comit| Move|Brnch| | |Merge| | | | | | ||
| 162 | * |-----------------------------------| |-----------------------------------| | ||
| 163 | * | | | | | | | | | | | | | | | ||
| 164 | * `-----------------------------------' `-----------------------------------' | ||
| 165 | */ | ||
| 166 | |||
| 167 | #define _______________________GIT_L1______________________ XXXXXXX, MC_cherrypick, MC_show, MC_rebase, MC_reset, MC_tag | ||
| 168 | #define _______________________GIT_L2______________________ _______, MC_add, MC_status, MC_diff, MC_fetch, MC_grep | ||
| 169 | #define _______________________GIT_L3______________________ _______, XXXXXXX, XXXXXXX, MC_commit, MC_mv, MC_branch | ||
| 170 | #define _______________________GIT_L4______________________ _______, _______, _______, _______, _______, _______ | ||
| 171 | |||
| 172 | #define _______________________GIT_R1______________________ XXXXXXX, MC_pull, MC_init, MC_remote, MC_push, XXXXXXX | ||
| 173 | #define _______________________GIT_R2______________________ MC_stash, XXXXXXX, MC_checkout, MC_log, XXXXXXX, XXXXXXX | ||
| 174 | #define _______________________GIT_R3______________________ XXXXXXX, MC_merge, XXXXXXX, XXXXXXX, XXXXXXX, _______ | ||
| 175 | #define _______________________GIT_R4______________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX | ||
| 176 | |||
| 177 | |||
| 178 | /* MIT Layout (Convenience) | ||
| 179 | * | 169 | * |
| 180 | * The Convenience layer adds miscellaneous chords to the keyboard. | 170 | * The Convenience layer adds miscellaneous chords to the keyboard. |
| 181 | * | 171 | * |
| @@ -209,6 +199,29 @@ | |||
| 209 | #define ___________________CONVENIENCE_R3__________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ | 199 | #define ___________________CONVENIENCE_R3__________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ |
| 210 | #define ___________________CONVENIENCE_R4__________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | 200 | #define ___________________CONVENIENCE_R4__________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX |
| 211 | 201 | ||
| 202 | /* Windows Terminal Layer | ||
| 203 | * | ||
| 204 | * ,-----------------------------------. ,-----------------------------------. | ||
| 205 | * | | | | | | | | | | | | |BkSpc| | ||
| 206 | * |-----------------------------------| |-----------------------------------| | ||
| 207 | * | | |Split|Close| | | |FcsLf|FcsDn|FcsUp|FcsRt| | | | ||
| 208 | * |-----------------------------------| |-----------------------------------| | ||
| 209 | * | | | | |VSplt| | | | | | | | | | ||
| 210 | * |-----------------------------------| |-----------------------------------| | ||
| 211 | * | | | | | | | | | | | | | | | ||
| 212 | * `-----------------------------------' `-----------------------------------' | ||
| 213 | */ | ||
| 214 | |||
| 215 | #define ________________WINDOWS_TERMINAL_L1________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | ||
| 216 | #define ________________WINDOWS_TERMINAL_L2________________ _______, XXXXXXX, MC_trps, MC_trpc, XXXXXXX, XXXXXXX | ||
| 217 | #define ________________WINDOWS_TERMINAL_L3________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, MC_trpv, XXXXXXX | ||
| 218 | #define ________________WINDOWS_TERMINAL_L4________________ _______, _______, _______, _______, _______, _______ | ||
| 219 | |||
| 220 | #define ________________WINDOWS_TERMINAL_R1________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC | ||
| 221 | #define ________________WINDOWS_TERMINAL_R2________________ MC_trpl, MC_trpd, MC_trpu, MC_trpr, XXXXXXX, XXXXXXX | ||
| 222 | #define ________________WINDOWS_TERMINAL_R3________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______ | ||
| 223 | #define ________________WINDOWS_TERMINAL_R4________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | ||
| 224 | |||
| 212 | /* General Game Layer | 225 | /* General Game Layer |
| 213 | * | 226 | * |
| 214 | * ,-----------------------------------. ,-----------------------------------. | 227 | * ,-----------------------------------. ,-----------------------------------. |
| @@ -281,32 +294,17 @@ | |||
| 281 | * These macros help synchronize the keycodes between the string declaration, string pointer declaration, and enum order. | 294 | * These macros help synchronize the keycodes between the string declaration, string pointer declaration, and enum order. |
| 282 | */ | 295 | */ |
| 283 | 296 | ||
| 284 | |||
| 285 | #define CUSTOM_MACROS(CUSTOM_NAME, CUSTOM_STRING, CUSTOM_DELIM) \ | 297 | #define CUSTOM_MACROS(CUSTOM_NAME, CUSTOM_STRING, CUSTOM_DELIM) \ |
| 286 | CUSTOM_NAME(add) CUSTOM_STRING("git add ") CUSTOM_DELIM() \ | 298 | CUSTOM_NAME(rdcc) CUSTOM_STRING(SS_LCTL(SS_LALT(SS_TAP(X_HOME)))) CUSTOM_DELIM() \ |
| 287 | CUSTOM_NAME(branch) CUSTOM_STRING("git branch ") CUSTOM_DELIM() \ | 299 | CUSTOM_NAME(lcad) CUSTOM_STRING(SS_LCTL(SS_LALT(SS_TAP(X_DELETE)))) CUSTOM_DELIM() \ |
| 288 | CUSTOM_NAME(checkout) CUSTOM_STRING("git checkout ") CUSTOM_DELIM() \ | 300 | CUSTOM_NAME(trps) CUSTOM_STRING(SS_LALT(SS_LSFT("-"))) CUSTOM_DELIM() \ |
| 289 | CUSTOM_NAME(cherrypick) CUSTOM_STRING("git cherry-pick ") CUSTOM_DELIM() \ | 301 | CUSTOM_NAME(trpv) CUSTOM_STRING(SS_LALT(SS_LSFT("+"))) CUSTOM_DELIM() \ |
| 290 | CUSTOM_NAME(commit) CUSTOM_STRING("git commit -m \"\""SS_TAP(X_LEFT)) CUSTOM_DELIM() \ | 302 | CUSTOM_NAME(trpc) CUSTOM_STRING(SS_LCTL(SS_LSFT("w"))) CUSTOM_DELIM() \ |
| 291 | CUSTOM_NAME(diff) CUSTOM_STRING("git diff ") CUSTOM_DELIM() \ | 303 | CUSTOM_NAME(trpl) CUSTOM_STRING(SS_LALT(SS_TAP(X_LEFT))) CUSTOM_DELIM() \ |
| 292 | CUSTOM_NAME(fetch) CUSTOM_STRING("git fetch ") CUSTOM_DELIM() \ | 304 | CUSTOM_NAME(trpd) CUSTOM_STRING(SS_LALT(SS_TAP(X_DOWN))) CUSTOM_DELIM() \ |
| 293 | CUSTOM_NAME(grep) CUSTOM_STRING("git grep ") CUSTOM_DELIM() \ | 305 | CUSTOM_NAME(trpu) CUSTOM_STRING(SS_LALT(SS_TAP(X_UP))) CUSTOM_DELIM() \ |
| 294 | CUSTOM_NAME(log) CUSTOM_STRING("git log --decorate --oneline --graph ") CUSTOM_DELIM() \ | 306 | CUSTOM_NAME(trpr) CUSTOM_STRING(SS_LALT(SS_TAP(X_RIGHT))) CUSTOM_DELIM() \ |
| 295 | CUSTOM_NAME(init) CUSTOM_STRING("git init ") CUSTOM_DELIM() \ | 307 | CUSTOM_NAME(vtdl) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_LEFT)))) CUSTOM_DELIM() \ |
| 296 | CUSTOM_NAME(mv) CUSTOM_STRING("git mv ") CUSTOM_DELIM() \ | 308 | CUSTOM_NAME(vtdc) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_F4)))) CUSTOM_DELIM() \ |
| 297 | CUSTOM_NAME(merge) CUSTOM_STRING("git merge ") CUSTOM_DELIM() \ | 309 | CUSTOM_NAME(vtdn) CUSTOM_STRING(SS_LCTL(SS_LGUI("d"))) CUSTOM_DELIM() \ |
| 298 | CUSTOM_NAME(push) CUSTOM_STRING("git push ") CUSTOM_DELIM() \ | ||
| 299 | CUSTOM_NAME(pull) CUSTOM_STRING("git pull ") CUSTOM_DELIM() \ | ||
| 300 | CUSTOM_NAME(rebase) CUSTOM_STRING("git rebase ") CUSTOM_DELIM() \ | ||
| 301 | CUSTOM_NAME(remote) CUSTOM_STRING("git remote ") CUSTOM_DELIM() \ | ||
| 302 | CUSTOM_NAME(reset) CUSTOM_STRING("git reset ") CUSTOM_DELIM() \ | ||
| 303 | CUSTOM_NAME(show) CUSTOM_STRING("git show ") CUSTOM_DELIM() \ | ||
| 304 | CUSTOM_NAME(stash) CUSTOM_STRING("git stash ") CUSTOM_DELIM() \ | ||
| 305 | CUSTOM_NAME(status) CUSTOM_STRING("git status ") CUSTOM_DELIM() \ | ||
| 306 | CUSTOM_NAME(tag) CUSTOM_STRING("git tag ") CUSTOM_DELIM() \ | ||
| 307 | CUSTOM_NAME(rdcc) CUSTOM_STRING(SS_LCTL(SS_LALT(SS_TAP(X_HOME)))) CUSTOM_DELIM() \ | ||
| 308 | CUSTOM_NAME(lcad) CUSTOM_STRING(SS_LCTL(SS_LALT(SS_TAP(X_DELETE)))) CUSTOM_DELIM() \ | ||
| 309 | CUSTOM_NAME(vtdl) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_LEFT)))) CUSTOM_DELIM() \ | ||
| 310 | CUSTOM_NAME(vtdc) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_F4)))) CUSTOM_DELIM() \ | ||
| 311 | CUSTOM_NAME(vtdn) CUSTOM_STRING(SS_LCTL(SS_LGUI("d"))) CUSTOM_DELIM() \ | ||
| 312 | CUSTOM_NAME(vtdr) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_RIGHT)))) | 310 | CUSTOM_NAME(vtdr) CUSTOM_STRING(SS_LCTL(SS_LGUI(SS_TAP(X_RIGHT)))) |
diff --git a/users/csc027/usb_led.c b/users/csc027/usb_led.c index 473b153a1..78fbdcdf5 100644 --- a/users/csc027/usb_led.c +++ b/users/csc027/usb_led.c | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #include "csc027.h" | 18 | #include "csc027.h" |
| 2 | #include "usb_led.h" | 19 | #include "usb_led.h" |
| 3 | #include "led.h" | 20 | #include "led.h" |
diff --git a/users/csc027/usb_led.h b/users/csc027/usb_led.h index 7451b4695..6248b3120 100644 --- a/users/csc027/usb_led.h +++ b/users/csc027/usb_led.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Constantine Chen @csc027 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | bool led_update_user(led_t usb_led); | 20 | bool led_update_user(led_t usb_led); |
