aboutsummaryrefslogtreecommitdiffstats
path: root/users/pcoves/combo.c
diff options
context:
space:
mode:
authorpcoves <33952527+pcoves@users.noreply.github.com>2020-07-08 22:57:11 +0200
committerGitHub <noreply@github.com>2020-07-08 21:57:11 +0100
commitfacca2331519d5d56a926f93f0cdf925fe0857da (patch)
tree575913db2ecb5a78eeb22acabd69825f54d31b0d /users/pcoves/combo.c
parent071e0c2029e7923cbaa6ff721365b2f61cdd08d8 (diff)
downloadfirmware-facca2331519d5d56a926f93f0cdf925fe0857da.tar.gz
firmware-facca2331519d5d56a926f93f0cdf925fe0857da.tar.bz2
firmware-facca2331519d5d56a926f93f0cdf925fe0857da.zip
Add pcoves's userspace (#9354)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Pablo COVES <pablo.coves@anatoscope.com>
Diffstat (limited to 'users/pcoves/combo.c')
-rw-r--r--users/pcoves/combo.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/users/pcoves/combo.c b/users/pcoves/combo.c
new file mode 100644
index 000000000..a9a1ffe98
--- /dev/null
+++ b/users/pcoves/combo.c
@@ -0,0 +1,44 @@
+#include "quantum.h"
+
+enum {
+ MIN,
+ EQL,
+
+ ESC,
+ BSP,
+ DEL,
+
+ TAB,
+ BSL,
+
+ CUT,
+ GRA,
+};
+
+const uint16_t PROGMEM min[] = {KC_C, KC_V, COMBO_END};
+const uint16_t PROGMEM eql[] = {KC_M, KC_COMM, COMBO_END};
+
+const uint16_t PROGMEM esc[] = {KC_D, KC_F, COMBO_END};
+const uint16_t PROGMEM bsp[] = {KC_J, KC_K, COMBO_END};
+const uint16_t PROGMEM del[] = {KC_DOWN, KC_UP, COMBO_END};
+
+const uint16_t PROGMEM tab[] = {KC_S, KC_F, COMBO_END};
+const uint16_t PROGMEM bsl[] = {KC_J, KC_L, COMBO_END};
+
+const uint16_t PROGMEM cut[] = {KC_K, KC_L, COMBO_END};
+const uint16_t PROGMEM gra[] = {KC_S, KC_D, COMBO_END};
+
+combo_t key_combos[COMBO_COUNT] = {
+ [MIN] = COMBO(min, KC_MINS),
+ [EQL] = COMBO(eql, KC_EQL),
+
+ [ESC] = COMBO(esc, KC_ESC),
+ [BSP] = COMBO(bsp, KC_BSPC),
+ [DEL] = COMBO(del, KC_DEL),
+
+ [TAB] = COMBO(tab, KC_TAB),
+ [BSL] = COMBO(bsl, KC_BSLS),
+
+ [CUT] = COMBO(cut, KC_QUOT),
+ [GRA] = COMBO(gra, KC_GRAVE),
+};