Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ "$(playerctl status)" = "Playing" ]; then
- title=`exec playerctl metadata xesam:title`
- artist=`exec playerctl metadata xesam:artist`
- ( echo "$title - $artist" | zscroll -n true -l 10 -d 0.1 )
- elif [ "$(playerctl status)" = "Paused" ]; then
- title=`exec playerctl metadata xesam:title`
- artist=`exec playerctl metadata xesam:artist`
- ( echo "(PAUSED) $title - $artist" | zscroll -n true -l 10 -d 0.1 )
- else
- echo ""
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement