refactoring and kanata layers
This commit is contained in:
parent
1ca4236a0c
commit
9072e16503
5 changed files with 59 additions and 77 deletions
|
@ -6,6 +6,13 @@ let
|
|||
tap-timeout 150
|
||||
hold-timeout 150)
|
||||
'';
|
||||
shared-alias = ''
|
||||
(defalias
|
||||
spcnav (tap-hold-press $tap-timeout $hold-timeout spc (layer-while-held navigation))
|
||||
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft))
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
|
@ -47,12 +54,10 @@ allow-hardware-repeat false
|
|||
|
||||
${k-vars}
|
||||
|
||||
${shared-alias}
|
||||
|
||||
(defalias
|
||||
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft)
|
||||
controls (layer-while-held media-controls)
|
||||
nav (tap-hold-press $tap-timeout $hold-timeout a (layer-while-held navigation)))
|
||||
controls (layer-while-held media-controls))
|
||||
|
||||
(deflayer qwerty
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prtsc
|
||||
|
@ -60,7 +65,7 @@ ${k-vars}
|
|||
tab q w e r t y u i o p [ ] bspc end
|
||||
@supesc a s d f g h j k l ; ' ret pgup
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft up pgdn
|
||||
lmet @controls lalt lctrl spc rctrl ralt rmet left down right)
|
||||
lmet @controls lalt lctrl @spcnav rctrl ralt rmet left down right)
|
||||
|
||||
(deflayer navigation
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prtsc
|
||||
|
@ -68,7 +73,7 @@ ${k-vars}
|
|||
tab q w e r t y u i o p [ ] bspc end
|
||||
@supesc a s d f g left down up right ; ' ret pgup
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft up pgdn
|
||||
lmet @controls lalt lctrl spc rctrl ralt rmet left down right)
|
||||
lmet @controls lalt lctrl _ rctrl ralt rmet left down right)
|
||||
|
||||
(deflayer media-controls
|
||||
esc VolumeMute VolumeDown VolumeUp f4 MediaTrackPrevious MediaPlayPause MediaTrackNext f8 f9 f10 f11 f12 prtsc
|
||||
|
@ -76,52 +81,10 @@ ${k-vars}
|
|||
tab q w e r t y u i o MediaPlayPause [ ] bspc end
|
||||
@supesc a s d f g MediaTrackNext VolumeDown VolumeUp MediaTrackPrevious ; ' ret pgup
|
||||
@sp-lsft z x c v b n VolumeMute , . / @sp-rsft pgup _
|
||||
lmet lmet lalt lctrl spc rctrl ralt rmet home pgdn end)
|
||||
lmet lmet lalt lctrl _ rctrl ralt rmet home pgdn end)
|
||||
'';
|
||||
};
|
||||
|
||||
# quefrency = {
|
||||
# devices = [ "/dev/input/by-id/usb-Keebio_Sinc_Rev._4-event-kbd"
|
||||
# "/dev/input/by-id/usb-Keebio_Sinc_Rev._4-event-if02"
|
||||
# "/dev/input/by-id/usb-Keebio_Sinc_Rev._4-if02-event-joystick" ];
|
||||
# extraDefCfg = ''
|
||||
# process-unmapped-keys yes
|
||||
# concurrent-tap-hold yes
|
||||
# '';
|
||||
|
||||
# config = ''
|
||||
# (defsrc
|
||||
# grv 1 2 3 4 5 6 7 8 9 0 - = \ del home
|
||||
# tab q w e r t y u i o p [ ] bspc end
|
||||
# caps a s d f g h j k l ; ' ret pgup
|
||||
# lsft z x c v b n m , . / rsft up pgdn
|
||||
# lctl slck lmet lalt spc ralt rmet rctrl left down right)
|
||||
|
||||
# ${k-vars}
|
||||
|
||||
# (defalias
|
||||
# supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
# sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
# sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft)
|
||||
# controls (layer-while-held controls))
|
||||
|
||||
# (deflayer qwerty
|
||||
# grv 1 2 3 4 5 6 7 8 9 0 - = \ del home
|
||||
# tab q w e r t y u i o p [ ] bspc end
|
||||
# @supesc a s d f g h j k l ; ' ret pgup
|
||||
# @sp-lsft z x c v b n m , . / @sp-rsft up pgdn
|
||||
# lmet @controls lalt lctrl spc rctrl ralt rmet left down right)
|
||||
|
||||
# (deflayer controls
|
||||
# grv 1 2 3 4 5 6 7 8 9 0 - = \ del home
|
||||
# tab q w e r t y u i o MediaPlayPause [ ] bspc end
|
||||
# @supesc a s d f g MediaTrackNext VolumeDown VolumeUp MediaTrackPrevious l ; ' ret pgup
|
||||
# @sp-lsft z x c v b n VolumeMute , . / @sp-rsft pgup _
|
||||
# lmet lmet lalt lctrl spc rctrl ralt rmet home pgdn end)
|
||||
|
||||
# '';
|
||||
# }
|
||||
|
||||
razer = {
|
||||
devices = [ "/dev/input/by-id/usb-Razer_Razer_Blade-event-kbd"
|
||||
"/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd" ];
|
||||
|
@ -141,6 +104,7 @@ allow-hardware-repeat false
|
|||
${k-vars}
|
||||
|
||||
(defalias
|
||||
spcnav (tap-hold-press $tap-timeout $hold-timeout spc (layer-while-held navigation))
|
||||
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft))
|
||||
|
@ -150,7 +114,14 @@ ${k-vars}
|
|||
tab q w e r t y u i o p [ ] \
|
||||
@supesc a s d f g h j k l ; ' ret
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft
|
||||
lmet lalt lctrl spc rctrl ralt)
|
||||
lmet lalt lctrl @spcnav rctrl ralt)
|
||||
|
||||
(deflayer navigation
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@supesc a s d f g left down up right ; ' ret
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft
|
||||
lmet lalt lctrl _ rctrl ralt)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue