Skip to content

Commit 4ec9455

Browse files
author
0x0k4y
committed
Updated keymap: made accidental combos harder, added modmorphs to arrow keys for pgup, pgdown, home, end
1 parent 87b00a8 commit 4ec9455

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

config/totem.keymap

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131

3232
Enter {
3333
bindings = <&kp ENTER>;
34-
key-positions = <19 18>;
34+
key-positions = <19 18 17>;
3535
};
3636

3737
Backspace {
3838
bindings = <&kp BACKSPACE>;
39-
key-positions = <9 8>;
39+
key-positions = <9 8 7>;
4040
};
4141

4242
Tab {
4343
bindings = <&kp TAB>;
44-
key-positions = <0 1>;
44+
key-positions = <0 1 2>;
4545
};
4646
};
4747

@@ -63,6 +63,42 @@
6363
#binding-cells = <0>;
6464
mods = <(MOD_LSFT|MOD_RSFT)>;
6565
};
66+
67+
up_pgup: up_pgup {
68+
compatible = "zmk,behavior-mod-morph";
69+
label = "UP_PGUP";
70+
bindings = <&kp UP_ARROW>, <&kp PG_UP>;
71+
72+
#binding-cells = <0>;
73+
mods = <(MOD_RSFT|MOD_LSFT)>;
74+
};
75+
76+
down_pgdown: down_pgdown {
77+
compatible = "zmk,behavior-mod-morph";
78+
label = "DOWN_PGDOWN";
79+
bindings = <&kp DOWN_ARROW>, <&kp PAGE_DOWN>;
80+
81+
#binding-cells = <0>;
82+
mods = <(MOD_LSFT|MOD_RSFT)>;
83+
};
84+
85+
left_home: left_home {
86+
compatible = "zmk,behavior-mod-morph";
87+
label = "LEFT_HOME";
88+
bindings = <&kp LEFT_ARROW>, <&kp HOME>;
89+
90+
#binding-cells = <0>;
91+
mods = <(MOD_LSFT|MOD_RSFT)>;
92+
};
93+
94+
right_end: right_end {
95+
compatible = "zmk,behavior-mod-morph";
96+
label = "RIGHT_END";
97+
bindings = <&kp RIGHT_ARROW>, <&kp END>;
98+
99+
#binding-cells = <0>;
100+
mods = <(MOD_LSFT|MOD_RSFT)>;
101+
};
66102
};
67103

68104
keymap {

0 commit comments

Comments
 (0)