Implicit Array KeysΒΆ

You may find it useful to predefine some trigger keys to avoid repeating yourself. Here is an example:

:implicit-array-keys "asdfjk;"
... "Workspace %(index+1)" %{{switch-to-workspace %(index)}}
[asdfjk;] "Workspace %(index+1)" %{{switch-to-workspace %(index)}}
a "Workspace 1" %{{switch-to-workspace 0}}
s "Workspace 2" %{{switch-to-workspace 1}}
d "Workspace 3" %{{switch-to-workspace 2}}
f "Workspace 4" %{{switch-to-workspace 3}}
j "Workspace 5" %{{switch-to-workspace 4}}
k "Workspace 6" %{{switch-to-workspace 5}}
; "Workspace 7" %{{switch-to-workspace 6}}

The implicit array keys really shine if you often use your home row, numpad, etc. to select from a list of options. It also makes it easy to change your preferred keys as you only need to modify one line instead of many.

See also

Read the complete documentation on implicit array keys here.