Inspired by vi like editor keybindings, these autokey scripts have more or less saved my life, YMMV!
With right shift/hyper as modifier, can be combined with other modifiers:
From | To |
---|---|
h/j/k/l | arrow keys |
w/b | word forward/back |
a/e | home/end |
p/; | page up/down |
From | To |
---|---|
s/c/v/x/z/t/i | send with ctrl |
m | return |
f/d | delete/backspace |
space | tab |
From | To |
---|---|
ctrl+space | escape |
y | ctrl+w (close tab) |
u/o | ctrl+shift+[/] (switch tab) |
g | ctrl+l (focus address bar) |
From | To |
---|---|
"+left_shift | double quote wrap selection |
q+left_shift | single quote |
q | single quote wrap selection |
i | ./ |
i+left_shift | ../ |
` | ~/ |
The scripts use hyper as modifier, do something like this to add the mapping:
xmodmap -e "remove shift = Shift_R" &&
xmodmap -e "keysym Shift_R = Hyper_R"
Install autokey, then:
clone https://github.com/tom-power/right-shift-vi-like-autokey &&
cd ./right-shift-vi-like-autokey &&
./install.sh
review in autokey -> Show main window
run setxkbmap -option ctrl:nocaps
before xmodmap
to map capslock to control