from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.modtap import ModTap from kmk.modules.split import Split keyboard = KMKKeyboard() # ------------------User level config variables --------------------------------------- keyboard.tap_time = 150 layers = Layers() modtap = ModTap() rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5) split = Split() keyboard.modules = [modtap, layers, split] keyboard.extensions = [rgb_ext] _______ = KC.TRNS XXXXXXX = KC.NO SHFT_INS = KC.LSHIFT(KC.INS) BASE = KC.DF(0) GAMING = KC.DF(1) LT1_SP = KC.MO(2) LT2_SP = KC.LT(3, KC.SPC) TAB_SB = KC.LT(5, KC.TAB) SUPER_L = KC.LM(4, KC.LGUI) # ---------------------- Keymap ---------------------------------------------------------
), # Only 1 encoder is being used, so only one tuple per layer is required ], [ (Zoom_in, Zoom_out, 1), ], [ (_______, _______, 1), # no action taken by the encoder on this layer ], ] layers_ext = Layers() encoder_ext = EncoderHandler([board.D40], [board.D41], encoder_map) encoder_ext.encoders[0].is_inverted = True keyboard.modules = [layers_ext, encoder_ext] keyboard.tap_time = 250 keyboard.debug_enabled = False # custom keys NEW = KC.LCTL(KC.N) NEW_DIR = KC.LCTL(KC.LSFT(KC.N)) CAD = KC.LCTL(KC.LALT(KC.DEL)) RES = KC.LCTL(KC.LSFT(KC.ESC)) FE = KC.LGUI(KC.E) LT1_DEL = KC.LT(1, KC.DEL) LT2_ENT = KC.LT(2, KC.ENT) SAVE_AS = KC.LCTL(KC.LSFT(KC.S)) PSCR = KC.LGUI(KC.PSCR) SNIP = simple_key_sequence((
from kb import KMKKeyboard from kmk.extensions.led import LED from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.modtap import ModTap keyboard = KMKKeyboard() modtap = ModTap() layers_ext = Layers() led = LED() keyboard.extensions = [led] keyboard.modules = [layers_ext, modtap] # Cleaner key names _______ = KC.TRNS XXXXXXX = KC.NO FN1_SPC = KC.LT(1, KC.SPC) FN2_BSPC = KC.LT(2, KC.BSPC) FN3_C = KC.LT(3, KC.C) FN4_V = KC.LT(4, KC.V) FN5_B = KC.LT(5, KC.B) CTL_Z = KC.CTL_T(KC.Z) ALT_X = KC.ALT(KC.X) ALT_N = KC.ALT(KC.N) CTL_M = KC.CTL(KC.M) SFT_ENT = KC.SFT(KC.ENT) BL_DEC = KC.BL_DEC
KC.B, send_string('macros in a tap dance? I think yes'), KC.TG(1), ) rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=keyboard.rgb_num_pixels) layers_ext = Layers() # TODO Comment one of these on each side split_side = SplitSide.LEFT split_side = SplitSide.RIGHT split = Split(split_type=SplitType.BLE, split_side=split_side) keyboard.extensions = [rgb_ext] keyboard.modules = [split, layers_ext] keyboard.keymap = [ [ KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, KC.BSPC,
from kb import KMKKeyboard from kmk.consts import UnicodeMode from kmk.handlers.sequences import compile_unicode_string_sequences as cuss from kmk.handlers.sequences import send_string from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() layers_ext = Layers() split = Split(split_type=SplitType.UART) keyboard.modules = [layers_ext, split] keyboard.debug_enabled = False keyboard.unicode_mode = UnicodeMode.LINUX keyboard.tap_time = 750 emoticons = cuss({ # Emojis 'BEER': r'๐บ', 'BEER_TOAST': r'๐ป', 'FACE_CUTE_SMILE': r'๐', 'FACE_HEART_EYES': r'๐', 'FACE_JOY': r'๐', 'FACE_SWEAT_SMILE': r'๐ ', 'FACE_THINKING': r'๐ค', 'FIRE': r'๐ฅ', 'FLAG_CA': r'๐จ๐ฆ', 'FLAG_US': r'๐บ๐ธ', 'HAND_CLAP': r'๐', 'HAND_HORNS': r'๐ค',
from kmk.extensions.led import LED from kmk.extensions.rgb import RGB from kmk.keys import KC from kmk.modules.layers import Layers keyboard = KMKKeyboard() _______ = KC.TRNS XXXXXXX = KC.NO rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=keyboard.rgb_num_pixels) led = LED() layers_ext = Layers() keyboard.extensions = [rgb_ext, led] keyboard.modules = [layers_ext] BASE = 0 FN1 = 1 keyboard.keymap = [ [ KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8,
from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.media_keys import MediaKeys from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() layers = Layers() media_keys = MediaKeys() split = Split(split_type=SplitType.UART) rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=16, val_limit=150, hue_default=0, sat_default=100, val_default=20) keyboard.modules = [layers, media_keys, split] keyboard.extensions = [rgb_ext] # ------------------User level config variables --------------------------------------- keyboard.unicode_mode = UnicodeMode.LINUX keyboard.tap_time = 150 keyboard.debug_enabled = False LOWER = KC.TT(3) UP_HYP = KC.LT(4, KC.MINS) _______ = KC.TRNS XXXXXXX = KC.NO # ---------------------- Keymap ---------------------------------------------------------