diff options
author | Mateusz Urbanek <echelon.div@gmail.com> | 2020-11-22 08:42:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 23:42:58 -0800 |
commit | a952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad (patch) | |
tree | 0cbf5640f7a43a29ceb0e0bc2c42e6b3252b50c2 /keyboards/vagrant_10/keymaps/default/keymap.c | |
parent | 44d1b2e717db0387e7138cc24fc5cc15ba8c90f2 (diff) | |
download | qmk_firmware-a952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad.tar.gz qmk_firmware-a952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad.zip |
[Keyboard] Added Vagrant-10 keyboard (#10048)
* Initial commit for Vagrant-10
* Initial commit for Vagrant-10
* customized layout
* Fully working QMK config with default keymap
* Update info.json
* Update info.json
* Update readme.md
* prep
* fixed pull request issues
* Update keyboards/vagrant_10/keymaps/default/keymap.c
* Update keyboards/vagrant_10/keymaps/default/keymap.c
* Update keyboards/vagrant_10/vagrant_10.h
* Update keyboards/vagrant_10/vagrant_10.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/rules.mk
* Update keyboards/vagrant_10/readme.md
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/info.json
* Update keyboards/vagrant_10/info.json
* Update keyboards/vagrant_10/vagrant_10.h
* Update keyboards/vagrant_10/keymaps/default/keymap.c
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/readme.md
* Update keyboards/vagrant_10/config.h
* License header
* License header
* License header
* License header.
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/config.h
* Update keyboards/vagrant_10/vagrant_10.h
Diffstat (limited to 'keyboards/vagrant_10/keymaps/default/keymap.c')
-rwxr-xr-x | keyboards/vagrant_10/keymaps/default/keymap.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/keyboards/vagrant_10/keymaps/default/keymap.c b/keyboards/vagrant_10/keymaps/default/keymap.c new file mode 100755 index 0000000000..4864ce6e79 --- /dev/null +++ b/keyboards/vagrant_10/keymaps/default/keymap.c @@ -0,0 +1,59 @@ +/** +MIT License + +Copyright (c) 2020 Shanduur & QMK Firmware + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + HOME, + MODS, + MODS2, + OTHER +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [HOME] = LAYOUT( + KC_P0, + KC_P7, KC_P8, KC_P9, + KC_P4, KC_P5, KC_P6, + LT(1, KC_P1), LT(2, KC_P2), LT(3, KC_P3)), + + [MODS] = LAYOUT( + KC_MUTE, + KC_MPLY, KC_NO, KC_VOLU, + KC_MPRV, KC_MNXT, KC_VOLD, + KC_TRNS, KC_NO, KC_NO), + + [MODS2] = LAYOUT( + KC_F13, + KC_F14, KC_F15, KC_F16, + KC_F19, KC_F18, KC_F17, + KC_NO, KC_TRNS, KC_NO), + + [OTHER] = LAYOUT( + RESET, + KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_TRNS), +}; |