Created
December 24, 2025 09:58
-
-
Save B1T3X/c7764f7aa1b3e29223d1b90b17df4014 to your computer and use it in GitHub Desktop.
KMonad_Config_Example__MacOS_CK61.kbd
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 | |
| ;; For MacOS | |
| input (iokit-name "BT5.0 KB") | |
| ;;input (iokit-name "USB-HID Gaming Keyboard") | |
| output (kext) | |
| fallthrough true | |
| allow-cmd true | |
| ) | |
| (defsrc | |
| esc 1 2 3 4 5 6 7 8 9 0 - = bspc | |
| tab q w e r t y u i o p [ ] \ | |
| caps a s d f g h j k l ; ' ret | |
| lsft z x c v b n m , . / rsft | |
| lctl lmet lalt spc ralt cmps rctl Fn | |
| rght up | |
| ;; Function keys to remap to my functions | |
| pp prev next | |
| ) | |
| (defalias | |
| ;; Move to arrows layer so HJKL acts like arrows | |
| prsarws (tap-hold-next-release 150 esc (layer-toggle arrows)) | |
| cmd (around (layer-toggle cmd_mod) lmet) | |
| cmdsft (around (layer-toggle cmd_shift_mod) (around lmet lsft)) | |
| ;; Aerospace display commands | |
| ylft (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace move-node-to-monitor prev\"") | |
| yrght (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace move-node-to-monitor next\"") | |
| focdis (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace focus-monitor next || /opt/homebrew/bin/aerospace focus-monitor 1\"") | |
| ;; Aerospace window commands | |
| yfscr (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace macos-native-fullscreen\"") | |
| ynxtspc (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace move-node-to-workspace next\"") | |
| yprvspc (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace move-node-to-workspace prev\"") | |
| ;; Aerospace space commands | |
| yspcprv (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace workspace prev\"") | |
| yspcnxt (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/aerospace workspace next\"") | |
| ylftbtn (multi-tap 150 @yprvspc @ylft) | |
| yrghtbtn (multi-tap 150 @ynxtspc @yrght) | |
| ;; Macros | |
| oyaml (tap-macro - o y a m l :delay 5 ) | |
| owide (tap-macro - o w i d e :delay 5 ) | |
| ;; spotify-player shortcuts | |
| pbprev (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/spt pb --previous\"") | |
| pbpp (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/spt pb --toggle\"") | |
| pbnext (cmd-button "sudo -u orel sh -c \"/opt/homebrew/bin/spt pb --next\"") | |
| macros (around-next (layer-toggle macros)) | |
| pbmacros (layer-toggle pbmacros) | |
| vlmacros (layer-toggle vlmacros) | |
| ofmtmacros (around-next (layer-toggle fmtmacros)) | |
| ) | |
| (deflayer layer1 | |
| grv 1 2 3 4 5 6 7 8 9 0 - = bspc | |
| tab q w e r t y u i o p [ ] \ | |
| @prsarws a s d f g h j k l ; ' ret | |
| lsft z x c v b n m , . / @macros | |
| lctl lalt @cmd spc ralt cmps rctl Fn | |
| ) | |
| (deflayer arrows | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ bspc _ _ _ _ _ _ @ylftbtn @yrghtbtn _ _ _ _ | |
| _ ret _ _ @yfscr _ lft down up rght _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ @focdis _ _ _ _ | |
| ) | |
| (deflayer macros | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ @ofmtmacros @pbmacros _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ @vlmacros _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ | |
| ) | |
| (deflayer fmtmacros | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ @owide _ _ _ @oyaml _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ | |
| ) | |
| (deflayer pbmacros | |
| _ _ _ _ _ _ _ _ _ _ _ @pbprev @pbnext _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ @pbpp _ _ _ _ | |
| ) | |
| (deflayer vlmacros | |
| _ _ _ _ _ _ _ _ _ _ _ vold volu _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ mute _ _ _ _ | |
| ) | |
| (deflayer cmd_mod | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ @yspcprv _ _ @yspcnxt _ _ _ | |
| @cmdsft _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ | |
| ) | |
| (deflayer cmd_shift_mod | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ h _ _ l _ _ _ | |
| _ _ _ _ _ _ _ _ _ _ _ _ | |
| _ _ _ _ _ _ _ _ | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment