(Scripts)~change music scripts to use playerctl instead

This commit is contained in:
2021-03-10 16:23:23 +00:00
parent 68498dd7c5
commit 8b6a9807f9
2 changed files with 7 additions and 13 deletions

View File

@@ -1,10 +1,3 @@
#!/usr/bin/env bash
name="$(mpc -f '%title%' | head -1)"
offline="$(echo $name | grep -E 'volume:|MPD')"
if [[ $offline ]]
then
name="MPD off"
else
name="$name"
fi
echo  $name
echo  "$(playerctl --player=spotify metadata title)"