Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

man page: execute multiple commands with one hotkey is actually possible. #24

Open
kokoko3k opened this issue Dec 6, 2021 · 2 comments

Comments

@kokoko3k
Copy link

kokoko3k commented Dec 6, 2021

I've been struggling to undesrstand why i wasn't able to use write-events and grab-devices in place of grab.

The reason was I was using hotkey add twice with the same hotkey and netevent didn't processed the second one.
hotkey add DEVICE_NAME EVENT_X "COMMAND_1"
hotkey add DEVICE_NAME EVENT_X "COMMAND_2"

Then i realized that i could do something like:
hotkey add DEVICE_NAME EVENT_X "COMMAND_1 ; [..] ; COMMAND_N"

manpage didn't mention that :)

@Blub
Copy link
Owner

Blub commented Dec 6, 2021

Yeah, the examples also show using \;.
That should probably be in the manpage. (It also refers to "examples above", which is not actually true in the manpage, so that needs fixing as well.)

I suppose there could be an extended EXAMPLES section in the manpage, actually.
Also because it's useful for more than just sharing devices sometimes....
My current main use case (since I rarely have multiple devices next to each other currently), is working around flaky usb connections on a game pad, when games can't reconnect to the controller when it disconnects for a short second... the games use the cloned device and I let systemd start & stop the daemon together with the physical device, so if the connection drops, the games don't even notice it :-D

@kokoko3k
Copy link
Author

kokoko3k commented Dec 6, 2021

My current main use case (since I rarely have multiple devices next to each other currently), is working around flaky usb connections on a game pad, when games can't reconnect to the controller when it disconnects for a short second... the games use the cloned device and I let systemd start & stop the daemon together with the physical device, so if the connection drops, the games don't even notice it :-D

AH! Nice one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants