netevent icon indicating copy to clipboard operation
netevent copied to clipboard

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

Open kokoko3k opened this issue 2 years ago • 2 comments

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 :)

kokoko3k avatar Dec 06 '21 09:12 kokoko3k

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

Blub avatar Dec 06 '21 12:12 Blub

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!

kokoko3k avatar Dec 06 '21 12:12 kokoko3k