diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-10 16:23:23 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-10 16:23:23 +0000 |
commit | 8b6a9807f954bc373df5c11fdbdfe1792cacb5f4 (patch) | |
tree | 5f3f6a29ffa6d875f38772f0bf09356b1989f8b0 /Scripts/.local/scripts/status/music | |
parent | 68498dd7c5fb29b940005ddf6259ab34ec6e4b9f (diff) | |
download | dotfiles-8b6a9807f954bc373df5c11fdbdfe1792cacb5f4.tar.gz dotfiles-8b6a9807f954bc373df5c11fdbdfe1792cacb5f4.tar.bz2 dotfiles-8b6a9807f954bc373df5c11fdbdfe1792cacb5f4.zip |
(Scripts)~change music scripts to use playerctl instead
Diffstat (limited to 'Scripts/.local/scripts/status/music')
-rwxr-xr-x | Scripts/.local/scripts/status/music | 11 |
1 files changed, 2 insertions, 9 deletions
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)" |