aboutsummaryrefslogtreecommitdiffstats
path: root/keymap.kbd
blob: 74ac309e0016a1c490f4ee4cf80978bc605d39fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#| --------------------------------------------------------------------------
(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-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)

  af1 (tap-macro (around ctl a) w)
  af2 (tap-macro (around ctl 6))
  af3 (tap-macro (around ctl a) (pause 10) (around ctl 6))

  aa1 (tap-macro (around alt [)(around alt [)(around alt [) 1)
  aa2 (tap-macro (around alt [)(around alt [)(around alt [) 2)
  aa3 (tap-macro (around alt [)(around alt [)(around alt [) 3)
  aa4 (tap-macro (around alt [)(around alt [)(around alt [) 4)
  aa5 (tap-macro (around alt [)(around alt [)(around alt [) 5)
  aa6 (tap-macro (around alt [)(around alt [)(around alt [) 6)
  aa7 (tap-macro (around alt [)(around alt [)(around alt [) 7)
  aa8 (tap-macro (around alt [)(around alt [)(around alt [) 8)
  aa9 (tap-macro (around alt [)(around alt [)(around alt [) 9)
  aa0 (tap-macro (around alt [)(around alt [)(around alt [) 0)

  aaq (tap-macro (around alt [)(around alt [)(around alt [) q)
  aaw (tap-macro (around alt [)(around alt [)(around alt [) w)
  aae (tap-macro (around alt [)(around alt [)(around alt [) e)
  aar (tap-macro (around alt [)(around alt [)(around alt [) r)
  aat (tap-macro (around alt [)(around alt [)(around alt [) t)
  aay (tap-macro (around alt [)(around alt [)(around alt [) y)
  aau (tap-macro (around alt [)(around alt [)(around alt [) u)
  aai (tap-macro (around alt [)(around alt [)(around alt [) i)
  aao (tap-macro (around alt [)(around alt [)(around alt [) o)
  aap (tap-macro (around alt [)(around alt [)(around alt [) p)

  aaa (tap-macro (around alt [)(around alt [)(around alt [) a)
  aas (tap-macro (around alt [)(around alt [)(around alt [) s)
  aad (tap-macro (around alt [)(around alt [)(around alt [) d)
  aaf (tap-macro (around alt [)(around alt [)(around alt [) f)
  aag (tap-macro (around alt [)(around alt [)(around alt [) g)
  aah (tap-macro (around alt [)(around alt [)(around alt [) h)
  aaj (tap-macro (around alt [)(around alt [)(around alt [) j)
  aak (tap-macro (around alt [)(around alt [)(around alt [) k)
  aal (tap-macro (around alt [)(around alt [)(around alt [) l)
  aa; (tap-macro (around alt [)(around alt [)(around alt [) ;)

  aaz (tap-macro (around alt [)(around alt [)(around alt [) z)
  aax (tap-macro (around alt [)(around alt [)(around alt [) x)
  aac (tap-macro (around alt [)(around alt [)(around alt [) c)
  aav (tap-macro (around alt [)(around alt [)(around alt [) v)
  aab (tap-macro (around alt [)(around alt [)(around alt [) b)
  aan (tap-macro (around alt [)(around alt [)(around alt [) n)
  aam (tap-macro (around alt [)(around alt [)(around alt [) m)
  aa, (tap-macro (around alt [)(around alt [)(around alt [) ,)
  aa. (tap-macro (around alt [)(around alt [)(around alt [) .)
  aa/ (tap-macro (around alt [)(around alt [)(around alt [) /)
)

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

(deflayer meta_layer
  _    @af1 @af2 @af3 _    _    _    _    _    _    _    _    _          _    _    _
  _    @aa1 @aa2 @aa3 @aa4 @aa5 @aa6 @aa7 @aa8 @aa9 @aa0 _    _    _     _    _    _     _    _    _    _
  _    @aaq @aaw @aae @aar @aat @aay @aau @aai @aao @aap _    _    _     _    _    _     _    _    _    _
  @ccp @aaa @aas @aad @aaf @aag @aah @aaj @aak @aal @aa; _    _                          _    _    _
  @cls @aaz @aax @aac @aav @aab @aan @aam @aa, @aa. @aa/ @crs                 _          _    _    _    _
  @clc _    @cla           _              @cra _    _    @crc            _    _    _     _    _
)