[Keymap] Add userspace and personal keymaps (#7093)
* Add Planck keymap and custom keycodes to userspace * Add Preonic keymap and extract common ortho layers and keycodes * Add Leaf60 WKL keymap * Add M60-A keymap * Add Levinson keymap * Fix links in personal readmes * Use flash target * Remove duplicate definition Co-Authored-By: fauxpark <fauxpark@gmail.com> * Remove superfluous line endings * Planck and preonic encoder should have the same behavior * Use higher level API Co-Authored-By: fauxpark <fauxpark@gmail.com> * Use layouts to reduce planck/levinson duplication * Update flash instructions for levinson
This commit is contained in:
		
							parent
							
								
									e214f2826e
								
							
						
					
					
						commit
						d99f6e95e1
					
				
					 19 changed files with 1045 additions and 0 deletions
				
			
		
							
								
								
									
										0
									
								
								users/mguterl/config.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								users/mguterl/config.h
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										1
									
								
								users/mguterl/mguterl.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								users/mguterl/mguterl.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
#include "mguterl.h"
 | 
			
		||||
							
								
								
									
										67
									
								
								users/mguterl/mguterl.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								users/mguterl/mguterl.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,67 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
#include "quantum.h"
 | 
			
		||||
 | 
			
		||||
#define LOWER MO(_LOWER)
 | 
			
		||||
#define RAISE MO(_RAISE)
 | 
			
		||||
 | 
			
		||||
/* Tap for Tab, hold for Hyper (Super+Ctrl+Shift+Alt) */
 | 
			
		||||
#define HPR_TAB ALL_T(KC_TAB)
 | 
			
		||||
 | 
			
		||||
/* Shift when held, Enter when tapped */
 | 
			
		||||
#define SFT_ENT MT(MOD_RSFT, KC_ENT)
 | 
			
		||||
 | 
			
		||||
/* Activate util layer while holding space */
 | 
			
		||||
#define SPC_UTL LT(_UTIL, KC_SPC)
 | 
			
		||||
 | 
			
		||||
/* Control when held, Escape when tapped */
 | 
			
		||||
#define ESC_CTL MT(MOD_LCTL, KC_ESC)
 | 
			
		||||
 | 
			
		||||
/* Toggle gaming layer */
 | 
			
		||||
#define TG_GAME TG(_GAMING)
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Make it easy to navigate back and forward in Chrome.
 | 
			
		||||
 */
 | 
			
		||||
#define GO_BACK LGUI(KC_LBRC)
 | 
			
		||||
#define GO_FWD  LGUI(KC_RBRC)
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * When using a 40% layout, these keycodes make it easy to change tabs in apps
 | 
			
		||||
 * like Chrome and VSCode.
 | 
			
		||||
 */
 | 
			
		||||
#define GUI_1 LGUI(KC_1)
 | 
			
		||||
#define GUI_2 LGUI(KC_2)
 | 
			
		||||
#define GUI_3 LGUI(KC_3)
 | 
			
		||||
#define GUI_4 LGUI(KC_4)
 | 
			
		||||
#define GUI_5 LGUI(KC_5)
 | 
			
		||||
#define GUI_6 LGUI(KC_6)
 | 
			
		||||
#define GUI_7 LGUI(KC_7)
 | 
			
		||||
#define GUI_8 LGUI(KC_8)
 | 
			
		||||
#define GUI_9 LGUI(KC_9)
 | 
			
		||||
#define GUI_0 LGUI(KC_0)
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Common layers and keycodes that are shared between Planck and Preonic
 | 
			
		||||
 */
 | 
			
		||||
enum ortho_layers {
 | 
			
		||||
  _QWERTY,
 | 
			
		||||
  _GAMING,
 | 
			
		||||
  _UTIL,
 | 
			
		||||
  _COLEMAK,
 | 
			
		||||
  _DVORAK,
 | 
			
		||||
  _LOWER,
 | 
			
		||||
  _RAISE,
 | 
			
		||||
  _PLOVER,
 | 
			
		||||
  _ADJUST
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
enum ortho_keycodes {
 | 
			
		||||
  QWERTY = SAFE_RANGE,
 | 
			
		||||
  GAMING,
 | 
			
		||||
  UTIL,
 | 
			
		||||
  COLEMAK,
 | 
			
		||||
  DVORAK,
 | 
			
		||||
  PLOVER,
 | 
			
		||||
  BACKLIT,
 | 
			
		||||
  EXT_PLV
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										14
									
								
								users/mguterl/readme.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								users/mguterl/readme.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
Copyright 2019 Michael Guterl michael@diminishing.org @mguterl
 | 
			
		||||
 | 
			
		||||
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
									
								
								users/mguterl/rules.mk
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								users/mguterl/rules.mk
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
SRC += mguterl.c
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue