Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. INPUT = LINUX_DEVICE L64 /dev/input/by-id/usb-HAILUCK_CO._LTD_USB_KEYBOARD-event-kbd
  2. OUTPUT = UINPUT_SINK
  3.  
  4. // "TH" = "tap hold"
  5. // this definition states that tapping the ESC key for < 150ms
  6. // acts as an escape and holding for anything > 150ms generates the ` character
  7. // (which is a common place for the tick character on a US keyboard layout)
  8. @esc = TH 150 esc `
  9.  
  10. // "MT" = "multi tap"
  11. // this definition is weird, but essentially allows for double tapping the 0 key to toggle
  12. // CAPS lock. hey - you *might* need it?
  13. @0 = MT 0 300 caps
  14.  
  15. // this definition makes it so that when the \ key is tapped once, it acts as the \ key; if
  16. // tapped twice, generate a - (hyphen), tapped three times, generate an _ (underscore)
  17. // and tapped four times, it generates a plus character
  18. @\ = MT \ 300 - 175 = 175 __ 175 +
  19.  
  20. // "TN" = "tap next"
  21. // this definition switches CAPS to act as an ESC when tapped and a CTRL when held
  22. @xcp = TN esc lctl
  23.  
  24. // definition (also weird and still being tested) generates a return/enter when tapped,
  25. // a colon when double tapped and a semi-colon when triple tapped
  26. @ret = MT ret 300 : 175 ;
  27.  
  28. // these should be self explanatory
  29. @, = TH 300 , [
  30. @. = TH 300 . ]
  31.  
  32. // this key, when held, toggles on the "gpdish" layer which is mainly the
  33. // keys that would require the fn to operate normally. IMO, the spacebar is
  34. // easier to hold than fn
  35. @spc = TH 250 spc LT-gpdish
  36.  
  37.  
  38.  
  39. // 0 1 2 3 4 5 6 7 8 9 10 11
  40. SRC
  41. esc 1 2 3 4 5 6 7 8 9 0 bspc
  42. tab q w e r t y u i o p \
  43. caps a s d f g h j k l ret
  44. lsft z x c v b n m , . / '
  45. lctl lmet spc ralt up left down rght pgup pgdn keyhome keyend
  46. ` - = [ ] del prnt
  47.  
  48.  
  49. // 0 1 2 3 4 5 6 7 8 9 10 11
  50. LAYER josh
  51. @esc 1 2 3 4 5 6 7 8 9 @0 bspc
  52. tab q w e r t y u i o p @\
  53. @xcp a s d f g h j k l @ret
  54. lsft z x c v b n m @, @. / '
  55. lctl lmet @spc ralt up left down rght pgup pgdn keyhome keyend
  56. ` - = [ ] del prnt
  57.  
  58.  
  59. // 0 1 2 3 4 5 6 7 8 9 10 11
  60. LAYER gpdish ~ anchor esc
  61. f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
  62. _ _ keymute vold volu ` ~ __ - + = _
  63. _ _ _ _ _ _ _ _ _ _ _
  64. _ brdn brup _ { } [ ] _ _ _ _
  65. _ _ _ _ pgup keyhome pgdn keyend _ _ _ _
  66. _ _ _ _ _ _ _
  67.  
  68.  
  69.  
  70. // vim: ft=haskell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement