summaryrefslogtreecommitdiff
path: root/users/ibnuda/abstraction.h
diff options
context:
space:
mode:
authorIbnu Daru Aji <ibnuda@users.noreply.github.com>2021-09-01 01:23:02 +0700
committerGitHub <noreply@github.com>2021-08-31 11:23:02 -0700
commit6f5428687c37d45cf279d9d3f44de1098a767723 (patch)
tree4e83e846eb6a4e613683fc1409eab79b529a36ee /users/ibnuda/abstraction.h
parentbdd0a6c09789e3e4380f4351f1f83004542d309f (diff)
[Keymap] reflects current rick's keymap (#14169)
Diffstat (limited to 'users/ibnuda/abstraction.h')
-rw-r--r--users/ibnuda/abstraction.h117
1 files changed, 117 insertions, 0 deletions
diff --git a/users/ibnuda/abstraction.h b/users/ibnuda/abstraction.h
new file mode 100644
index 0000000000..0870116c9a
--- /dev/null
+++ b/users/ibnuda/abstraction.h
@@ -0,0 +1,117 @@
+/* Copyright 2021 Ibnu D. Aji
+ *
+ * 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.h"
+
+enum {
+ _BASE,
+ _LOWER,
+ _RAISE,
+ _ADJUST,
+};
+
+// keycode abstraction
+// ABC:
+// A: L = left
+// R = right
+// B: U = upper row
+// M = middle row
+// L = lower row
+// C: P = pinky finger
+// R = ring finger
+// M = middle finger
+// I = index finger
+// II = inner index finger
+#define LUP KC_Q
+#define LUR KC_V
+#define LUM KC_C
+#define LUI KC_P
+#define LUII KC_B
+#define LMP KC_R
+#define LMR KC_S
+#define LMM KC_T
+#define LMI KC_H
+#define LMII KC_D
+#define LLP KC_QUOT
+#define LLR KC_J
+#define LLM KC_G
+#define LLI KC_K
+#define LLII KC_X
+
+#define RUP KC_Z
+#define RUR KC_Y
+#define RUM KC_U
+#define RUI KC_L
+#define RUII KC_DOT
+#define RMP KC_O
+#define RMR KC_I
+#define RMM KC_A
+#define RMI KC_N
+#define RMII KC_F
+#define RLP KC_SLSH
+#define RLR KC_SCLN
+#define RLM KC_W
+#define RLI KC_M
+#define RLII KC_COMM
+
+
+// thumb keys.
+#define TRAISE TG(_RAISE)
+#define AL_ENT ALT_T(KC_ENT)
+#define SF_BSPC SFT_T(KC_BSPC)
+#define CT_ESC CTL_T(KC_ESC)
+
+// home row mods.
+#define CTLR LCTL_T(LMR)
+#define CTRR RCTL_T(RMR)
+#define CT_LEFT LCTL_T(KC_LEFT)
+#define CT_SIX RCTL_T(KC_6)
+
+#define SHLP LSFT_T(LMP)
+#define SHRP RSFT_T(RMP)
+#define SH_HASH LSFT_T(KC_HASH)
+#define SH_ZERO RSFT_T(KC_0)
+
+#define ALLM LALT_T(LMM)
+#define ALRM RALT_T(RMM)
+#define AL_DOWN LALT_T(KC_DOWN)
+#define AL_FIVE RALT_T(KC_5)
+
+#define GULII RGUI_T(LMII)
+#define GURII LGUI_T(RMII)
+#define GU_DLR RGUI_T(KC_DLR)
+#define GU_EQL LGUI_T(KC_EQL)
+
+// layer toggle.
+#define LW_E LT(_LOWER, KC_E)
+#define RS_SPC LT(_RAISE, KC_SPC)
+
+#define ADDDD MO(_ADJUST)
+
+// common shortcuts for windows and linux that i use.
+#define NXTTAB LCTL(KC_PGDN)
+#define PRVTAB LCTL(KC_PGUP)
+#define UPTAB LCTL(LSFT(KC_PGUP))
+#define DNTAB LCTL(LSFT(KC_PGDN))
+#define NXTWIN LALT(KC_TAB)
+#define PRVWIN LALT(LSFT(KC_TAB))
+#define CALDL LCTL(LALT(KC_DELT))
+#define TSKMGR LCTL(LSFT(KC_ESC))
+#define EXPLR LGUI(KC_E)
+#define LCKGUI LGUI(KC_L)
+#define CONPST LSFT(KC_INS)
+#define CLSGUI LALT(KC_F4)