fix eww music icons
This commit is contained in:
parent
6c496f29db
commit
862853176b
@ -17,6 +17,6 @@
|
|||||||
:reveal music_reveal
|
:reveal music_reveal
|
||||||
:duration "350ms"
|
:duration "350ms"
|
||||||
(box
|
(box
|
||||||
(button :class "song-button" :onclick "playerctl previous" "")
|
(button :class "song-button" :onclick "playerctl previous" "⏮")
|
||||||
(button :class "song-button" :onclick "playerctl play-pause" song_status)
|
(button :class "song-button" :onclick "playerctl play-pause" song_status)
|
||||||
(button :class "song-button" :onclick "playerctl next" ""))))))
|
(button :class "song-button" :onclick "playerctl next" "⏭"))))))
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
get_status() {
|
get_status() {
|
||||||
playerctl -F status | while read -r s; do
|
playerctl -F status | while read -r s; do
|
||||||
if [ "$s" = "Playing" ]; then
|
if [ "$s" = "Playing" ]; then
|
||||||
echo ""
|
echo "⏸"
|
||||||
else
|
else
|
||||||
echo ""
|
echo "⏵"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
(centerbox
|
(centerbox
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:class "music-button-box"
|
:class "music-button-box"
|
||||||
(button :class "music-button" :onclick "playerctl previous" "")
|
(button :class "music-button" :onclick "playerctl previous" "⏮")
|
||||||
(button :class "music-button" :onclick "playerctl play-pause" song_status)
|
(button :class "music-button" :onclick "playerctl play-pause" song_status)
|
||||||
(button :class "music-button" :onclick "playerctl next" ""))
|
(button :class "music-button" :onclick "playerctl next" "⏭"))
|
||||||
(box
|
(box
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
(centerbox
|
(centerbox
|
||||||
|
Loading…
Reference in New Issue
Block a user