aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard/hid_liber/keymap_custom.h
diff options
context:
space:
mode:
authorGravatar yeeeargh <sebatian@hauser.tv>2013-07-03 13:04:33 +0200
committerGravatar yeeeargh <sebatian@hauser.tv>2013-07-03 13:04:33 +0200
commite0cb9cf30bd9d326bc379bcca6ec44e86ca7c283 (patch)
tree9de7bbdb685e769ca89c7030adc428f7a4425a9f /keyboard/hid_liber/keymap_custom.h
parent681e0194501aba4e6234f478d2c96d428b1223b5 (diff)
downloadqmk_firmware-e0cb9cf30bd9d326bc379bcca6ec44e86ca7c283.tar.gz
Added standard layouts for ANSI and ISO. Moved the initial layout from alaricljs to a seperate layout file. If no layout gets defined ANSI is used as a default.
Added a README.md with links to the deskthority wikipages for this project and some build instructions.
Diffstat (limited to 'keyboard/hid_liber/keymap_custom.h')
-rw-r--r--keyboard/hid_liber/keymap_custom.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/keyboard/hid_liber/keymap_custom.h b/keyboard/hid_liber/keymap_custom.h
index 257106b51..03e1a1bfa 100644
--- a/keyboard/hid_liber/keymap_custom.h
+++ b/keyboard/hid_liber/keymap_custom.h
@@ -1,7 +1,9 @@
+// hid_liber custom
+// ANSI layout with FN key instead of APP button
+// Layer 1 has mediakeys on the nav cluster and keypad numbers for alt-codes
+
static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-/* Keymap 0: Default Keymap
- *
- * ANSI:
+/* Layer 0: Default ANSI
*
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
* |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
@@ -19,7 +21,7 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------------------------------------------' `-----------'
*/
- KEYMAP(
+ KEYMAP(\
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR, SLCK, BRK, \
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, INS, HOME, PGUP, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, DEL, END, PGDN, \
@@ -28,7 +30,8 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LCTL, LGUI, LALT, SPC, RALT, RGUI, FN1, RCTL, LEFT, DOWN, RGHT),
/*
- * Keymap 1: Media Keys
+ * Layer 1: Media Keys
+ * Keypad numbers instead of normal numbers
*
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
* |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
@@ -46,15 +49,16 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------------------------------------------' `-----------'
*/
- KEYMAP(
+ KEYMAP(\
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, P1, P2, P3, P4, P5, P6, P7, P8, P9, P0, TRNS, TRNS, TRNS, TRNS, MSEL, VOLU, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MUTE, VOLD, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MPLY, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN1, TRNS, MPRV, MSTP, MNXT),
+
};
static const uint16_t PROGMEM fn_actions[] = {
- [1] = ACTION_LAYER_MOMENTARY(1), // activate Keymap 1 when FN1 pressed
+ [1] = ACTION_LAYER_MOMENTARY(1), // activate layer 1 when FN1 pressed
};