Nerd Fonts v3 Update Icon Fix

- Fix nerd font icons for v3
This commit is contained in:
Sravan Balaji
2023-05-01 08:56:59 -04:00
parent dfb0318727
commit 34d674a3f8
6 changed files with 42 additions and 43 deletions

View File

@ -2,24 +2,24 @@
mediaStatus=$(playerctl --player=playerctld metadata 2>&1)
if [[ "$mediaStatus" == "No player could handle this command" ]]; then
echo ""
echo "󰡀"
else
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}')
if grep -q -i "netflix" <<< "$title"; then
echo ""
echo "󰝆"
elif grep -q -i "hulu" <<< "$title"; then
echo ""
echo "󰠩"
elif grep -q -i "prime video" <<< "$title"; then
echo ""
echo ""
elif grep -q -i "chromium" <<< "$trackid"; then
echo ""
elif grep -q -i "vlc" <<< "$trackid"; then
echo ""
echo "󰕼"
elif grep -q -i "spotify" <<< "$trackid"; then
echo ""
else
echo ""
echo "󰡀"
fi
fi