Compare commits

..

2 commits

Author SHA1 Message Date
Hippolyte Chauvin
9fb860642e Ajout du marges sur le titre 2023-04-23 18:25:54 +02:00
Hippolyte Chauvin
4d6ade92df Suppression de l'intégration Spotify 2023-04-23 18:23:37 +02:00
3 changed files with 1 additions and 19 deletions

View file

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

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

View file

@ -32,7 +32,7 @@ window#waybar {
border-bottom: 3px solid white;
}
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode {
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #window {
padding: 0 3px;
margin: 0 2px;
}
@ -86,10 +86,6 @@ window#waybar {
#pulseaudio.muted {
}
#custom-spotify {
color: rgb(102, 220, 105);
}
#tray {
}