example.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Example Key-bind
  2. # When 'h' is pressed, write 'Hello World!'
  3. # Do we want this key-bind active on start-up
  4. # This is a simple example, it won't use this
  5. #startup = true
  6. # Key to trigger on
  7. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  8. key = 'h'
  9. # Kind of action to perform
  10. # click -> Click a mouse button
  11. # click down -> Click a mouse button down, but never release up
  12. # key -> Type the following keys, pressing each key
  13. # key down -> Press the following keys down, never releasing them
  14. # mirror -> When the mirror key is pressed down so is key or button, on release so are key or button
  15. # See also example_mirror.toml
  16. kind = 'key'
  17. # Type this
  18. # This is required for 'key' and 'key down' kinds (Optional for 'mirror')
  19. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  20. # This example will write 'Hello World!'
  21. write = 'shift+h, e, l, l, o, space, shift+w, o, r, l, d, shift+1'
  22. # If this should repeat X number of ticks
  23. # This is a simple example, it won't use this
  24. # Assuming tick speed is 20ms, this would occur every second
  25. #duration = 50
  26. # Use this mouse button
  27. # This is a simple example, it won't use this
  28. # This is required for 'click' and 'click down' kinds (Optional for 'mirror')
  29. # There currently is 'left' or 'right'
  30. #button = 'left'
  31. # Mirror key
  32. # This is a simple example, it won't use this
  33. # This is the key whose state will be mirrored
  34. # See also example_mirror.toml
  35. #
  36. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  37. # This example will press 'g' when 'h' is down, and release 'g' when 'h' is up
  38. #mirror = 'g'
  39. # Optional Overrides
  40. # Override delay between each keys
  41. # Value in milliseconds
  42. delay = 50
  43. # Override hold delay for each key
  44. # Keys are sent like below:
  45. # 1. key down
  46. # 2. hold delay
  47. # 3. key up
  48. # 4. hold delay
  49. # 5. delay (see above)
  50. # 6. Repeat for keys
  51. # Value in milliseconds
  52. hold = 20