Update all other keymaps currently in the system
This commit is contained in:
parent
413e8b8806
commit
9bed3db9be
@ -1,8 +1,7 @@
|
|||||||
from kmk.consts import DiodeOrientation, UnicodeMode
|
from kmk.consts import DiodeOrientation, UnicodeMode
|
||||||
from kmk.keycodes import KC
|
from kmk.handlers.sequences import (compile_unicode_string_sequences,
|
||||||
from kmk.keycodes import generate_leader_dictionary_seq as glds
|
send_string)
|
||||||
from kmk.macros.simple import send_string
|
from kmk.keys import KC
|
||||||
from kmk.macros.unicode import compile_unicode_string_sequences
|
|
||||||
from kmk.mcus.circuitpython_samd51 import Firmware
|
from kmk.mcus.circuitpython_samd51 import Firmware
|
||||||
from kmk.pins import Pin as P
|
from kmk.pins import Pin as P
|
||||||
from kmk.types import AttrDict
|
from kmk.types import AttrDict
|
||||||
@ -35,13 +34,13 @@ emoticons = compile_unicode_string_sequences({
|
|||||||
# ---------------------- Leader Key Macros --------------------------------------------
|
# ---------------------- Leader Key Macros --------------------------------------------
|
||||||
|
|
||||||
keyboard.leader_dictionary = {
|
keyboard.leader_dictionary = {
|
||||||
glds('flip'): emoticons.ANGRY_TABLE_FLIP,
|
'flip': emoticons.ANGRY_TABLE_FLIP,
|
||||||
glds('cheer'): emoticons.CHEER,
|
'cheer': emoticons.CHEER,
|
||||||
glds('wat'): emoticons.WAT,
|
'wat': emoticons.WAT,
|
||||||
glds('ff'): emoticons.FF,
|
'ff': emoticons.FF,
|
||||||
glds('f'): emoticons.F,
|
'f': emoticons.F,
|
||||||
glds('meh'): emoticons.MEH,
|
'meh': emoticons.MEH,
|
||||||
glds('yay'): emoticons.YAY,
|
'yay': emoticons.YAY,
|
||||||
}
|
}
|
||||||
|
|
||||||
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.")
|
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.")
|
||||||
|
@ -2,9 +2,8 @@ import board
|
|||||||
import busio
|
import busio
|
||||||
|
|
||||||
from kmk.consts import DiodeOrientation, LeaderMode, UnicodeMode
|
from kmk.consts import DiodeOrientation, LeaderMode, UnicodeMode
|
||||||
from kmk.keycodes import KC
|
from kmk.handlers.sequences import compile_unicode_string_sequences
|
||||||
from kmk.keycodes import generate_leader_dictionary_seq as glds
|
from kmk.keys import KC
|
||||||
from kmk.macros.unicode import compile_unicode_string_sequences
|
|
||||||
from kmk.mcus.circuitpython_samd51 import Firmware
|
from kmk.mcus.circuitpython_samd51 import Firmware
|
||||||
from kmk.pins import Pin as P
|
from kmk.pins import Pin as P
|
||||||
|
|
||||||
@ -42,13 +41,13 @@ emoticons = compile_unicode_string_sequences({
|
|||||||
# ---------------------- Leader Key Macros --------------------------------------------
|
# ---------------------- Leader Key Macros --------------------------------------------
|
||||||
|
|
||||||
keyboard.leader_dictionary = {
|
keyboard.leader_dictionary = {
|
||||||
glds('flip'): emoticons.ANGRY_TABLE_FLIP,
|
'flip': emoticons.ANGRY_TABLE_FLIP,
|
||||||
glds('cheer'): emoticons.CHEER,
|
'cheer': emoticons.CHEER,
|
||||||
glds('wat'): emoticons.WAT,
|
'wat': emoticons.WAT,
|
||||||
glds('ff'): emoticons.FF,
|
'ff': emoticons.FF,
|
||||||
glds('f'): emoticons.F,
|
'f': emoticons.F,
|
||||||
glds('meh'): emoticons.MEH,
|
'meh': emoticons.MEH,
|
||||||
glds('yay'): emoticons.YAY,
|
'yay': emoticons.YAY,
|
||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------- Keymap ---------------------------------------------------------
|
# ---------------------- Keymap ---------------------------------------------------------
|
||||||
|
@ -2,10 +2,9 @@ import board
|
|||||||
import busio
|
import busio
|
||||||
|
|
||||||
from kmk.consts import DiodeOrientation, LeaderMode, UnicodeMode
|
from kmk.consts import DiodeOrientation, LeaderMode, UnicodeMode
|
||||||
from kmk.keycodes import KC
|
from kmk.handlers.sequences import (compile_unicode_string_sequences,
|
||||||
from kmk.keycodes import generate_leader_dictionary_seq as glds
|
simple_key_sequence)
|
||||||
from kmk.macros.simple import simple_key_sequence
|
from kmk.keys import KC
|
||||||
from kmk.macros.unicode import compile_unicode_string_sequences
|
|
||||||
from kmk.mcus.circuitpython_samd51 import Firmware
|
from kmk.mcus.circuitpython_samd51 import Firmware
|
||||||
from kmk.pins import Pin as P
|
from kmk.pins import Pin as P
|
||||||
|
|
||||||
@ -43,14 +42,14 @@ emoticons = compile_unicode_string_sequences({
|
|||||||
# ---------------------- Leader Key Macros --------------------------------------------
|
# ---------------------- Leader Key Macros --------------------------------------------
|
||||||
|
|
||||||
keyboard.leader_dictionary = {
|
keyboard.leader_dictionary = {
|
||||||
glds('flip'): emoticons.ANGRY_TABLE_FLIP,
|
'flip': emoticons.ANGRY_TABLE_FLIP,
|
||||||
glds('cheer'): emoticons.CHEER,
|
'cheer': emoticons.CHEER,
|
||||||
glds('wat'): emoticons.WAT,
|
'wat': emoticons.WAT,
|
||||||
glds('ff'): emoticons.FF,
|
'ff': emoticons.FF,
|
||||||
glds('f'): emoticons.F,
|
'f': emoticons.F,
|
||||||
glds('meh'): emoticons.MEH,
|
'meh': emoticons.MEH,
|
||||||
glds('yay'): emoticons.YAY,
|
'yay': emoticons.YAY,
|
||||||
glds('gw'): simple_key_sequence([KC.DF(1)]),
|
'gw': simple_key_sequence([KC.DF(1)]),
|
||||||
}
|
}
|
||||||
|
|
||||||
_______ = KC.TRNS
|
_______ = KC.TRNS
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
from kmk.boards.kitsym4_iris import Firmware
|
from kmk.boards.kitsym4_iris import Firmware
|
||||||
from kmk.consts import LeaderMode, UnicodeMode
|
from kmk.consts import LeaderMode, UnicodeMode
|
||||||
from kmk.keycodes import KC
|
from kmk.handlers.sequences import compile_unicode_string_sequences as cuss
|
||||||
from kmk.keycodes import generate_leader_dictionary_seq as glds
|
from kmk.handlers.sequences import send_string
|
||||||
from kmk.macros.simple import send_string
|
from kmk.keys import KC
|
||||||
from kmk.macros.unicode import compile_unicode_string_sequences as cuss
|
|
||||||
|
|
||||||
keyboard = Firmware()
|
keyboard = Firmware()
|
||||||
|
|
||||||
@ -43,15 +42,17 @@ 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.")
|
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.")
|
||||||
|
|
||||||
keyboard.leader_mode = LeaderMode.TIMEOUT
|
keyboard.leader_mode = LeaderMode.ENTER
|
||||||
keyboard.leader_dictionary = {
|
keyboard.leader_dictionary = {
|
||||||
glds('hello'): send_string('hello world from kmk macros'),
|
'hello': send_string('hello world from kmk macros'),
|
||||||
glds('wpm'): WPM,
|
'wpm': WPM,
|
||||||
glds('atf'): emoticons.ANGRY_TABLE_FLIP,
|
'atf': emoticons.ANGRY_TABLE_FLIP,
|
||||||
glds('tf'): emoticons.TABLE_FLIP,
|
'tf': emoticons.TABLE_FLIP,
|
||||||
glds('fca'): emoticons.FLAG_CA,
|
'fca': emoticons.FLAG_CA,
|
||||||
glds('fus'): emoticons.FLAG_US,
|
'fus': emoticons.FLAG_US,
|
||||||
glds('cel'): emoticons.CELEBRATORY_GLITTER,
|
'cel': emoticons.CELEBRATORY_GLITTER,
|
||||||
|
'shr': emoticons.SHRUGGIE,
|
||||||
|
'poop': emoticons.POOP,
|
||||||
}
|
}
|
||||||
|
|
||||||
_______ = KC.TRNS
|
_______ = KC.TRNS
|
||||||
|
Loading…
Reference in New Issue
Block a user