Code Monkey home page Code Monkey logo

ke_complex-rules's Introduction

ke_complex-rules

This repo includes custom complex modification rules for karabiner-elements to customize key strokes.

The CapsLock key is modified to be used as a virtual modifier and in order to use the virtual modifier, the mandatory rules MUST be enabled.

The following keys are used as virtual modifiers.

  • CapsLock
  • Tab

The following modes can be enabled by hitting extra dedicated keys while CapsLock is pressed.

  • Launcher mode : Enter
  • Window control mode : Right command
  • Mouse key mode : Right shift

Import rules

The detailed instructions can be found in karabiner-elements.

In order to import the rules, fill <Rule URL> and open the link in a web browser.

karabiner://karabiner/assets/complex_modifications/import?url=<Rule URL>

Or

The ruleset files can directly be copied under

$HOME/.config/karabiner/assets/complex_modifications/

Rule URLs can be copied from the following list.

URL Description
CustomCapslock_Base Ruleset for basic custom capslock
CustomCapslock_iTerm2 Ruleset for iTerms2
CustomCapslock_VSCode Ruleset for VSCode
CustomCapslock_TraslateTab Ruleset for Translate Tab
CustomCapslock_IntelliJ Ruleset for IntelliJ
CustomCapslock_LauncherMode Ruleset to launch applications
CustomCapslock_WindowCtrlMode Ruleset to control activated window
CustomCapslock_MouseKeyMode Ruleset to use mouse using keyboard
CustomTab_Base Ruleset using tab as a modifier

CustomCapslock Basic

The following keys are modified while the Capslock key is being pressed.

e.g. CAPSLOCK(pressed) + i -> Arrow Up

Virtual Modifier

FROM TO
CapsLock Virtual Modifier
5 CapsLock

Diamond cursor

FROM TO
i Arrow up
j Arrow left
k Arrow down
l Arrow right

Home/End

FROM TO
h Home
semicolon(;) End

Delete keys

FROM TO
u Delete
o Delete foward

Page Up/Down

FROM TO
p Page up
quote(') Page down

Tab Mover

FROM TO
Open bracket([) Move left tab (CMD+SHIFT+[)
Close bracket(]) Move right tab (CMD+SHIFT+])

Windowslike redo

FROM TO
y Redo (CMD+SHIFT+z)

Enter

FROM TO
Space Enter

Escape

FROM TO
e Escape

Replace Command key

FROM TO
q CMD + q
CMD + w CMD + SHIFT + w
w CMD + w
r CMD + r
CMD + t CMD + SHIFT + t
t CMD + t
a CMD + a
s CMD + s
f CMD + f
z CMD + z
x CMD + x
c CMD + c
v CMD + v
0 CMD + 0
hypen(-) CMD + -
equal(=) CMD + =

Extra

FROM TO
9 Next window
g Select a word
Tab SHIFT+Tab
d Open Translated Tab
Right CMD(without capslock) Switch Input language
Right Option(without capslock) fn key

VSCode

The following bindings are only enabled in VSCode application.

FROM TO
b Go Back (CTRL + hypen)
n Go Foward (CTRL + SHIFT + hypen)
m Go to Definition (f12)
CMD + m Go to References (SHIFT + f12)
OPTION + m Go to Implementation (CMD + f12)
comma(,) Next Problem (f8)
period(.) Expand Selection
CMD + period Shrink Selection
Slash(/) Toggle line comment

iTerm

The following bindings are only enabled in iTerm application.

FROM TO
r CTRL + r

Translate Tab

The following bindings are only enabled in Translate Tab application.

FROM TO
s Swap Language

IntelliJ CE

The following bindings are only enabled in VSCode application.

FROM TO
b Go Back (CMD + [)
n Go Foward (CMD + ])
m Declaration or Usages (CMD + b)
CMD + m Implementations (CMD + OPTION + b)
OPTION + m Type Declaration (CMD + SHIFT + b)
comma(,) Next Problem (f2)
period(.) Expand Selection
CMD + period Shrink Selection
Slash(/) Toggle line comment

Launcher Mode

The launcher mode can be initiated by striking enter while the capslock key is being pressed.

e.g. CAPSLOCK(pressed) + ENTER(down/up) + c -> open Chrome

FROM Application
c Chrome
d Dock (CTRL + f3)
e Spark
f Forklift
i Safari
j IntelliJ CE
k KakaoTalk
m Menu (CTRL + f2)
p Presto
s Slack
t iTerm
v VSCode
w WhatsApp

Window Control Mode

This Window Control Mode requires a tool called Better Touch Tool. And it is desired to be configured to work properly.

The mode can be initiated by striking right command key while the capslock key is being pressed.

e.g. CAPSLOCK(pressed) + R_COMMAND(down/up) + m -> maximize window

Mission control

FROM TO
i Mission control
j Move left a sapce
k Application Window
l Move right a space
d Show desktop

Switch desktop

FROM TO
1 Move to Desktop 1
2 Move to Desktop 2
3 Move to Desktop 3
4 Move to Desktop 4

Move activated window

FROM TO
CMD + j Move activated window to a left space
CMD + l Move activated window to a right space
n Move activated window to a next monitor

Window snapping

FROM TO
h Resize window to left Half
semicolon(;) Resize window to right half
t Resize window to top half
b Resize window to bottom half
u Resizee window to left two thirds
o Resize window to right two thirds
m Resize window to max
f Resize window to middle
r Revert window size

Mouse Key Mode

The Mouse Key Mode can be initiated by striking right shift key while the capslock key is being pressed.

Move Cursor

FROM TO
i Move cursor up
j Move cursor left
k Move cursor down
l Move cursor right

Scroll

FROM TO
u Scroll left
o Scroll right
p Scroll up
quote(') Scroll down

Click

FROM TO
v Left click
b CMD + Left click
n Right click

Speed control

The speed will change while pressing the following keys.

FROM TO
s Slower cursor speed
d Faster cursor speed
f Even Faster cursor speed

Prev/Next page

FROM TO
h Prev Page
semicolon(;) Next Page

Custom Tab Basic

The tab key is pressed solo, it's used as the tab. But it's going to be used as a virtual key when it's pressed with the following keys.

e.g. tab(alone) -> tab, tab + q -> previous application

Switch application

FROM TO
q Prev application
w Next application

Number pad

FROM TO
o 6
i 5
u 4
l 3
k 2
j 1
m 0

ke_complex-rules's People

Contributors

seungbemi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.