config: swaybar

This commit is contained in:
Felipe M 2021-03-12 11:12:49 +01:00
parent a8bfc00799
commit c057b4547a
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 5 additions and 2 deletions

View File

@ -33,8 +33,11 @@ function getNextEvent() {
khal list now -df "" | grep -v "^ " | head -n 1
}
function getCurrentSong() {
echo $(playerctl metadata artist) - $(playerctl metadata title)
}
while [ True ]; do
echo "$(getNextEvent) | $(getVolume) | $(getPowerValue)$(getPowerStatus) | $(getDate)"
echo "$(getCurrentSong) | $(getNextEvent) | $(getVolume) | $(getPowerValue)$(getPowerStatus) | $(getDate)"
sleep 30
done