Add more icons for media playing

- Netflix icon
- Hulu icon
- Amazon (prime video) icon
This commit is contained in:
Sravan Balaji
2022-08-07 19:38:24 -04:00
parent de6e519b9a
commit 05175768cc
2 changed files with 16 additions and 2 deletions

View File

@ -5,8 +5,15 @@ if [[ "$mediaStatus" == "No player could handle this command" ]]; then
echo "ﱙ"
else
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}')
if grep -q -i "chromium" <<< "$trackid"; then
if grep -q -i "netflix" <<< "$title"; then
echo "ﱄ"
elif grep -q -i "hulu" <<< "$title"; then
echo "ﴧ"
elif grep -q -i "prime video" <<< "$title"; then
echo ""
elif grep -q -i "chromium" <<< "$trackid"; then
echo ""
elif grep -q -i "vlc" <<< "$trackid"; then
echo "嗢"