summaryrefslogtreecommitdiff
path: root/keyboards/9key/keymaps/bcat/keymap.c
blob: c42bc76c2540b19ce6c623cf47482981f6d3d476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include QMK_KEYBOARD_H

enum layer {
    LAYER_DEFAULT,
    LAYER_FUNCTION,
};

/* Switch to function layer when held. */
#define LY_FUNC MO(LAYER_FUNCTION)

/* Send Ctrl+Alt+L (Cinnamon screen lock shortcut) when pressed. */
#define KY_LOCK LCA(KC_L)

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    [LAYER_DEFAULT] = LAYOUT(
        KC_MPLY,  KC_VOLU,  KC_MSTP,
        KC_MPRV,  KC_VOLD,  KC_MNXT,
        KY_LOCK,  KC_MUTE,  LY_FUNC
    ),

    [LAYER_FUNCTION] = LAYOUT(
        EEP_RST,  _______,  RESET,
        _______,  _______,  _______,
        _______,  _______,  _______
    ),
};