Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

suliveevil/Capslock

 
 

Repository files navigation

ultimate macOS δΈ­ζ–‡

forked from Vonng/Capslock : Make CapsLock Great Again!

Why CapsLock

Transform Capslock into Hyper, improve your productivity tremendously!

  • Powerful: Make Capslock a great new modifier key: Hyper(✱).
  • Well-Designed: High-Freq key in hot-area. Bring lots of useful functionalities.
  • Compatible: Work well with other modifiers, appliactions, devices.
  • Light-Weight: Just a small script, carry it everywhere !
  • Design Document
  • KeyRemap Document

Platforms

Install

  1. Download Karabiner-Elements and Install

  2. Copy URL to your browser(open in safari) to import configuration script.

karabiner://karabiner/assets/complex_modifications/import?url=https://raw.githubusercontent.com/suliveevil/Capslock/master/mac/ultimate_macOS.json

or import config file from Karabiner-Elements Offical Script Gallery

https://pqrs.org/osx/karabiner/complex_modifications/#ultimate_macOS
  1. Open Karabiner, Tab "ComplexModification", Button "Add Item", and enable entries you like.

  2. Default conf file path is $HOME/.config/karabiner/assets/complex_modifications. Modify it if you like.

  3. Enable functions: [App] karabiner-elements -> [Tab] Complex Modification -> Add Item

Usage

Basic

details

✱ Hyper actually maps to βŒƒ βŒ₯ ⇧ ⌘ (all right modifiers) , It works well with additional left modifiers. And compatible with most application. Hold CapsLock to enable Hyper funcationality while press it will emit an Escape.

Origin Maps to Comment
β‡ͺ Press βŽ‹ Escape Single press to escape
β‡ͺ Hold ✱ Hyper Enable Hyper Functionality

Navigation

details
  • Hold ✱ Hyper to enable navigators
  • Hold additional ⌘ Command for selection . (just like holding ⇧shift in normal)
  • Hold additional βŒ₯ with HJKL for mouse movement
  • Hold additional ⇧ with HJKL for switching tab/app
  • Hold additional βŒƒ with HJKL for desktop management . (just like holding βŒƒctrl with arrow key)
Origin Maps to Comment
⌘0 βŒ˜β† LeftArrow cursor move to the begin of the line
⌘4($) βŒ˜β†’ RightArrow cursor move to the end of the line
H ← LeftArrow cursor left
J ↓ DownArrow cursor down
K ↑ UpArrow cursor up
L β†’ RightArrow cursor right
⌘H ⇧← LeftArrow cursor left and selection
⌘J ⇧↓ DownArrow cursor down and selection
⌘K ⇧↑ UpArrow cursor up and selection
⌘L ⇧→ RightArrow cursor right and selection
βŒ₯H ← LeftArrow βŒ₯ ←
βŒ₯J ↓ DownArrow βŒ₯ ↓
βŒ₯K ↑ UpArrow βŒ₯ ↑
βŒ₯L β†’ RightArrow βŒ₯ β†’
βŒƒH ← LeftArrow expose all
βŒƒJ ↓ DownArrow show desktops
βŒƒK ↑ UpArrow switch prev desktop
βŒƒL β†’ RightArrow switch next desktop
U β‡ž PageUp cursor page up
I β†– Home cursor to line(doc) head
O β†˜ End cursor to line(doc) end
P β‡Ÿ PageDn cursor page down
⌘U XX leave to other apps
⌘I XX leave to other apps
⌘O XX leave to other apps
⌘P XX leave to other apps
βŒ₯U XX leave to other apps
βŒ₯I XX leave to other apps
βŒ₯O XX leave to other apps
βŒ₯P XX leave to other apps
βŒƒU XX leave to other apps
βŒƒI XX leave to other apps
βŒƒO XX leave to other apps
βŒƒP XX leave to other apps

Mousekey

details
  • Emulate mouse with keyboard
  • Also can be archived by βŒ₯ with UIOP
Origin Maps to Comment
← MouseLeft mouse cursor left
↓ MouseDown mouse cursor down
↑ MouseUp mouse cursor up
β†’ MouseRight mouse cursor right
↩ MouseLeft mouse left button click
βŒ₯ ↩ MouseMiddle mouse Middle button click
⌘ ↩ MouseRight mouse right button click

Deletion

details
Origin Maps to Comment
N βŒ₯⌫ Option + ForwardDelete Delete a word ahead
M ⌫ ForwardDelete Delete a char ahead
, ⌦ Delete Delete a char after
. βŒ₯⌦ Option + Delete Delete a word after
⌘M,⌘N ⌘βŒ₯⌫ Command+Option+ForwardDelete Delete to line head

Window Control

details
Origin Maps to Comment
β‡₯ Tab ⌘β‡₯ Command+Tab Switch Window
⌘β‡₯ Command+Tab βŒ˜β‡§β‡₯ Command+Shift+Tab Switch Window Reversely
Q ⌘Q Close Window
W ⌘W Close Tab
A βŒƒβŒ₯β‡§βŒ˜A Leaves to Moom, β€»a window resize app
⌘A βŒƒβ†‘ Ctrl+UpArrow OSX Expose All
S βŒƒβ‡₯ Ctrl+Tab Switch Tab
⌘S βŒƒβ‡§β‡₯ Ctrl+Shift+Tab Swtich Tab Reversely
βŒ₯D F11 Show Desktop

