parent
ddbe02a9e2
commit
88cd0b90f0
3 changed files with 21 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
#!/bin/sh |
||||||
|
# Requires playerctl: http://dubstepdish.com/blog/2014/04/19/introducing-playerctl/ |
||||||
|
# Useful when bound to a global Hotkey |
||||||
|
|
||||||
|
SongsFile="${1-$HOME/Documents/Songs.text}" |
||||||
|
|
||||||
|
Artist="$(playerctl metadata artist)" |
||||||
|
Title="$(playerctl metadata title)" |
||||||
|
|
||||||
|
|
||||||
|
echo "$Artist -- $Title" >>$SongsFile |
||||||
|
|
||||||
|
test -t 1 && Notify=echo || Notify=notify-send |
||||||
|
$Notify "Remembered ´$Title´ by ´$Artist´ in ${SongsFile##*/}" |
Loading…
Reference in new issue