This is a guide for configuring a keyboard layout that is great for developers on Linux. The layout is basically featuring the following:
- Use
fn+hjkl
for navigation - Use
l_ctrl
asfunction
- Map
caps lock
tol_ctrl
- Swap the
l_win
andl_alt
keys - Swap the
r_alt
andfn
, and mapfn
tosuper
.
I'm using this layout actively when developing with the Pok3er on Arch Linux with NeoVim as my weapon of choice.
The great thing is that you can pick and choose from the settings below. Treat this guide as an example, not the Truth of a great set up.
The layout I have looks like this (the red keys are the modified ones):
Only layers 2-4 are programmable, the default layer is not. So when following
this guide, make sure you are on any of layers 2-4 (fn + ,
, .
or /
).
To enter the programming mode on the keyboard, press fn + r_ctrl
. The right LED
under the space bar will now light up.
Note again that this is not possible in the default layer.
To exit the programming mode on the keyboard, press fn + r_ctrl
or wait for
15 seconds.
- Start by entering programming mode,
fn + r_ctrl
- Map
fn + h
to left:fn + h
(set target)fn + j
(set source)pn
/menu
(save)
- Map
fn + j
to down:fn + j
(set target)fn + k
(set source)pn
/menu
(save)
- Map
fn + k
to up:fn + k
(set target)fn + i
(set source)pn
/menu
(save)
- Exit programming mode:
fn + r_ctrl
- Start by entering programming mode,
fn + r_ctrl
- Map
caps lock
tol_ctrl
:caps lock
(set target)l_ctrl
(set source)pn
/menu
(save)
- Exit programming mode:
fn + r_ctrl
R_CMD: R_Alt then: R_FN (Win) then: PN
R_Option: R_FN (Win) then: R_Alt then: PN
- Start by entering programming mode,
fn + r_ctrl
- Map
l_alt
tol_win
:l_alt
(set target)l_win
(set source)pn
/menu
(save)
- Map
l_win
tol_alt
:l_win
(set target)l_alt
(set source)pn
/menu
(save)
- Exit programming mode:
fn + r_ctrl
- Start by entering programming mode,
fn + r_ctrl
- Map
r_alt
tor_fn
:r_alt
(set target)r_fn
(set source)pn
/menu
(save)
- Map
r_fn
tor_alt
:r_fn
(set target)r_alt
(set source)pn
/menu
(save)
- Exit programming mode:
fn + r_ctrl
- Unplug the keyboard
- Switch DIP switch 4 (the hardware switches on the back of the keyboard to ON)
- Plug the keyboard back in again
- Press
fn
thenl_ctrl
, thenpn
and thenpn
- Switch DIP switch 4 back to OFF
Special thanks to David Jenni for his great guide to configuring the Pok3r on macOS and Windows. You can find it here.