Skip to content

Commit

Permalink
Keymap: Added tri-state as module instead of urob
Browse files Browse the repository at this point in the history
  • Loading branch information
infused-kim committed Apr 24, 2024
1 parent b48bb72 commit 94fdfb2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#define MOUSE_TP 12
#define MOUSE_TP_SET 13

#ifdef HAS_UROB
#define HAS_TRI_STATE
#define HAS_NUM_WORD
#endif

// ZMK includes
#include <behaviors.dtsi>
Expand Down
4 changes: 3 additions & 1 deletion config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#define KEYS_T LH2 LH1 LH0 RH0 RH1 RH2

/* Enable keymap features that require forks or modules */
#define HAS_UROB
// #define HAS_UROB

#define HAS_TRI_STATE
#define HAS_MOUSE_KEYS
// #define HAS_MOUSE_TP
// #define HAS_CAPSLOCK
Expand Down
2 changes: 1 addition & 1 deletion config/includes/behaviours_other.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
#endif


#ifdef HAS_UROB
#ifdef HAS_TRI_STATE
/*
* Swapper CMD + TAB
*
Expand Down
7 changes: 5 additions & 2 deletions config/think_corney.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

/* Enable keymap features that require forks or modules */
// #define HAS_UROB

#define HAS_TRI_STATE
// #define HAS_CAPSLOCK

#define HAS_MOUSE_KEYS
#define HAS_MOUSE_TP
#define HAS_MOUSE_TP_BADJEFF_INPUT_LISTENER
// #define HAS_CAPSLOCK
// #define HAS_MOUSE_TP_BADJEFF_INPUT_LISTENER

/* source the main keymap */
#include "base.keymap"
8 changes: 8 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ manifest:
url-base: https://github.com/urob
- name: badjeff
url-base: https://github.com/badjeff/
- name: dhruvinsh
url-base: https://github.com/dhruvinsh

projects:

Expand Down Expand Up @@ -75,5 +77,11 @@ manifest:
remote: urob
revision: v2 # this will eventually become main

# Tri-state behavior to make cmd+tab switching key
# Used to be a key feature in urob's fork
- name: zmk-tri-state
remote: dhruvinsh
revision: main

self:
path: config

0 comments on commit 94fdfb2

Please sign in to comment.