Created
January 10, 2017 05:59
-
-
Save wikimatze/c4c1a6fa71b226bdddb32e4a1ca58722 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ALBUM_PATH=/$(cmus-remote -Q | grep file | cut -d'/' --complement -s -f1 | rev | cut -d'/' --complement -s -f1 | rev | sed -e 's/\s/\\ /g' | sed -e 's/(/\\(/g' | sed -e 's/)/\\)/g')/cover.jpg | |
| ALBUM_NAME=$(cmus-remote -Q | grep 'tag album' | cut -d'~' --complement -f1) | |
| echo "$ALBUM_PATH" | |
| notify-send -i "$ALBUM_PATH" summary "$ALBUM_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment