summaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split
diff options
context:
space:
mode:
authorJorge Porras <jorgeporras.tij@gmail.com>2018-06-07 17:20:41 +0200
committerDrashna Jaelre <drashna@live.com>2018-06-07 17:20:41 +0200
commit815dab6275eda7fee5a4ea4d02a845e90d4b469f (patch)
tree21d37e87b1bb261b5493884d4a7b42cec39bd844 /keyboards/lets_split
parente3c10a73ac0857a60fba5530c2dceee954fe89d4 (diff)
downloadqmk_firmware-815dab6275eda7fee5a4ea4d02a845e90d4b469f.tar.gz
qmk_firmware-815dab6275eda7fee5a4ea4d02a845e90d4b469f.tar.xz
Normacos update (#3141)
* Cheers let's split keymap * fixed typo on norman layer of cheers keymap for let's split * fixed right handed mappings for home row * cheers keymap for let's split redefinition * updated Cheers keymap for let's split * cheers keymap for let's split updated with some terminal macros * renamed cheers let's split keymap to a more appropriate normacos * updated normacos keymap doc / removed non functional keys * reset let's split rules to default values * added more spotlight search macros * normalized keymap comments * Moved numpad on lower layer * updated normacos layout and fixed some readme typos * removed leftover merge diff * added waits to macros that make use of SEND_STRING * fixed wrong waits on macros that use SEND_STRING * normalized macro comments after adding waits
Diffstat (limited to 'keyboards/lets_split')
-rw-r--r--keyboards/lets_split/keymaps/normacos/keymap.c60
-rw-r--r--keyboards/lets_split/keymaps/normacos/readme.md11
2 files changed, 48 insertions, 23 deletions
diff --git a/keyboards/lets_split/keymaps/normacos/keymap.c b/keyboards/lets_split/keymaps/normacos/keymap.c
index 9868fab6e..8902b7b56 100644
--- a/keyboards/lets_split/keymaps/normacos/keymap.c
+++ b/keyboards/lets_split/keymaps/normacos/keymap.c
@@ -1,6 +1,5 @@
#include QMK_KEYBOARD_H
-
extern keymap_config_t keymap_config;
// Each layer gets a name for readability, which is then used in the keymap matrix below.
@@ -18,7 +17,7 @@ enum custom_keycodes {
LOWER,
RAISE,
ADJUST,
- SH_SUDO,
+ SH_LOG,
SH_GOUP,
SH_TERM,
SPOT,
@@ -86,7 +85,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* ,-----------------------------------------. ,-----------------------------------------.
* | Tab | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
- * |CtlEsc| Sudo | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
+ * |CtlEsc| Log | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Shift|ClrHom|ClrEnd|ShHome| ShEnd|Search| | Play | Mute | VolDn| VolUp|ScnSht|SftEnt|
* |------+------+------+------+------+------| |------+------+------+------+------+------|
@@ -95,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_RAISE] = LAYOUT_ortho_4x12( \
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
- _______, SH_SUDO, SH_GOUP, SLACK, SH_TERM, OUTLOOK, KC_EQL, KC_MINS, KC_BSLS, KC_LBRC, KC_RBRC, KC_GRV, \
+ _______, SH_LOG, SH_GOUP, SLACK, SH_TERM, OUTLOOK, KC_EQL, KC_MINS, KC_BSLS, KC_LBRC, KC_RBRC, KC_GRV, \
_______, SH_CLRH, SH_CLRE, SH_HOME, SH_END, SH_RSCH, KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, SCN_SHT, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
@@ -149,26 +148,51 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case ADJUST:
layer_on(_ADJUST);
return false;
- case SH_SUDO:
- SEND_STRING("sudo !!"SS_TAP(X_ENTER)); // Elevate last command
+ case SH_LOG: // Open Jira log work window
+ SEND_STRING(SS_TAP(X_DOT));
+ _delay_ms(100);
+ SEND_STRING("log work");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
+ return false;
+ case SH_GOUP: // Go up a directory
+ SEND_STRING("cd .."SS_TAP(X_ENTER));
return false;
- case SH_GOUP:
- SEND_STRING("cd .."SS_TAP(X_ENTER)); // Go up a directory
+ case SH_TERM: // Open Terminal
+ SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
+ _delay_ms(100);
+ SEND_STRING("terminal");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
return false;
- case SH_TERM:
- SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"terminal"SS_TAP(X_ENTER)); // Open Terminal
+ case SPOT: // Open Spotify
+ SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
+ _delay_ms(100);
+ SEND_STRING("spotify app");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
return false;
- case SPOT:
- SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"spotify app"SS_TAP(X_ENTER)); // Open Spotify
+ case SLACK: // Open Slack
+ SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
+ _delay_ms(100);
+ SEND_STRING("slack");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
return false;
- case SLACK:
- SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"slack"SS_TAP(X_ENTER)); // Open Slack
+ case OUTLOOK: // Open MS Outlook
+ SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
+ _delay_ms(100);
+ SEND_STRING("outlook");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
return false;
- case OUTLOOK:
- SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"outlook"SS_TAP(X_ENTER)); // Open Outlook
+ case CHROME: // Open Chrome
+ SEND_STRING(SS_LGUI(SS_TAP(X_SPACE)));
+ _delay_ms(100);
+ SEND_STRING("chrome");
+ _delay_ms(100);
+ SEND_STRING(SS_TAP(X_ENTER));
return false;
- case CHROME:
- SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))"chrome"SS_TAP(X_ENTER)); // Open Chrome
}
} else {
switch(keycode) {
diff --git a/keyboards/lets_split/keymaps/normacos/readme.md b/keyboards/lets_split/keymaps/normacos/readme.md
index 5ab245bdf..3b7a20632 100644
--- a/keyboards/lets_split/keymaps/normacos/readme.md
+++ b/keyboards/lets_split/keymaps/normacos/readme.md
@@ -1,9 +1,9 @@
# normacos
-This keymap was designed especifically to be used on a MacOS High Sierra system with constant use of the Terminal, as it includes a multitude of macros for both the terminal as well as Spotlight Search.
+This keymap was designed specifically to be used on a MacOS High Sierra system with constant use of the Terminal, as it includes a multitude of macros for both the terminal as well as Spotlight Search.
Norman keyboard layout [info page.](https://normanlayout.info/)
-Some Norman layout keys were placed on different layers and different positions based on available space.
+Some Norman layout keys were placed on different layers and different positions based on available space and preference.
Macros:
@@ -13,7 +13,7 @@ Macros:
- Slack opens Slack through Spotlight Search
- Term opens Terminal through Spotlight Search
- Spot opens Spotify through Spotlight Search
-- Chrome opesn Chrome through Spotlight Search
+- Chrome opens Chrome through Spotlight Search
- OutLk opens Microsoft Outlook through Spotlight Search
- ScnSht allows the user to take a screenshot of a selected portion of the screen
- ClrHom clears Terminal line from beginning of line up to cursor
@@ -21,9 +21,10 @@ Macros:
- ShHome moves Terminal cursor to beginning of line
- ShEnd moves Terminal cursor to end of line
- Search activates Terminal Reverse Search Command History
-- Sudo elevates last Terminal command
+- Log opens the 'Log Work' modal on Atlassian's Jira web client
- UpDir moves working directory to its parent
+All macros that make use of the SEND_STRING command have a 100 millisecond wait before and after "writing" to let the computer/OS/app catch up.
Any and all empty keys shown below are will be set in the future, and do nothing as of the time of this writing.
@@ -62,7 +63,7 @@ Any and all empty keys shown below are will be set in the future, and do nothing
,-----------------------------------------. ,-----------------------------------------.
| Tab | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
|------+------+------+------+------+------| |------+------+------+------+------+------|
-|CtlEsc| Sudo | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
+|CtlEsc| Log | UpDir| Slack| Term | OutLk| | = | - | \ | [ | ] | ` |
|------+------+------+------+------+------| |------+------+------+------+------+------|
| Shift|ClrHom|ClrEnd|ShHome| ShEnd|Search| | Play | Mute | VolDn| VolUp|ScnSht|SftEnt|
|------+------+------+------+------+------| |------+------+------+------+------+------|