Capman turns your Capslock key into a Modifier Key and allows you to control your Apps and Windows using different modes, such as Control Mode, Visual Mode and Window Mode.
- Clone this repo
- Install AutoHotkey (AHK)
- Start
capman.ahkvia command. 'C:/Program Files/Autohotkey/v2/AutoHotkey64_UIA.exe' 'capman/capman.ahk'(replace the paths with your own paths)
-
On MacOS: install Karabiner-Elements
-
Start 'Karabiner-Elements', give it all required permissions and open the 'Complex Modifications' tab
-
Download capman-v0.2.1.json and store it as
~/.config/karabiner/assets/complex_modifications/capman-v0.2.1.jsoncurl -o ~/.config/karabiner/assets/complex_modifications/capman-v0.2.1.json \ https://github.com/toscm/capman/releases/download/v0.2.1/capman-v0.2.1.json -
In 'Karabiner-Elements', click 'Add predefined rule' and enable 'Capman'
As soon as you start Capman, the native functionality of your Capslock key is
disabled and the key behaves like an additional modifier. Holding CapsLock
temporarily enables the same bindings as Control Mode, so you
can navigate without toggling a mode first.
To enable Control Mode, press CapsLock once without any other keys. Your
current mode is indicated by a status line at the top right of your primary
monitor (bottom right on MacOS). By default, the status bar is only visible in
special modes, such as Control Mode, Visual
Mode or Window Mode. Control Mode enables the
following bindings:
- Text Movement:
i,j,k,lMove cursorw,bJump by worde,hGo to End/Start (Home) of Linet,oGo to Top/Bottom of Document[,]Page Up/Down,,.Ctrl Page Up/Down
- Editing:
p,x,yPaste/Cut/Copy (Yank)d,sDelete/Backspaceu,rUndo/Redo
- Window Movement:
- Misc:
cToggle CapsLock/Display available hotkeysaExit Control ModevEnter Visual ModeqEscapeCapsLockToggle Control Mode
- Reserved for Future Use:
zMaybe zoomgMaybe go to anything
For selecting and editing text more efficiently, Capman offers a Visual Mode
inspired by Vim's visual mode. To enter Visual Mode, press CapsLock & v or
switch from Control Mode by pressing v. In visual mode, the following
keybindings are available:
- Selection movement:
i,j,k,lSelect by characterw,bSelect word forward/backe,hSelect to End/Home
- Editing actions auto-exit:
s,d,x,yBackspace, delete, cut, yankEnter,SpaceInsert newline/space
- Mode exits:
CapsLock,a,o,vExit Visual ModeqSend Escape
- Enter/Exit Window Mode:
CapsLock + SpaceEnter Window ModeCapsLock,a,SpaceExit Window Mode
- Move Windows:
i,j,k,lTile Up/Left/Down/Right3
- Select Windows:
nFocus next window1
- Resize Windows:
Enter,fMaximize active window3mMinimize active window
- Close Windows:
qQuit current appwClose current tab
Want to add a feature or port a binding? See CONTRIBUTING.md for setup instructions, repository layout, and submission guidelines.
Footnotes
-
Next WindowsendsAlt+Tab, which is unbound by default on MacOS. To enableAltTabfunctionality on MacOS as well, please install. alt-tab-macos. ↩ ↩2 -
CapsLock+m(Next Pane) andCapsLock+f(Find Anything) send the default shortcuts for triggering Homerow. I.e., they will only work, if you have Homerow installed and running. ↩ ↩2 -
On macOS, window tiling and maximizing is achieved by sending the default Rectangle shortcuts. I.e., these bindings will only work, if you have Rectangle installed and running. ↩ ↩2
