Add more icons for media playing
- Netflix icon - Hulu icon - Amazon (prime video) icon
This commit is contained in:
@ -6188,8 +6188,15 @@ if [[ "$mediaStatus" == "No player could handle this command" ]]; then
|
|||||||
echo "ﱙ"
|
echo "ﱙ"
|
||||||
else
|
else
|
||||||
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
|
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 ""
|
echo ""
|
||||||
elif grep -q -i "vlc" <<< "$trackid"; then
|
elif grep -q -i "vlc" <<< "$trackid"; then
|
||||||
echo "嗢"
|
echo "嗢"
|
||||||
|
@ -5,8 +5,15 @@ if [[ "$mediaStatus" == "No player could handle this command" ]]; then
|
|||||||
echo "ﱙ"
|
echo "ﱙ"
|
||||||
else
|
else
|
||||||
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
|
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 ""
|
echo ""
|
||||||
elif grep -q -i "vlc" <<< "$trackid"; then
|
elif grep -q -i "vlc" <<< "$trackid"; then
|
||||||
echo "嗢"
|
echo "嗢"
|
||||||
|
Reference in New Issue
Block a user