Skip to content

Instantly share code, notes, and snippets.

@QuietMisdreavus
Created April 11, 2015 15:04
Show Gist options
  • Select an option

  • Save QuietMisdreavus/5bcfb86276417c900060 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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