Last active
November 13, 2024 16:01
-
-
Save filippor/341fb0ddfdc905c20374bfcda4017f8c to your computer and use it in GitHub Desktop.
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
| ;; Copyright 2021 Manna Harbour | |
| ;; github.com/manna-harbour/miryoku | |
| (defcfg | |
| input (device-file "/dev/input/by-id/usb-SEM_USB_Keyboard-event-kbd") | |
| output (uinput-sink "Miryoku KMonad output") | |
| fallthrough true | |
| ) | |
| (defsrc | |
| f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 | |
| 3 4 5 6 7 8 9 0 - = | |
| w e r t y i o p [ ] | |
| a s d f g k l ; ' \ | |
| c v b m , . | |
| cmp | |
| ) | |
| (defalias | |
| aMet (tap-hold-next-release 500 a met) ;; | |
| sAlt (tap-hold-next-release 500 s alt) ;; | |
| dCtl (tap-hold-next-release 500 d ctl) ;; | |
| fSft (tap-hold-next-release 500 f sft) ;; | |
| 'Met (tap-hold-next-release 500 ' met) ;; | |
| lAlt (tap-hold-next-release 500 l alt) ;; | |
| kCtl (tap-hold-next-release 500 k ctl) ;; | |
| jSft (tap-hold-next-release 500 j sft) ;; | |
| xRalt (tap-hold-next-release 500 x ralt) ;; | |
| .Ralt (tap-hold-next-release 500 . ralt) ;; | |
| zBUT (tap-hold-next-release 500 z (layer-toggle U_BUTTON)) ;; | |
| /BUT (tap-hold-next-release 500 / (layer-toggle U_BUTTON)) ;; | |
| escFUN (tap-hold-next-release 500 esc (layer-toggle U_FUN)) ;; | |
| spcNUM (tap-hold-next-release 500 spc (layer-toggle U_NUM)) ;; | |
| tabSYM (tap-hold-next-release 500 tab (layer-toggle U_SYM)) ;; | |
| entMOU (tap-hold-next-release 500 ent (layer-toggle U_MOUSE)) ;; | |
| bspNAV (tap-hold-next-release 500 bspc (layer-toggle U_NAV)) ;; | |
| delMED (tap-hold-next-release 500 del (layer-toggle U_MEDIA)) ;; | |
| ) | |
| (deflayer U_BASE | |
| 1 2 3 4 5 6 7 8 9 0 | |
| q w e r t y u i o p | |
| @aMet @sAlt @dCtl @fSft g h @jSft @kCtl @lAlt @'Met | |
| @zBUT @xRalt c v b n m , @.Ralt @/BUT | |
| @escFUN @spcNUM @tabSYM @entMOU @bspNAV @delMED | |
| _ | |
| ) | |
| (deflayer U_EXTRA | |
| _ _ _ _ _ _ _ _ _ _ | |
| q w e r t y u i o p | |
| @aMet @sAlt @dCtl @fSft g h @jSft @kCtl @lAlt @'Met | |
| @zBUT @xRalt c v b n m , @.Ralt @/BUT | |
| @escFUN @spcNUM @tabSYM @entMOU @bspNAV @delMED | |
| _ | |
| ) | |
| (deflayer U_TAP | |
| _ _ _ _ _ _ _ _ _ _ | |
| q w e r t y u i o p | |
| a r s t g m n e i o | |
| z x c d v k h , . / | |
| esc spc tab ent bspc del | |
| _ | |
| ) | |
| (defalias | |
| R_MB #(kp* kp5) | |
| M_MB #(kp/ kp5) | |
| L_MB #(kp- kp5) | |
| ) | |
| (deflayer U_BUTTON | |
| _ _ _ _ _ _ _ _ _ _ | |
| undo S-del S-ins S-ins again again S-ins C-ins S-del undo | |
| met alt ctl sft XX XX sft ctl alt met | |
| undo S-del C-ins S-ins again again S-ins C-ins S-del undo | |
| @R_MB @M_MB @L_MB @L_MB @M_MB @R_MB | |
| _ | |
| ) | |
| (defalias | |
| mtBASE (multi-tap 500 XX (layer-switch U_BASE)) | |
| mtEXTR (multi-tap 500 XX (layer-switch U_EXTRA)) | |
| mtTAP (multi-tap 500 XX (layer-switch U_TAP)) | |
| mtNAV (multi-tap 500 XX (layer-switch U_NAV)) | |
| mtNUM (multi-tap 500 XX (layer-switch U_NUM)) | |
| mtMEDI (multi-tap 500 XX (layer-switch U_MEDIA)) | |
| mtMOUS (multi-tap 500 XX (layer-switch U_MOUSE)) | |
| mtSYM (multi-tap 500 XX (layer-switch U_SYM)) | |
| mtFUN (multi-tap 500 XX (layer-switch U_FUN)) | |
| ) | |
| (deflayer U_NAV | |
| _ _ _ _ _ _ _ _ _ _ | |
| home pgdn pgup end ins XX @mtBASE @mtEXTR @mtTAP XX | |
| left down up right caps XX sft ctl alt met | |
| undo S-del C-ins S-ins again XX @mtNAV @mtNUM ralt XX | |
| esc spc tab XX XX XX | |
| _ | |
| ) | |
| (deflayer U_MOUSE | |
| _ _ _ _ _ _ _ _ _ _ | |
| XX XX XX XX XX XX @mtBASE @mtEXTR @mtTAP XX | |
| kp4 kp2 kp8 kp6 XX XX sft ctl alt met | |
| undo S-del C-ins S-ins again XX @mtMOUS @mtSYM ralt XX | |
| @R_MB @M_MB @L_MB XX XX XX | |
| _ | |
| ) | |
| (defalias | |
| >>song nextsong | |
| <<song previoussong | |
| >#song playpause | |
| ) | |
| (deflayer U_MEDIA | |
| _ _ _ _ _ _ _ _ _ _ | |
| XX XX XX XX XX XX @mtBASE @mtEXTR @mtTAP XX | |
| @<<song vold volu @>>song XX XX sft ctl alt met | |
| XX XX XX XX XX XX @mtMEDI @mtFUN ralt XX | |
| mute @>#song stopcd XX XX XX | |
| _ | |
| ) | |
| (deflayer U_NUM | |
| _ _ _ _ _ _ _ _ _ _ | |
| XX @mtTAP @mtEXTR @mtBASE XX [ 7 8 9 ] | |
| met alt ctl sft XX = 4 5 6 ; | |
| XX ralt @mtNAV @mtNUM XX \\ 1 2 3 ` | |
| XX XX XX - 0 . | |
| _ | |
| ) | |
| (deflayer U_SYM | |
| _ _ _ _ _ _ _ _ _ _ | |
| XX @mtTAP @mtEXTR @mtBASE XX { & * \( } | |
| met alt ctl sft XX + $ % ^ : | |
| XX ralt @mtMOUS @mtSYM XX | ! @ # ~ | |
| XX XX XX \_ \( \) | |
| _ | |
| ) | |
| (deflayer U_FUN | |
| f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 | |
| XX @mtTAP @mtEXTR @mtBASE XX sysrq f7 f8 f9 f12 | |
| met alt ctl sft XX slck f4 f5 f6 f11 | |
| XX ralt @mtMEDI @mtFUN XX pause f1 f2 f3 f10 | |
| XX XX XX ent bspc comp | |
| _ | |
| ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment