CapsLock enhancement + komorebi window management + mouse control + vim-like editing.
AHK v1. Run: .\AutoHotkey\AutoHotkeyU64.exe CapsLockX.ahk
Trigger
Layer
CapsLock hold
Window + Mouse (no toggle needed)
CapsLock+Space
Toggle full mode (mouse + window, no holding required)
CapsLock tap
Exit full mode / Send Esc
Space hold
Text editing + Reload
Esc
Exit full mode / toggle CapsLock indicator
CapsLock - Window + Mouse
Two ways to activate:
Toggle ON (CapsLock+Space): All keys below work freely without holding CapsLock. Press CapsLock to exit.
Hold CapsLock : Quick access, release CapsLock to exit.
Key
Action
W/A/S/D
Mouse move (accelerated)
Shift+WASD
Slow/precise move
Q/E
Left/right click (hold to drag)
R/F
Scroll up/down (accelerated)
Key
Action
H/J/K/L
Focus window left/down/up/right
Shift+H/J/K/L
Move window
Key
Action
1~9
Switch workspace
Shift+1~9
Move window to workspace
Key
Action
F1/F2
Focus monitor 0/1
Shift+F1/F2
Move window to monitor 0/1
Key
Action
Z
Close window
Shift+Z
Kill process
T
Toggle float
G
Toggle monocle
M
Toggle maximize
Shift+M
Minimize
P
Promote
Shift+P
Toggle pause
C
Toggle Chrome visibility
Key
Action
=/-
Resize horizontal
Shift+=/-
Resize vertical
Shift+Arrows
Resize edge
Key
Action
,/.//
Vertical-stack / bsp / ultrawide
Shift+,/./
Right-main / grid / horizontal
PgUp/PgDn
Cycle layout
Shift+X/Y
Flip layout
Key
Action
;/'
Cycle stack
\
Stack / Unstack (with Shift)
[/]
Cycle focus
Shift+[/]
Cycle move
Key
Action
H/J/K/L
Arrow keys (Left/Down/Up/Right)
W/B
Next/prev word (Ctrl+Right/Left)
Y/O
PgUp / PgDn
Shift+H
Home
Shift+L
End
X
Delete (forward)
Shift+X
Delete entire line
After pressing V (visual) or D (delete) while Space is held:
Motion
Visual (select)
Delete
H
Select left 1 char
Backspace
L
Select right 1 char
Delete
Shift+H
Select to line start
Delete to line start
Shift+L
Select to line end
Delete to line end
J / K
Select line down/up
-
W
Select next word
Delete next word
B
Select prev word
Delete prev word
0
Select to line start
Delete to line start
Shift+4 ($)
Select to line end
Delete to line end
V (again)
Select entire line
-
D (again)
-
Delete entire line
Key
Action
R
Restart komorebi
Shift+R
Restart komorebi + yasb
Ctrl+Shift+R
Restart komorebi + yasb + explorer
Edit Modules\mouse.ahk:
g_mouseSpeed (default 1.0) - mouse cursor speed
g_scrollSpeed (default 1.0) - scroll wheel speed
Key
Action
Ctrl+Shift+Win+Alt+C
WeChat toggle
Ctrl+Shift+Win+Alt+Q
QQ toggle
Ctrl+Shift+Win+Alt+N
WSL nvim
Win+Y
WSL yazi
Alt+Enter
Terminal
Alt+Shift+Enter
Terminal (workdir)