Bash Control

details
  • Common bash utils: EOF, SIGINT, SIGTSTP, VIM/Tmux Prefix
Origin Maps to Comment
D βŒƒD Ctrl+D EOF
Z βŒƒZ Ctrl+Z SIGTSTP
X βŒƒR Ctrl+R IDE Run
C βŒƒC Ctrl+C SIGINT
V βŒƒV Ctrl+V Vim Prefix
B βŒƒB Ctrl+B Tmux Default Prefix

Applications

details
  • Maybe you'd like overwrite these with your own favorite apps.
Origin Maps to Comment
E Open Finder Open File Browser
⌘E Open Safari Open Web Browser
R Open iTerm2 Great terminal for osx (Run)
⌘R Open Pycharm Open IDE
T Open Visual Studio Code Text Editor: Visual Studio Code
⌘T Open Typora Text Editor: Typora , a great WYSIWYG md editor
T Open Visual Studio Code Text Editor: Visual Studio Code
Y Open Siri Siri
⌘D Open Dictionary Find words
F Open Alfred
⌘F Open Dash Find API Document
G Open GitHub Desktop GitHub Desktop
⌘G Open Chrome Google Chrome

Functional

details
  • Use hyper + 1~9 and 0 and - and = as standard functional keys(F1,…F12).
Origin Maps to Comment
βŒ₯1 BrightnessDown
βŒ₯2 BrightnessUp
βŒ₯3 ExposeAll
βŒ₯4 LaunchPad
βŒ₯5 KeyboardLightDown
βŒ₯6 KeyboardLightUp
βŒ₯7 MusicPrev
βŒ₯8 MusicPlay
βŒ₯9 MusicNext
βŒ₯0 Mute
βŒ₯- VolumeDown
βŒ₯= VolumeUp
F13 PrintScreen MusicPrev
F14 ScrollLock MusicNext
F15 Pause MusicPlay Just as it shows
Insert βŒ₯BrightnessUp Fine grained brightness up
Delete βŒ₯BrightnessDown Fine grained brightness down
Home βŒ₯KeyboardLightUp Fine grained keyboard light up
End βŒ₯KeyboardLightDown Fine grained keyboard light down
PgUp βŒ₯VolumeUp Fine grained volume up
PgDn βŒ₯VolumeDown Fine grained volume down

Shifter

details
  • A more convient shift for most case
  • Semicolon ; and Quote ' have some special treatment, makes input != and := easier
Origin Maps to Comment
1 ! Exclamation
2 @ At
3 # Sharp
4 $ Dollar
5 % Percent
6 ^ Caret
7 & Ampersand
8 * Star
9 ( Left Round Bracket
0 ) Right Round Bracket
- Minus _ Hyphen
= Equal + Plus
[ Left Bracket { Left Bracket ⇧ {[
] Right Bracket } Right Bracket ⇧ }]
; Semicolon ! Exclamation
' Single Quote = EqualSign
⌘; Semicolon ! Colon
⌘' Single Quote = EqualSign

Misc

details
Origin Maps to Comment
βŽ‹ Escape β‡ͺ CapsLock Bug: Difficult to turn capslock off after emit
~ BackQuote β‡§βŒ˜4 macOS Area Screenshot to Desktop file
⌘~ Command+BackQuote βŒƒβ‡§βŒ˜4 macOS Area Screenshot to Clipboard
⌫ Backspace ⌘⌫ macOS Delete File
/ Slash ⌘/ Command+Slash Comment/Uncomment in many IDE
\ Backslash ⌘/ Command+Slash Comment/Uncomment in many IDE
␒ Spacebar βŒƒβ’ Ctrl+Spacebar Switch Input Source

Symbol Reference

Modifiers: ο£Ώ Mac
Sym Key
✱ Hyper
βŒƒ Control
βŒ₯ Option
⇧ Shift
⌘ Command
Modifiers: ⊞ Windows
Sym Key
✱ Hyper
βŒƒ Control
⊞ Windows
⇧ Shift
βŽ‡ Alter
Normal Keys
GLYPH NAME
ο£Ώ Apple
⌘ Command, Cmd, Clover, (formerly) Apple
βŒƒ Control, Ctl, Ctrl
βŒ₯ Option, Opt, (Windows) Alt
βŽ‡ Alt
⇧ Shift
β‡ͺ Caps lock
⏏ Eject
↩, ↡, ⏎ Return, Carriage Return
⌀ Enter
⌫ Delete, Backspace
⌦ Forward Delete
βŽ‹ Escape, Esc
β†’ Right arrow
← Left arrow
↑ Up arrow
↓ Down arrow
β‡ž Page Up, PgUp
β‡Ÿ Page Down, PgDn
β†– Home
β†˜ End
⌧ Clear
β‡₯ Tab, Tab Right, Horizontal Tab
⇀ Shift Tab, Tab Left, Back-tab
␒ Space, Blank
␣ Space, Blank
β˜βƒ Power
β‡­ Num lock
?⃝ Help
ο ƒ Context menu

About

Author:suliveevil (suliveevil@outlook.com)

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 47.3%
  • JavaScript 42.2%
  • CSS 4.3%
  • HTML 1.8%
  • Makefile 1.3%
  • AutoHotkey 1.3%
  • Other 1.8%