aboutsummaryrefslogblamecommitdiffstats
path: root/keymap.kbd
blob: 2e137c83bef3181e2939e8dc2b38579842bc5c09 (plain) (tree)


















                                                                                                            
                                                                                                                 

                                                      
 
              













                                                                                                            
                                             






                         





                                      

 

                                                                                    





                                                                                                         








                                                                                                         
#| --------------------------------------------------------------------------
(deflayer devi
  _    _    _    _    _    _    _    _    _    _    _    _    _          _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _    _                          _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _                    _          _    _    _    _
  _    _    _         _              _    _    _    _               _    _    _     _    _
)
(defsrc
  esc  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10  f11  f12        ssrq slck pause
  grv  1    2    3    4    5    6    7    8    9    0    -    =    bspc  ins  home pgup  nlck kp/  kp*  kp-
  tab  q    w    e    r    t    y    u    i    o    p    [    ]    \     del  end  pgdn  kp7  kp8  kp9  kp+
  caps a    s    d    f    g    h    j    k    l    ;    '    ret                        kp4  kp5  kp6
  lsft z    x    c    v    b    n    m    ,    .    /    rsft                 up         kp1  kp2  kp3  kprt
  lctl lmet lalt           spc            ralt rmet cmp  rctl            left down rght  kp0  kp.
)
-------------------------------------------------------------------------- |#
(defcfg
  input  (device-file "/dev/input/by-id/usb-Razer_Razer_Huntsman_Tournament_Edition_00000000001A-if01-event-kbd")
  output (uinput-sink "KMonad output"
          "sleep 1 && setxkbmap -option compose:ralt")

  cmp-seq ralt
  fallthrough true
  allow-cmd false
)

(defsrc
  esc  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10  f11  f12        ssrq slck pause
  grv  1    2    3    4    5    6    7    8    9    0    -    =    bspc  ins  home pgup  nlck kp/  kp*  kp-
  tab  q    w    e    r    t    y    u    i    o    p    [    ]    \     del  end  pgdn  kp7  kp8  kp9  kp+
  caps a    s    d    f    g    h    j    k    l    ;    '    ret                        kp4  kp5  kp6
  lsft z    x    c    v    b    n    m    ,    .    /    rsft                 up         kp1  kp2  kp3  kprt
  lctl lmet lalt           spc            ralt rmet cmp  rctl            left down rght  kp0  kp.
)

(defalias
  meta_layer_toggle (layer-toggle meta_layer)
  crs (tap-next } rsft)
  cls (tap-next { lsft)
  crc (tap-next ] rctl)
  clc (tap-next [ lctl)
  cra (tap-next \) ralt)
  cla (tap-next \( lalt)
  ccp (tap-next esc lctl)
  ll1 (layer-delay 500 meta_layer)
  ll2 (around-next @meta_layer_toggle)
  aa1 (tap-macro (around alt [) 1)
  aa2 (tap-macro (around alt [) 2)
  aaq (tap-macro (around alt [) q)
  aaw (tap-macro (around alt [) w)
)

(deflayer devi_layer
  @ll2 _    _    _    _    _    _    _    _    _    _    _    _          _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  _    _    _    _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  @ccp _    _    _    _    _    _    _    _    _    _    _    _                          _    _    _
  @cls _    _    _    _    _    _    _    _    _    _    @crs                 _          _    _    _    _
  @clc _    @cla           _              @cra _    _    @crc            _    _    _     _    _
)

(deflayer meta_layer
  _    _    _    _    _    _    _    _    _    _    _    _    _          _    _    _
  _    @aa1 @aa2 _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  _    @aaq @aaw _    _    _    _    _    _    _    _    _    _    _     _    _    _     _    _    _    _
  @ccp _    _    _    _    _    _    _    _    _    _    _    _                          _    _    _
  @cls _    _    _    _    _    _    _    _    _    _    @crs                 _          _    _    _    _
  @clc _    @cla           _              @cra _    _    @crc            _    _    _     _    _
)