View difference between Paste ID: gWie2TJq and PCtJfAgv
SHOW: | | - or go back to the newest paste.
1
#!/usr/bin/ruby
2
3
trigger = ARGV.shift
4
5
if trigger == 'songstart'
6
  songinfo = {}
7
8
  STDIN.each_line { |line| songinfo.store(*line.chomp.split('=', 2))}
9-
  `growlnotify -t "Now Playing" -m "#{songinfo['title']}\nby #{songinfo['artist']}"`
9+
  `osascript -e 'display notification "#{songinfo['title']}" with title "#{songinfo['artist']}"'`
10
end