Last active
February 16, 2023 10:12
-
-
Save superjojo140/482ea80720ddecd0baa18d684694baed to your computer and use it in GitHub Desktop.
Simple shell script to toggle the application "gammy" by shortcut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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