You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
1.2 KiB

# Goal:
#
# To create a vi like navigation layer accessible by holding capslock while having capslock
# otherwise behave like the control key (when held) and escape when tapped.
#
# In essence we want:
#
# - capslock+h = left
# - capslock+j = down
# - capslock+k = up
# - capslock+l = right
#
# - capslock+shift+h = C-left
# - capslock+shift+l = C-right
# - capslock+shift+j = C-down
# - capslock+shift+k = C-up
#
# - capslock = escape (when tapped)
#
# In all other instances capslock should behave as normal control:
#
# - capslock+a = C-a
# - capslock+b = C-b
# - capslock+c = C-c
# ...
# - capslock+shift+i = C-S-i
# - capslock+shift+k = C-S-k
# ....
# This is achieved by creating a 'nested layer' called [capslock_shift]
# which is activated whenever capslock and shift are simultaneously
# held.
#
# The important bindings are:
#
# [shift]
# capslock = layer(capslock_shift)
#
# [capslock]
# shift = layer(capslock_shift)
[ids]
*
[main]
capslock = overload(capslock, esc)
# The default shift layer (the layer activated when shift is pressed).
[shift]
capslock = layer(capslock_shift)
[capslock:C]
shift = layer(capslock_shift)
h = left
j = down
k = up
l = right
[capslock_shift]
h = C-left
j = C-down
k = C-up
l = C-right