JSubelj / g910-gkey-macro-support

GKey support for Logitech G910 Keyboard on Linux
GNU General Public License v3.0
99 stars 29 forks source link

Add support for "sleep" in shortcuts #50

Closed stevendesu closed 9 months ago

stevendesu commented 3 years ago

I'm interested in creating a macro that presses a key, waits a few seconds, then presses another key. Reading through the source for the G910 key tool you created it seems like the only way to do this would be to write a small program (possibly using uinput, although I don't have much experience automating input with Linux so that may be overkill if there's a syscall for it) and run that program.

suabo commented 1 year ago

You could create a custom version of the typeout hotkey_type to wait the desired time. But in the core typeout is what you looking for. The time between the key hits is configured very small to get some fast typeouts but you could change that in your version of the driver to fit your needs. Maybe it could help if we know what you are trying to do with it.

suabo commented 9 months ago

Since there is no more response on this topic I close this issue.