Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- trigger = ARGV.shift
- if trigger == 'songstart'
- songinfo = {}
- STDIN.each_line { |line| songinfo.store(*line.chomp.split('=', 2))}
- `osascript -e 'display notification "#{songinfo['title']}" with title "#{songinfo['artist']}"'`
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement