Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add userspace files for vosechu #4912

Merged
merged 3 commits into from
Jan 26, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions users/vosechu/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#pragma once

// this makes it possible to do rolling combos (zx) with keys that
// convert to other keys on hold (z becomes ctrl when you hold it,
// and when this option isn't enabled, z rapidly followed by x
// actually sends Ctrl-x. That's bad.)
#define IGNORE_MOD_TAP_INTERRUPT
#undef PERMISSIVE_HOLD
//#define TAPPING_FORCE_HOLD
//#define RETRO_TAPPING

#ifndef TAPPING_TOGGLE
#define TAPPING_TOGGLE 2
#endif

#ifdef TAPPING_TERM
#undef TAPPING_TERM
#endif
#define TAPPING_TERM 150

// Disable action_get_macro and fn_actions, since we don't use these
// and it saves on space in the firmware.
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION
14 changes: 14 additions & 0 deletions users/vosechu/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright 2018 Chuck Lauer Vose [email protected] @vosechu

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/>.
1 change: 1 addition & 0 deletions users/vosechu/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SRC += vosechu.c
25 changes: 25 additions & 0 deletions users/vosechu/vosechu.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "vosechu.h"

// void my_custom_function(void) {

// }

// [DV] = { /* ================================================== DVORAK ============================================================ */
// { KC_1, KC_A, KC_B, KC_C, KC_D, KC_E, _______ , KC_G, KC_H, KC_J, KC_K, KC_L, KC_M },
// { KC_2, KC_A, KC_B, KC_C, KC_D, KC_E, _______ , KC_G, KC_H, KC_J, KC_K, KC_L, KC_M },
// { KC_3, KC_A, KC_B, KC_C, KC_D, KC_E, _______ , KC_G, KC_H, KC_J, KC_K, KC_L, KC_M },
// { KC_4, KC_A, KC_B, KC_C, KC_D, KC_E, KC_F , KC_G, KC_H, KC_J, KC_K, KC_L, KC_M },
// { KC_5, KC_A, KC_B, KC_C, KC_D, KC_E, KC_F , KC_G, KC_H, KC_J, KC_K, KC_L, KC_M }
// },

// bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// if (record->event.pressed) {
// // These also need to be defined in the header file
// switch(keycode) {
// case PAWFIVE:
// SEND_STRING(":pawfive:");
// return false;
// }
// }
// return true;
// };
52 changes: 52 additions & 0 deletions users/vosechu/vosechu.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#pragma once

#include "quantum.h"

// Each layer gets a name for readability, which is then used in the keymap matrix below.
enum userspace_custom_layers {
DV = 0,
QW,
GAM1,
RSE,
LWR,
LFT,
MOUSE
};

enum userspace_custom_keycodes {
PAWFIVE = SAFE_RANGE,
MOUKEY,
MS_BTN1,
MS_BTN2,
MS_BTN3
};

// Fillers to make layering more clear
#define _______ KC_TRNS
#define _LAYER_ KC_TRNS
#define XXXXXXX KC_NO

// Adding macros to make the keymaps below much easier to read.
#define CTLESC CTL_T(KC_ESC)
#define CTLGRV CTL_T(KC_GRV)
#define ALTTAB ALT_T(KC_TAB)
#define SFTSPC SFT_T(KC_SPC)

// Macro keys for some apps
#define SLACKUP LALT(LSFT(KC_UP))
#define SLACKDN LALT(LSFT(KC_DOWN))
#define TABLEFT LGUI(LSFT(KC_LBRC))
#define TABRIGT LGUI(LSFT(KC_RBRC))
#define HISTBAK LGUI(KC_LBRC)
#define HISTFWD LGUI(KC_RBRC)
#define SCRLEFT HYPR(KC_LEFT)
#define SCRRIGT HYPR(KC_RGHT)
#define SCRFULL HYPR(KC_F)

// Extended alpha key layers for Dvorak
#define LWR_U LT(LWR, KC_U)
#define RSE_H LT(RSE, KC_H)
#define LWR_F LT(LWR, KC_F)
#define RSE_J LT(RSE, KC_J)
#define LFT_BK LT(LFT, KC_BSPC)
#define LFT_ENT LT(LFT, KC_ENT)