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.

bansheecheck.sh 467B

123456789101112131415161718
  1. #!/bin/bash
  2. currentTrack="Calexil is listening to $title by $artist on $album"
  3. while :
  4. do
  5. title=$(banshee --query-title | sed 's/title: //')
  6. artist=$(banshee --query-artist | sed 's/artist: //')
  7. album=$(banshee --query-album | sed 's/album: //')
  8. echo "Calexil is listening to $title by $artist on $album"
  9. sleep 6
  10. if $currentTrack == $currentTrack
  11. then
  12. sleep 5
  13. else
  14. wget $currentTrack 'https://bansheebot.herokuapp.com/endpoint'
  15. fi
  16. done