summaryrefslogtreecommitdiff
path: root/.config/waybar/modules/spotify.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar/modules/spotify.sh')
-rwxr-xr-x.config/waybar/modules/spotify.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/.config/waybar/modules/spotify.sh b/.config/waybar/modules/spotify.sh
deleted file mode 100755
index 1d13620..0000000
--- a/.config/waybar/modules/spotify.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-class=$(playerctl metadata --player=spotify --format '{{lc(status)}}')
-icon=""
-
-if [[ $class == "playing" ]]; then
- info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}')
- if [[ ${#info} > 40 ]]; then
- info=$(echo $info | cut -c1-40)"..."
- fi
- text=$info" "$icon
-elif [[ $class == "paused" ]]; then
- text=$icon
-elif [[ $class == "stopped" ]]; then
- text=""
-fi
-
-echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}"
-