summaryrefslogtreecommitdiffstats
path: root/keyboards/h0oni
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/h0oni')
-rw-r--r--keyboards/h0oni/deskpad/keymaps/default/keymap.c189
-rw-r--r--keyboards/h0oni/deskpad/keymaps/via/keymap.c189
-rw-r--r--keyboards/h0oni/hotduck/config.h74
-rw-r--r--keyboards/h0oni/hotduck/keymaps/default/keymap.c52
-rw-r--r--keyboards/h0oni/hotduck/keymaps/via/keymap.c52
5 files changed, 556 insertions, 0 deletions
diff --git a/keyboards/h0oni/deskpad/keymaps/default/keymap.c b/keyboards/h0oni/deskpad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..54172f2986
--- /dev/null
+++ b/keyboards/h0oni/deskpad/keymaps/default/keymap.c
@@ -0,0 +1,189 @@
+/* Copyright 2021 Hydrogen BD <support@hgenbd.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+typedef enum {
+ TD_NONE,
+ TD_UNKNOWN,
+ TD_SINGLE_TAP,
+ TD_SINGLE_HOLD,
+ TD_DOUBLE_TAP,
+ TD_DOUBLE_HOLD,
+ TD_DOUBLE_SINGLE_TAP, // Send two single taps
+} td_state_t;
+
+typedef struct {
+ bool is_press_action;
+ td_state_t state;
+} td_tap_t;
+
+enum custom_keycodes {
+ TD_CUT_REDO,
+ TD_PLAY_PAUSE_MUTE,
+ TD_MNXT_RIGHT,
+ TD_MPRV_LEFT,
+ TD_SEARCH_REFRESH,
+ QUAD_LAYER_SWITCH,
+ QUAD_CVXA,
+ YOUTUBE = SAFE_RANGE,
+ FACEBOOK,
+ DISCORD,
+ VALORANT,
+ VSCODE,
+};
+
+td_state_t cur_dance(qk_tap_dance_state_t *state);
+
+/* Quad layer switching */
+void layer_finished(qk_tap_dance_state_t *state, void *user_data);
+void layer_reset(qk_tap_dance_state_t *state, void *user_data);
+
+/* Copy, paste, select all, cut */
+void cvxa_finished(qk_tap_dance_state_t *state, void *user_data);
+void cvxa_reset(qk_tap_dance_state_t *state, void *user_data);
+
+static td_tap_t layerTap_state = {
+ .is_press_action = true,
+ .state = TD_NONE
+};
+
+static td_tap_t cvxa_state = {
+ .is_press_action = true,
+ .state = TD_NONE
+};
+
+// Determine the current tap dance state
+td_state_t cur_dance(qk_tap_dance_state_t *state) {
+ if (state->count == 1) {
+ if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
+ // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
+ else return TD_SINGLE_HOLD;
+ } else if (state->count == 2) {
+ if (state->interrupted) return TD_DOUBLE_SINGLE_TAP;
+ else if (state->pressed) return TD_DOUBLE_HOLD;
+ else return TD_DOUBLE_TAP;
+ } else return TD_UNKNOWN;
+}
+
+void layer_finished(qk_tap_dance_state_t *state, void *user_data) {
+ layerTap_state.state = cur_dance(state);
+ layer_off(get_highest_layer(layer_state));
+ switch (layerTap_state.state) {
+ case TD_SINGLE_TAP: layer_on(0); break;
+ case TD_SINGLE_HOLD: layer_on(1); break;
+ case TD_DOUBLE_TAP: layer_on(2); break;
+ case TD_DOUBLE_HOLD: layer_on(3); break;
+ default: layer_on(0);
+ }
+}
+
+void layer_reset(qk_tap_dance_state_t *state, void *user_data) {
+ layerTap_state.state = TD_NONE;
+}
+
+void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) {
+ cvxa_state.state = cur_dance(state);
+ register_mods(MOD_BIT(KC_LCTL));
+ switch (cvxa_state.state) {
+ case TD_SINGLE_TAP: tap_code(KC_V); break;
+ case TD_SINGLE_HOLD: tap_code(KC_A); break;
+ case TD_DOUBLE_TAP: tap_code(KC_C); break;
+ case TD_DOUBLE_HOLD: tap_code(KC_X); break;
+ default: tap_code(KC_V);
+ }
+ unregister_mods(MOD_BIT(KC_LCTL));
+}
+
+void cvxa_reset(qk_tap_dance_state_t *state, void *user_data) {
+ cvxa_state.state = TD_NONE;
+}
+
+// Tap Dance definitions
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))),
+ [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE),
+ [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT),
+ [TD_MPRV_LEFT] = ACTION_TAP_DANCE_DOUBLE(KC_MPRV, KC_LEFT),
+ [TD_SEARCH_REFRESH] = ACTION_TAP_DANCE_DOUBLE(KC_WREF, KC_WSCH),
+ [QUAD_LAYER_SWITCH] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, layer_finished, layer_reset),
+ [QUAD_CVXA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, cvxa_finished, cvxa_reset)
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch(keycode) {
+ case YOUTUBE:
+ if (record->event.pressed) {
+ tap_code16(C(KC_L));
+ SEND_STRING("https://www.youtube.com/");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case FACEBOOK:
+ if (record->event.pressed) {
+ tap_code16(C(KC_L));
+ SEND_STRING("https://www.facebook.com/");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case VALORANT:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("valorant");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case DISCORD:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("discord");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case VSCODE:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("vscode");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ }
+ return true;
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT_all(
+ TD(TD_CUT_REDO), TD(TD_MPRV_LEFT), TD(TD_PLAY_PAUSE_MUTE), TD(TD_MNXT_RIGHT), TD(QUAD_CVXA), TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [1] = LAYOUT_all(
+ YOUTUBE, KC_WBAK, TD(TD_SEARCH_REFRESH), KC_WFWD, FACEBOOK, TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [2] = LAYOUT_all(
+ A(KC_F4), SGUI(KC_S), KC_MYCM, LCA(KC_DEL), KC_CALC, TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [3] = LAYOUT_all(
+ C(KC_SLSH), VALORANT, VSCODE, DISCORD, LSA(KC_A), TD(QUAD_LAYER_SWITCH)
+ ),
+}; \ No newline at end of file
diff --git a/keyboards/h0oni/deskpad/keymaps/via/keymap.c b/keyboards/h0oni/deskpad/keymaps/via/keymap.c
new file mode 100644
index 0000000000..54172f2986
--- /dev/null
+++ b/keyboards/h0oni/deskpad/keymaps/via/keymap.c
@@ -0,0 +1,189 @@
+/* Copyright 2021 Hydrogen BD <support@hgenbd.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+typedef enum {
+ TD_NONE,
+ TD_UNKNOWN,
+ TD_SINGLE_TAP,
+ TD_SINGLE_HOLD,
+ TD_DOUBLE_TAP,
+ TD_DOUBLE_HOLD,
+ TD_DOUBLE_SINGLE_TAP, // Send two single taps
+} td_state_t;
+
+typedef struct {
+ bool is_press_action;
+ td_state_t state;
+} td_tap_t;
+
+enum custom_keycodes {
+ TD_CUT_REDO,
+ TD_PLAY_PAUSE_MUTE,
+ TD_MNXT_RIGHT,
+ TD_MPRV_LEFT,
+ TD_SEARCH_REFRESH,
+ QUAD_LAYER_SWITCH,
+ QUAD_CVXA,
+ YOUTUBE = SAFE_RANGE,
+ FACEBOOK,
+ DISCORD,
+ VALORANT,
+ VSCODE,
+};
+
+td_state_t cur_dance(qk_tap_dance_state_t *state);
+
+/* Quad layer switching */
+void layer_finished(qk_tap_dance_state_t *state, void *user_data);
+void layer_reset(qk_tap_dance_state_t *state, void *user_data);
+
+/* Copy, paste, select all, cut */
+void cvxa_finished(qk_tap_dance_state_t *state, void *user_data);
+void cvxa_reset(qk_tap_dance_state_t *state, void *user_data);
+
+static td_tap_t layerTap_state = {
+ .is_press_action = true,
+ .state = TD_NONE
+};
+
+static td_tap_t cvxa_state = {
+ .is_press_action = true,
+ .state = TD_NONE
+};
+
+// Determine the current tap dance state
+td_state_t cur_dance(qk_tap_dance_state_t *state) {
+ if (state->count == 1) {
+ if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
+ // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
+ else return TD_SINGLE_HOLD;
+ } else if (state->count == 2) {
+ if (state->interrupted) return TD_DOUBLE_SINGLE_TAP;
+ else if (state->pressed) return TD_DOUBLE_HOLD;
+ else return TD_DOUBLE_TAP;
+ } else return TD_UNKNOWN;
+}
+
+void layer_finished(qk_tap_dance_state_t *state, void *user_data) {
+ layerTap_state.state = cur_dance(state);
+ layer_off(get_highest_layer(layer_state));
+ switch (layerTap_state.state) {
+ case TD_SINGLE_TAP: layer_on(0); break;
+ case TD_SINGLE_HOLD: layer_on(1); break;
+ case TD_DOUBLE_TAP: layer_on(2); break;
+ case TD_DOUBLE_HOLD: layer_on(3); break;
+ default: layer_on(0);
+ }
+}
+
+void layer_reset(qk_tap_dance_state_t *state, void *user_data) {
+ layerTap_state.state = TD_NONE;
+}
+
+void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) {
+ cvxa_state.state = cur_dance(state);
+ register_mods(MOD_BIT(KC_LCTL));
+ switch (cvxa_state.state) {
+ case TD_SINGLE_TAP: tap_code(KC_V); break;
+ case TD_SINGLE_HOLD: tap_code(KC_A); break;
+ case TD_DOUBLE_TAP: tap_code(KC_C); break;
+ case TD_DOUBLE_HOLD: tap_code(KC_X); break;
+ default: tap_code(KC_V);
+ }
+ unregister_mods(MOD_BIT(KC_LCTL));
+}
+
+void cvxa_reset(qk_tap_dance_state_t *state, void *user_data) {
+ cvxa_state.state = TD_NONE;
+}
+
+// Tap Dance definitions
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))),
+ [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE),
+ [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT),
+ [TD_MPRV_LEFT] = ACTION_TAP_DANCE_DOUBLE(KC_MPRV, KC_LEFT),
+ [TD_SEARCH_REFRESH] = ACTION_TAP_DANCE_DOUBLE(KC_WREF, KC_WSCH),
+ [QUAD_LAYER_SWITCH] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, layer_finished, layer_reset),
+ [QUAD_CVXA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, cvxa_finished, cvxa_reset)
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch(keycode) {
+ case YOUTUBE:
+ if (record->event.pressed) {
+ tap_code16(C(KC_L));
+ SEND_STRING("https://www.youtube.com/");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case FACEBOOK:
+ if (record->event.pressed) {
+ tap_code16(C(KC_L));
+ SEND_STRING("https://www.facebook.com/");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case VALORANT:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("valorant");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case DISCORD:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("discord");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ case VSCODE:
+ if (record->event.pressed) {
+ tap_code16(G(KC_S));
+ SEND_STRING("vscode");
+ } else {
+ tap_code(KC_ENT);
+ }
+ break;
+ }
+ return true;
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT_all(
+ TD(TD_CUT_REDO), TD(TD_MPRV_LEFT), TD(TD_PLAY_PAUSE_MUTE), TD(TD_MNXT_RIGHT), TD(QUAD_CVXA), TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [1] = LAYOUT_all(
+ YOUTUBE, KC_WBAK, TD(TD_SEARCH_REFRESH), KC_WFWD, FACEBOOK, TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [2] = LAYOUT_all(
+ A(KC_F4), SGUI(KC_S), KC_MYCM, LCA(KC_DEL), KC_CALC, TD(QUAD_LAYER_SWITCH)
+ ),
+
+ [3] = LAYOUT_all(
+ C(KC_SLSH), VALORANT, VSCODE, DISCORD, LSA(KC_A), TD(QUAD_LAYER_SWITCH)
+ ),
+}; \ No newline at end of file
diff --git a/keyboards/h0oni/hotduck/config.h b/keyboards/h0oni/hotduck/config.h
new file mode 100644
index 0000000000..14eb2704e9
--- /dev/null
+++ b/keyboards/h0oni/hotduck/config.h
@@ -0,0 +1,74 @@
+/* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "config_common.h"
+
+/* key matrix size */
+#define MATRIX_ROWS 7
+#define MATRIX_COLS 10
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+*/
+#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7, F6, F5 }
+#define MATRIX_COL_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2, D3}
+
+// #define LED_CAPS_LOCK_PIN B2
+// #define LED_PIN_ON_STATE 0
+
+// /* Backlight Setup */
+// #define BACKLIGHT_PIN B5
+// #define BACKLIGHT_LEVELS 6
+// //#define BACKLIGHT_BREATHING
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* RGB Underglow
+ * F4 PIN for pre-soldered WS2812 LEDs
+ */
+#define RGB_DI_PIN F4
+#define RGBLIGHT_EFFECT_BREATHING
+#define RGBLIGHT_EFFECT_RAINBOW_MOOD
+#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+#define RGBLIGHT_EFFECT_SNAKE
+#define RGBLIGHT_EFFECT_KNIGHT
+#define RGBLIGHT_EFFECT_CHRISTMAS
+#define RGBLIGHT_EFFECT_STATIC_GRADIENT
+#define RGBLIGHT_EFFECT_RGB_TEST
+#define RGBLIGHT_EFFECT_ALTERNATING
+#define RGBLIGHT_EFFECT_TWINKLE
+#define RGBLED_NUM 20
+#define RGBLIGHT_HUE_STEP 10
+#define RGBLIGHT_SAT_STEP 15
+#define RGBLIGHT_VAL_STEP 15
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/h0oni/hotduck/keymaps/default/keymap.c b/keyboards/h0oni/hotduck/keymaps/default/keymap.c
new file mode 100644
index 0000000000..503f0bc74c
--- /dev/null
+++ b/keyboards/h0oni/hotduck/keymaps/default/keymap.c
@@ -0,0 +1,52 @@
+/* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT_all(
+ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, MO(1), KC_HOME, KC_PGUP,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_SLSH, KC_DEL, KC_END, KC_PGDN,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K,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RNS, KC_TRNS,KC_TRNS,KC_TRNS,
+ KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS
+ ),
+
+ [3] = LAYOUT_all(
+ KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,MO(4),
+ KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,
+ KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS
+ ),
+};
diff --git a/keyboards/h0oni/hotduck/keymaps/via/keymap.c b/keyboards/h0oni/hotduck/keymaps/via/keymap.c
new file mode 100644
index 0000000000..503f0bc74c
--- /dev/null
+++ b/keyboards/h0oni/hotduck/keymaps/via/keymap.c
@@ -0,0 +1,52 @@
+/* Copyright 2021 Md Mashur Shalehin, aka h0oni <mashursakib1920@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [0] = LAYOUT_all(
+ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, MO(1), KC_HOME, KC_PGUP,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_SLSH, KC_DEL, KC_END, KC_PGDN,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_BSLS, KC_RSFT, KC_UP,
+ KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
+ ),
+
+ [1] = LAYOUT_all(
+ KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, MO(1), TG(2), KC_TRNS,
+ KC_TRNS, KC_TRNS,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