1
0
Fork 0
forked from ahurac/dotfiles

Suppression de l'intégration Spotify

This commit is contained in:
Hippolyte Chauvin 2023-04-23 18:23:37 +02:00
parent f0132c852f
commit 4d6ade92df
2 changed files with 0 additions and 14 deletions

View file

@ -73,12 +73,5 @@
}, },
"on-click": "pavucontrol" "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"
}
} }

View file

@ -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