I have a launcher currently on my XFCE panel that I would like to open a window. However, I want to make it only open the window if no other instance is running. If an instance is running, the windows would close upon a press of the launcher. I think that this could be possible with a toggle of the command--if running, close, and if closed, run. How can I achieve this?
You can install and use
Say you want to start
depending on which works for you.
You can then assign a shortcut key to that or use it in a script and make a desktop launcher for that script.