Compare commits
2 commits
f0132c852f
...
9fb860642e
Author | SHA1 | Date | |
---|---|---|---|
|
9fb860642e | ||
|
4d6ade92df |
3 changed files with 1 additions and 19 deletions
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
|
@ -32,7 +32,7 @@ window#waybar {
|
||||||
border-bottom: 3px solid white;
|
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;
|
padding: 0 3px;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
}
|
}
|
||||||
|
@ -86,10 +86,6 @@ window#waybar {
|
||||||
#pulseaudio.muted {
|
#pulseaudio.muted {
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-spotify {
|
|
||||||
color: rgb(102, 220, 105);
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue