From 8b6a9807f954bc373df5c11fdbdfe1792cacb5f4 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 10 Mar 2021 16:23:23 +0000 Subject: (Scripts)~change music scripts to use playerctl instead --- Scripts/.local/scripts/status/music | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Scripts/.local/scripts/status/music') diff --git a/Scripts/.local/scripts/status/music b/Scripts/.local/scripts/status/music index 8231c04..b7233d9 100755 --- a/Scripts/.local/scripts/status/music +++ b/Scripts/.local/scripts/status/music @@ -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)" -- cgit v1.2.3-13-gbd6f