Autohotkey (windows) and Autokey (linux) configuration files for CapsLock remapping, inspired by a blog post by Nikitonsky.
- Use
capslock + j/l/k/i
instead of arrow keys without moving your hands from the default position capslock + h
as a backspacecapslock + a/d/s/w
as home/end, page up/page down keyscapslock + [
,capslock + ]
to decrease and increase the sound volume
This is tested on Ubuntu (gnome). The Autokey configuration tool doesn't seem to work with CapsLock key directly, so I had to map CapsLock to "additional Hyper" first:
- Tweaks -> keyboard & mouse -> additional layout options
- Caps lock behavior
- Make Caps Lock an additional Hyper
You're free to choose any other key instead of Hyper, but then the Autokey configuration files must also be updated.
Then
- Install Autokey
- Copy the
autokey
directory to~/.config/autokey/data
- Run Autokey
- Install Autohotkey
- Execute
autohotkey/capslock.ahk
Add to autoload:
- Win + R,
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
, enter - Right-click -> New -> Shortcut
- Enter the full path to
capslock.ahk
file