Last active
December 9, 2024 01:40
-
-
Save molezz/f3046af30351b6edd05c6292611d6e7a to your computer and use it in GitHub Desktop.
keyboard remapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; https://www.autohotkey.com/docs/v2/index.htm | |
#SingleInstance Force | |
^!r::Reload ; Ctrl+Alt+r | |
XButton2::MButton | |
XButton1::MButton | |
RAlt::return | |
Capslock::RAlt | |
RControl::Volume_Up | |
AppsKey::Volume_Down | |
Insert::Delete | |
>!1::F1 | |
>!2::F2 | |
>!3::F3 | |
>!4::F4 | |
>!5::F5 | |
>!6::F6 | |
>!7::F7 | |
>!8::F8 | |
>!9::F9 | |
>!0::F10 | |
>!-::F11 | |
>!=::F12 | |
>!Backspace::Delete | |
>!q::Home | |
>!e::End | |
>!w::Up | |
>!a::Left | |
>!s::Down | |
>!d::Right | |
>![::Volume_Down | |
>!]::Volume_Up | |
; force english symbol | |
`::SendText "``" | |
/::SendText "/" | |
>!`::SendText "``" | |
>!.::SendText ">" | |
<!.::SendText "." | |
>!;::SendText ":" | |
<!;::SendText ";" | |
!\::SendText "\" | |
!/::SendText "/" | |
<![::SendText "[" | |
<!]::SendText "]" | |
<!'::SendText "'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcfg | |
#| | |
This configuration will process all keys pressed inside of kanata, even if | |
they are not mapped in defsrc. This is so that certain actions can activate | |
at the right time for certain input sequences. By default, unmapped keys are | |
not processed through kanata due to a Windows issue related to AltGr. If you | |
use AltGr in your keyboard, you will likely want to follow the simple.kbd | |
file while unmapping lctl and ralt from defsrc. | |
|# | |
process-unmapped-keys yes | |
) | |
(defsrc | |
caps grv q w e [ ] Backspace | |
a s d | |
lsft . rsft | |
ralt apps rctl | |
🖰4 | |
) | |
(deflayer default | |
@cap (unicode "`") _ _ _ _ _ _ | |
_ _ _ | |
_ _ _ | |
@ralt VolumeDown VolumeUp | |
🖰3 | |
) | |
(deflayer ralt | |
_ (unicode "`") home up end VolumeDown VolumeUp Delete | |
left down rght | |
_ (unicode ">") _ | |
_ _ _ | |
_ | |
) | |
(defalias | |
cap (tap-hold-press 200 200 (unicode ">") (layer-toggle ralt)) | |
ralt (tap-hold-press 200 200 grv (layer-toggle ralt)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment