ncmpcpp: Fix desktop notifications

Now they work even if they start with - (and are not interpteted as an
option to notify-send).
home-manager
Simon Bruder 2020-08-28 23:12:38 +02:00
parent 5ca0c1147f
commit eb7005f200
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 1 additions and 1 deletions

View File

@ -20,4 +20,4 @@ seek_time = 5
user_interface = alternative
# Desktop notification on song change
execute_on_song_change = notify-send -t 5000 "Now Playing" "$(mpc --format '%title% \n%artist% %album%' current)" -i "$(dirname $HOME/Music/"$(mpc --format %file% current)")/cover.jpg"
execute_on_song_change = notify-send -t 5000 -i "$(dirname $HOME/Music/"$(mpc --format %file% current)")/cover.jpg" "Now Playing" -- "$(mpc --format '%title% \n%artist% %album%' current)"