Skip to content

Commit

Permalink
Updates to Talljoe's Keymaps (qmk#10115)
Browse files Browse the repository at this point in the history
* Minor Tweak

* Refactor spacebar defines.

* Add TMO50 layout

* Rename Atreus keymap.

* Refactor Atreus for readability.

* Eliminate tapdance quote and tweak maltroff.

* Factor out tapdance.

* Add some fancy combos and keys.

* Remove combos for now because they cause pain.

* WIP visualizer

* Alternate method for reset

* WIP2 visualizer

* Layer text tweak.

* Add made-up layout Nortron as a combination of Norman and Maltron.

* Add backspace.

* Add Talljoe keymap to Prime E.

* Fix double-colon so it doesn't press enter if shift is released early.

* Use new make command.

* Bring some modern standards into code and add licenses.

* Remove QMK_KEYBOARD_CONFIG_H and fixup QMK_KEYBOARD_H.

* Move from `biton32` to `get_highest_layer`.

* Remove PREVENT_STUCK_MODIFIERS

* Update keyboards/thevankeyboards/minivan/keymaps/talljoe-minivan/config.h
  • Loading branch information
Talljoe authored Nov 7, 2020
1 parent d2edae0 commit 4679194
Show file tree
Hide file tree
Showing 23 changed files with 662 additions and 260 deletions.
23 changes: 18 additions & 5 deletions layouts/community/60_ansi/talljoe-ansi/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H
/* Copyright 2020 Joseph Wasson
*
* 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

#include QMK_KEYBOARD_CONFIG_H

Expand All @@ -16,7 +31,5 @@
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \
K40, K41, K42, K45, K48, K49, K4B, K4C \
K40, K41, K42, K46, K48, K49, K4B, K4C \
)

#endif //CONFIG_USER_H
25 changes: 18 additions & 7 deletions layouts/community/60_ansi_split_bs_rshift/talljoe/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H

#include QMK_KEYBOARD_CONFIG_H
/* Copyright 2020 Joseph Wasson
*
* 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

#define ENABLE_GAME_LAYER

Expand All @@ -16,7 +29,7 @@
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
K40, K41, K42, K45, K48, K49, K4B, K4C \
K40, K41, K42, K46, K48, K49, K4B, K4C \
)

/* Color Map */
Expand Down Expand Up @@ -68,5 +81,3 @@
#define BACKLIGHT_ALPHAS_MODS_ROW_2 0b0011000000000001

#endif //KEYBOARD_zeal60

#endif //CONFIG_USER_H
16 changes: 16 additions & 0 deletions layouts/community/60_ansi_split_bs_rshift/talljoe/solarized.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2020 Joseph Wasson
*
* 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 "solarized.h"

#define MAKE_COLOR(_H, _S, _V) \
Expand Down
21 changes: 17 additions & 4 deletions layouts/community/60_ansi_split_bs_rshift/talljoe/solarized.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#ifndef SOLARIZED_H
#define SOLARIZED_H
/* Copyright 2020 Joseph Wasson
*
* 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

#include "quantum/color.h"

Expand All @@ -23,5 +38,3 @@ typedef struct {
} solarized_t;

extern solarized_t solarized;

#endif
22 changes: 18 additions & 4 deletions layouts/community/60_hhkb/talljoe-hhkb/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H
/* Copyright 2020 Joseph Wasson
*
* 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

#include QMK_KEYBOARD_CONFIG_H

Expand All @@ -16,10 +31,9 @@
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
K41, K42, K45, K48, K4C \
K41, K42, K46, K48, K4C \
)

#ifdef RGB_BACKLIGHT_M60_A
#define ZEAL_RGB
#endif
#endif //CONFIG_USER_H
23 changes: 17 additions & 6 deletions layouts/community/ortho_4x12/talljoe/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H
/* Copyright 2020 Joseph Wasson
*
* 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

#include QMK_KEYBOARD_CONFIG_H
#define SPACE_COUNT 3

#define TEMPLATE( \
Expand All @@ -17,6 +31,3 @@ LAYOUT_ortho_4x12( \
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \
K40, K41, K0D, K42, K44, K45, K45, K46, K48, K49, K4B, K4C \
)


#endif //CONFIG_USER_H
23 changes: 18 additions & 5 deletions layouts/community/tkl_ansi/talljoe-tkl/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H
/* Copyright 2020 Joseph Wasson
*
* 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

#include QMK_KEYBOARD_CONFIG_H

Expand All @@ -18,7 +33,5 @@
KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, \
KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, \
KN2, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, \
KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0 \
KA4, KP2, KC6, KX2, KC0, KM3, KD0, KA1, KO0, KK0, KL0 \
)

#endif //CONFIG_USER_H
21 changes: 18 additions & 3 deletions users/talljoe/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#ifndef USERSPACE_CONFIG_H
#define USERSPACE_CONFIG_H
/* Copyright 2020 Joseph Wasson
*
* 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

#define PERMISSIVE_HOLD

Expand All @@ -9,4 +23,5 @@
#define BOOTMAGIC_KEY_SKIP KC_I
#define BOOTMAGIC_KEY_EEPROM_CLEAR KC_E

#endif // !USERSPACE_CONFIG_H
#define COMBO_COUNT 2
#define COMBO_TERM 250
40 changes: 40 additions & 0 deletions users/talljoe/macros.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* Copyright 2020 Joseph Wasson
*
* 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 "talljoe.h"

extern keymap_config_t keymap_config;

ostype_t get_os() {
if(keymap_config.swap_lalt_lgui) {
return MACOSX;
}

return WINDOWS;
}

#define IS_OSX() (get_os() == MACOSX)

#define MOD_SEND(KEY) (IS_OSX() ? SEND_STRING(SS_LCMD(KEY)) : SEND_STRING(SS_LCTRL(KEY)))

void macro_copy() { MOD_SEND("c"); }
void macro_paste() { MOD_SEND("v"); }
void macro_lock() {
if (IS_OSX()) {
SEND_STRING(SS_LCTRL(SS_LCMD("q")));
} else {
SEND_STRING(SS_LGUI("l"));
}
}
27 changes: 27 additions & 0 deletions users/talljoe/macros.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* Copyright 2020 Joseph Wasson
*
* 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/>.
*/

typedef enum OSTYPE {
WINDOWS,
MACOSX,
LINUX
} ostype_t;

ostype_t get_os(void);

void macro_copy(void);
void macro_paste(void);
void macro_lock(void);
9 changes: 8 additions & 1 deletion users/talljoe/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
SRC += talljoe.c tapdance.c
SRC += talljoe.c macros.c $(wildcard users/talljoe/tapdance/*.c)
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
SRC += visualizer.c
endif

ifeq ($(strip $(FLASH_BOOTLOADER)), yes)
OPT_DEFS += -DFLASH_BOOTLOADER
endif

EXTRAFLAGS+=-flto

Expand Down
Loading

0 comments on commit 4679194

Please sign in to comment.