- run an app if not running
- focus it if already running
Combined with GNOME keyboard shortcuts, that means you're always one keypress away from your beloved firefox/gedit/terminal/<insert-your-favorite-app-here>. Awesome.
It's called marathon, 'coz it's a smart runner, and it's on GitHub. Depends on wmctrl and has a few quirks, read the README.
Byproduct of this mini-project, a handy ffmpeg one-liner to crop and trim a video:
ffmpeg -i in.webm -ss 00:00:04.10 -t 9.5 -vf crop=960:540:0:0 out.webm