Blub / netevent

Input-Event device cloning utility. Use it together with ssh/netcat/... to share input devices among different machines.
GNU General Public License v2.0
148 stars 14 forks source link

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

Open kokoko3k opened 2 years ago

kokoko3k commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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!