(defcfg
  linux-dev-names-exclude (
   "ZSA Technology Labs Voyager"
   "ZSA Technology Labs Voyager Consumer Control"
   "ZSA Technology Labs Voyager Keyboard"
  )
)


(deflocalkeys-linux
  ImpPt 99
  º 41
  ' 12
  ¡ 13
  ` 26
  + 27
  ñ 39
  ´ 40
  ç 43
  < 86
  - 53
)

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

(defvar
    tap-time 200
    hold-time 250
)

(defalias
    caps (tap-hold $tap-time $hold-time caps (layer-while-held layer1))
    a (tap-hold $tap-time $hold-time a lalt)
    s (tap-hold $tap-time $hold-time s lsft)
    d (tap-hold $tap-time $hold-time d lmet)
    f (tap-hold $tap-time $hold-time f lctl)
    g (tap-hold $tap-time $hold-time g (layer-while-held layer1))
    h (tap-hold $tap-time $hold-time h rctl)
    j (tap-hold $tap-time $hold-time j rmet)
    k (tap-hold $tap-time $hold-time k rsft)
    l (tap-hold $tap-time $hold-time l ralt)
)

(deflayer base
    esc   mute vold volu -    brdn brup -  -  -  -   -   -   ins ImpPt del     home end pgup pgdn
    º     1    2    3    4    5    6    7  8  9  0   '   ¡       Backspace     nlck kp/  kp*  kp-
    tab   q    w    e    r    t    y    u  i  o  p   `   +                     kp7  kp8  kp9
    @caps @a   @s   @d   @f   @g   @h   @j @k @l ñ   ´   ç             ret     kp4  kp5  kp6  kp+
    lsft  <    z    x    c    v    b    n  m  ,  .   -                rsft     kp1  kp2  kp3
    lctl     lmet lalt        spc          ralt   rctl          up              kp0  kp. kprt
                                                          left down rght
)

(deflayer layer1
    _  f1 f2 f3 f4 f5 f6   f7   f8 f9    f10 f11 f12 _   _       _     _  _  _  _
    _  _  _  _  _  _  _    _    _  _     _   _   _               _     _  _  _  _
    _  _  _  _  _  _  _    _    _  _     _   _   _                     _  _  _
    _  _  _  _  _  _  left down up right _   _   _               _     _  _  _  _
    _  _  _  _  _  _  _    _    _  _     _   _                   _     _  _  _
    _     _  _             _             _       _           _            _  _  _
                                                          _  _  _
)
