Last active
January 27, 2020 13:13
-
-
Save akinozgen/537d5c3f5f6f3910747207314485c8a3 to your computer and use it in GitHub Desktop.
get title and artist from playerctl an join
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "$(playerctl -p spotify metadata | grep xesam: | awk '{ if ($2 == "xesam:title") { print $3; } }') by $(playerctl -p spotify metadata | grep xesam: | awk '{ if ($2 == "xesam:artist") { print $3; } }')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oops, i guess i reinvented the wheel
thats better
https://github.com/polybar/polybar-scripts/blob/master/polybar-scripts/player-mpris-simple/player-mpris-simple.sh