diff --git a/config/waybar-sway/config b/config/waybar-sway/config index 1bc72c9..e0feaa5 100644 --- a/config/waybar-sway/config +++ b/config/waybar-sway/config @@ -73,12 +73,5 @@ }, "on-click": "pavucontrol" }, - "custom/spotify": { - "format": " {}", - "max-length": 40, - "interval": 30, // Remove this if your script is endless and write in loop - "exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder - "exec-if": "pgrep spotify" - } } diff --git a/config/waybar-sway/mediaplayer.sh b/config/waybar-sway/mediaplayer.sh deleted file mode 100755 index 847de29..0000000 --- a/config/waybar-sway/mediaplayer.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -player_status=$(playerctl status 2> /dev/null) -if [ "$player_status" = "Playing" ]; then - echo "$(playerctl metadata artist) - $(playerctl metadata title)" -elif [ "$player_status" = "Paused" ]; then - echo " $(playerctl metadata artist) - $(playerctl metadata title)" -fi