1
mirror of git://git.acid.vegas/random.git synced 2024-12-04 21:46:40 +00:00
random/cmus-now

6 lines
329 B
Bash
Executable File

#!/bin/sh
if ps -C cmus > /dev/null; then
artist=`cmus-remote -Q | grep --text '^tag artist' | sed '/^tag artistsort/d' | awk '{gsub("tag artist ", "");print}'`
title=`cmus-remote -Q | grep --text '^tag title' | sed -e 's/tag title //' | awk '{gsub("tag title ", "");print}'`
notify-send "Now Playing: $artist - $title"
fi