r-Larch / MouseTrap

A small tool to map the cursor between monitors with different DPIs
MIT License
46 stars 2 forks source link

Add commanline support for reinit #3

Closed KlausJokisuo closed 5 years ago

KlausJokisuo commented 5 years ago

Commandline support for reinit command would be great. Currently if you resume from sleep, you need to do "reinit" from tray bar. It would be easier if we could just add a task to do this and call reinit via commandline.

r-Larch commented 5 years ago

Hello KlausJokinen, it's much more stable now, so it shouldn't be necessary to reinit it anymore. But to be sure I've added the desired command line flag. Use it like:

cmd> mousetrap --reinit

And it will reinit the worker of the currently running instance, and if there is no running instance then it does nothing.

Download version: v1.0.2-beta