Created
April 11, 2015 15:04
-
-
Save QuietMisdreavus/5bcfb86276417c900060 to your computer and use it in GitHub Desktop.
cmus status display program to start cmusfm if the server process is not already running
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/sh | |
| pidof cmusfm > /dev/null | |
| if [ $? -ne 0 ]; then | |
| cmusfm status stopped & | |
| fi | |
| cmusfm "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment