While playing with my collection of Tint2 executors what I hated most was that commands assigned to mouse events would execute again and again after each click, even if previous instances were already running. I expected them to launch the command if not yet running, or just bring focus to the command window. Having no better idea on how to achieve this, I wrote a short script, which searches the process ID of the name given and tries to find a window by the process ID. If found, it’ll be given focus, instead of running the command again.

Learn more here and/or install the rof-git package from AUR.