config: swaybar
This commit is contained in:
parent
a8bfc00799
commit
c057b4547a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue