extended statusbar by available update counter

master
_N0x 1 year ago
parent 8e98ab2db9
commit 059d57db1f

@ -68,8 +68,14 @@ song() {
printf "^b#8FBCBB^^c#2E3440^ %s ^d^ %s - %s" "$icon" "$artist" "$song"
}
updates() {
updates=$(checkupdates | wc -l)
icon=""
printf "^b#8FBCBB^^c#2E3440^ %s ^d^ %s" "$icon" "$updates"
}
while true; do
xsetroot -name " $(cpu) $(memory) $(networkspeed) $(networkinfo) $(disk) $(song) $(datetime) "
xsetroot -name " $(cpu) $(memory) $(networkspeed) $(networkinfo) $(disk) $(updates) $(song) $(datetime) "
sleep 8
done

Loading…
Cancel
Save