possible leader fix
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from kb import KMKKeyboard
|
||||
from kmk.consts import UnicodeMode
|
||||
from kmk.extensions.layers import Layers
|
||||
from kmk.extensions.leader import Leader, LeaderMode
|
||||
from kmk.handlers.sequences import compile_unicode_string_sequences as cuss
|
||||
from kmk.handlers.sequences import send_string
|
||||
from kmk.keys import KC
|
||||
@@ -46,23 +45,6 @@ emoticons = cuss({
|
||||
|
||||
WPM = send_string('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Bibendum arcu vitae elementum curabitur vitae nunc sed. Facilisis sed odio morbi quis.')
|
||||
|
||||
leader_dictionary = {
|
||||
'hello': send_string('hello world from kmk macros'),
|
||||
'wpm': WPM,
|
||||
'atf': emoticons.ANGRY_TABLE_FLIP,
|
||||
'tf': emoticons.TABLE_FLIP,
|
||||
'fca': emoticons.FLAG_CA,
|
||||
'fus': emoticons.FLAG_US,
|
||||
'cel': emoticons.CELEBRATORY_GLITTER,
|
||||
'shr': emoticons.SHRUGGIE,
|
||||
'shre': emoticons.SHRUG_EMOJI,
|
||||
'poop': emoticons.POOP,
|
||||
'joy': emoticons.FACE_JOY,
|
||||
'ls': KC.LGUI(KC.HOME), # Lock screen
|
||||
'cw': KC.LGUI(KC.END), # Close window
|
||||
'dbg': KC.DBG,
|
||||
}
|
||||
|
||||
_______ = KC.TRNS
|
||||
xxxxxxx = KC.NO
|
||||
HELLA_TD = KC.TD(
|
||||
@@ -72,8 +54,7 @@ HELLA_TD = KC.TD(
|
||||
KC.TG(1),
|
||||
)
|
||||
|
||||
leader_ext = Leader(mode=LeaderMode.ENTER, sequences=leader_dictionary)
|
||||
keyboard.extentions = [layers_ext, leader_ext]
|
||||
keyboard.extentions = [layers_ext]
|
||||
|
||||
keyboard.keymap = [
|
||||
[
|
||||
@@ -87,7 +68,7 @@ keyboard.keymap = [
|
||||
_______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC.F10, KC.F11, KC.F12, xxxxxxx, xxxxxxx, _______,
|
||||
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC.F7, KC.F8, KC.F9, xxxxxxx, xxxxxxx, KC.EQUAL,
|
||||
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC.INS, KC.F4, KC.F5, KC.F6, xxxxxxx, xxxxxxx, xxxxxxx,
|
||||
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC.LEAD, _______, KC.F1, KC.F2, KC.F3, xxxxxxx, xxxxxxx, _______,
|
||||
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC.NO, _______, KC.F1, KC.F2, KC.F3, xxxxxxx, xxxxxxx, _______,
|
||||
KC.HOME, KC.END, _______, xxxxxxx, KC.PGUP, KC.PGDN,
|
||||
],
|
||||
[
|
||||
|
@@ -1,6 +1,5 @@
|
||||
from kb import KMKKeyboard
|
||||
from kmk.consts import UnicodeMode
|
||||
from kmk.extensions.leader import Leader, LeaderMode
|
||||
from kmk.handlers.sequences import compile_unicode_string_sequences as cuss
|
||||
from kmk.handlers.sequences import send_string
|
||||
from kmk.keys import KC, make_key
|
||||
@@ -52,22 +51,6 @@ HELLA_TD = KC.TD(
|
||||
KC.TG(1),
|
||||
)
|
||||
|
||||
leader_ext = Leader(mode=LeaderMode.ENTER, sequences={
|
||||
'hello': send_string('hello world from kmk macros'),
|
||||
'wpm': WPM,
|
||||
'atf': emoticons.ANGRY_TABLE_FLIP,
|
||||
'tf': emoticons.TABLE_FLIP,
|
||||
'fca': emoticons.FLAG_CA,
|
||||
'fus': emoticons.FLAG_US,
|
||||
'cel': emoticons.CELEBRATORY_GLITTER,
|
||||
'shr': emoticons.SHRUGGIE,
|
||||
'poop': emoticons.POOP,
|
||||
'ls': KC.LGUI(KC.HOME),
|
||||
'dbg': KC.DBG,
|
||||
})
|
||||
|
||||
keyboard.extensions = [leader_ext]
|
||||
|
||||
|
||||
def shrek_is_life(*args, **kwargs):
|
||||
'''
|
||||
@@ -107,7 +90,7 @@ keyboard.keymap = [
|
||||
KC.GESC, KC.QUOT, KC.COMM, KC.DOT, KC.P, KC.Y, KC.F, KC.G, KC.C, KC.R, KC.L, KC.BSPC,
|
||||
KC.TAB, KC.A, KC.O, KC.E, KC.U, KC.I, KC.D, KC.H, KC.T, KC.N, KC.S, KC.ENT,
|
||||
KC.LGUI, KC.SCLN, KC.Q, KC.J, KC.K, KC.X, KC.B, KC.M, KC.W, KC.V, KC.Z, KC.LALT,
|
||||
KC.LCTL, KC.LEAD, KC.LSHIFT(KC.LGUI), KC.MO(2), KC.MO(3), KC.LSFT, KC.SPC, KC.MO(1), KC.LEFT, KC.DOWN, KC.UP, KC.RGHT,
|
||||
KC.LCTL, KC.NO, KC.LSHIFT(KC.LGUI), KC.MO(2), KC.MO(3), KC.LSFT, KC.SPC, KC.MO(1), KC.LEFT, KC.DOWN, KC.UP, KC.RGHT,
|
||||
],
|
||||
|
||||
[
|
||||
|
Reference in New Issue
Block a user