Skip to content

Instantly share code, notes, and snippets.

@superjojo140
Last active February 16, 2023 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superjojo140/482ea80720ddecd0baa18d684694baed to your computer and use it in GitHub Desktop.
Save superjojo140/482ea80720ddecd0baa18d684694baed to your computer and use it in GitHub Desktop.
Simple shell script to toggle the application "gammy" by shortcut
#!/bin/bash
SERVICE="gammy"
if pgrep -x "$SERVICE" >/dev/null
then
pkill gammy&
else
gammy&
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment