[zsh/vim/irssi/...] My home files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
391B

  1. #!/bin/sh
  2. STATE=$(mocp --format "%state")
  3. MOC="$(mocp --format="%t - %a (%ct/%tt)")"
  4. case $STATE in
  5. "PLAY")
  6. COLOR='#00AA00'
  7. STATUS="▶"
  8. ;;
  9. "PAUSE")
  10. COLOR='#AAAA00'
  11. STATUS="⏸"
  12. ;;
  13. *)
  14. MOC="Not playing"
  15. COLOR='#AA0000'
  16. STATUS=""
  17. ;;
  18. esac
  19. echo "${STATUS} ${MOC}"
  20. echo "${STATUS} ${MOC}"
  21. echo "$COLOR"