Skip to content

Instantly share code, notes, and snippets.

@andrewvmail
Last active August 28, 2023 07:27
Show Gist options
  • Save andrewvmail/4409481ccac0c0c8446e74b6886bf38a to your computer and use it in GitHub Desktop.
Save andrewvmail/4409481ccac0c0c8446e74b6886bf38a to your computer and use it in GitHub Desktop.
my windows kanata.kbd
;; https://github.com/jtroo/kanata/blob/main/src/keys/mod.rs#L82
(defcfg
process-unmapped-keys yes
danger-enable-cmd yes
)
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
lctl a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
esc lmet lalt spc ralt rmet rctl
)
(deflayer qwerty
@grl 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q @www e r @ttt y u i o p [ ] \
lctl @aaa @caa @ddd @fff @ggg h j @kkk l @bbb ' ret
lsft z x @ccc v b n m , . / rsft
esc lmet lalt spc ralt rmet rctl
)
(deflayer ccc
_ @cf1 @cf2 @cf3 @cf4 @cf5 @cf6 @cf7 @cf8 @cf9 @cf10 @cf11 _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ @chatgpts _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ @cmd _ _ _ _
_ _ _ _ _ _ _
)
(deflayer www
_ @wf1 @wf2 @wf3 @wf4 @wf5 @wf6 @wf7 @wf8 @wf9 @wf10 @wf11 _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ @cmd _ _ _ _
_ _ _ _ _ _ _
)
(deflayer ddd
_ @af1 @af2 @af3 @af4 @af5 @af6 @af7 @af8 @af9 @af10 @af11 _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer ggg
_ @sf1 @sf2 @sf3 @sf4 @sf5 @sf6 @sf7 @sf8 @sf9 @sf10 @sf11 _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ @googs _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer aaa
_ @f1 @f2 @f3 @f4 @f5 @f6 @f7 @f8 @f9 @f10 @vold @volu @volm
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ @hira @roh _ left down up rght _ _ _
_ _ _ _ _ _ @androidstudio _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer bbb
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ up _ _ _ _ _
_ _ _ _ _ _ _ left down rght _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer caa
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ @caleft _ _ @caright _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer ttt
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ @trello _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer kkk
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ @kanjis _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer fff
@ubuntu @ps @firefox @androidstudio _ _ _ _ _ _ _ _ _ @fork
_ _ @webstorm _ _ _ _ _ @firefox @chrome _ _ _ _
_ @a @sublime _ _ _ _ down up @trello _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(defalias
qwr (layer-switch qwerty)
grl (tap-hold 200 200 grv (layer-toggle layers)) ;; backtick
ccc (tap-hold 200 200 c (layer-toggle ccc))
caa (tap-hold 200 200 s (layer-toggle caa))
www (tap-hold 200 200 w (layer-toggle www))
ddd (tap-hold 200 200 d (layer-toggle ddd))
aaa (tap-hold 200 200 a (layer-toggle aaa))
ggg (tap-hold 200 200 g (layer-toggle ggg))
bbb (tap-hold 200 200 scln (layer-toggle bbb))
fff (tap-hold 200 200 f (layer-toggle fff))
ttt (tap-hold 200 200 t (layer-toggle ttt))
kkk (tap-hold 200 200 k (layer-toggle kkk))
caright C-A-rght
caleft C-A-left
cf1 C-f1
cf2 C-f2
cf3 C-f3
cf4 C-f4
cf5 C-f5
cf6 C-f6
cf7 C-f7
cf8 C-f8
cf9 C-f9
cf10 C-f10
cf11 C-f11
wf1 C-M-f1
wf2 C-M-f2
wf3 C-M-f3
wf4 C-M-f4
wf5 C-M-f5
wf6 C-M-f6
wf7 C-M-f7
wf8 C-M-f8
wf9 C-M-f9
wf10 C-M-f10
wf11 C-M-f11
af1 A-f1
af2 A-f2
af3 A-f3
af4 A-f4
af5 A-f5
af6 A-f6
af7 A-f7
af8 A-f8
af9 A-f9
af10 A-f10
af11 A-f11
sf1 S-f1
sf2 S-f2
sf3 S-f3
sf4 S-f4
sf5 S-f5
sf6 S-f6
sf7 S-f7
sf8 S-f8
sf9 S-f9
sf10 S-f10
sf11 S-f11
f1 f1
f2 f2
f3 f3
f4 f5
f5 f5
f6 f6
f7 f7
f8 f8
f9 f9
f10 f10
;; apps
;; nircmd - https://www.nirsoft.net/utils/nircmd.html
;; open - https://gist.github.com/andrewvmail/47c7c763ceb37ddfc3354e2a05d6663d
googs (cmd googs)
chatgpts (cmd chatgpts)
kanjis (cmd kanjis)
a (cmd a)
chrome (cmd open "chrome.exe")
firefox (cmd open "firefox.exe")
ubuntu (cmd open "ubuntu.exe")
trello (cmd open "trello.exe")
sublime (cmd open "sublime_text.exe")
webstorm (cmd open "webstorm64.exe")
androidstudio (cmd open "studio64.exe")
whatsapp (cmd open "ApplicationFrameHost.exe")
fork (cmd open "fork.exe")
cmd (cmd open "cmd.exe")
ps (cmd open "powershell.exe")
volu (cmd nircmd changesysvolume 500)
vold (cmd nircmd changesysvolume -500)
volm (cmd nircmd mutesysvolume 2)
hira A-caps
roh S-caps
)
;; lrdl - livereload
(deflayer layers
_ @qwr _ lrld _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment