From 88767e1741328e098c932090f5edabfde82c40a9 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 7 May 2023 20:03:10 -0400 Subject: [PATCH] Polybar Media Module Update - Remove extra unused echo command - Add icon for YouTube TV --- README.org | 4 ++-- polybar/scripts/get-media-source-icon.sh | 2 ++ polybar/scripts/get-media-status-icon.sh | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index b7a5a8d..e9385b5 100644 --- a/README.org +++ b/README.org @@ -6328,6 +6328,8 @@ else echo "󰠩" elif grep -q -i "prime video" <<< "$title"; then echo "" + elif grep -q -i "youtube tv" <<< "$title"; then + echo "󰑈" elif grep -q -i "chromium" <<< "$trackid"; then echo "" elif grep -q -i "vlc" <<< "$trackid"; then @@ -6351,8 +6353,6 @@ else elif [[ "$mediaStatus" == "Paused" ]]; then echo "󰐊" fi - - echo $status fi #+END_SRC diff --git a/polybar/scripts/get-media-source-icon.sh b/polybar/scripts/get-media-source-icon.sh index af0b754..3a36a43 100755 --- a/polybar/scripts/get-media-source-icon.sh +++ b/polybar/scripts/get-media-source-icon.sh @@ -13,6 +13,8 @@ else echo "󰠩" elif grep -q -i "prime video" <<< "$title"; then echo "" + elif grep -q -i "youtube tv" <<< "$title"; then + echo "󰑈" elif grep -q -i "chromium" <<< "$trackid"; then echo "" elif grep -q -i "vlc" <<< "$trackid"; then diff --git a/polybar/scripts/get-media-status-icon.sh b/polybar/scripts/get-media-status-icon.sh index c905930..3857591 100755 --- a/polybar/scripts/get-media-status-icon.sh +++ b/polybar/scripts/get-media-status-icon.sh @@ -9,6 +9,4 @@ else elif [[ "$mediaStatus" == "Paused" ]]; then echo "󰐊" fi - - echo $status fi