extended statusbar by available update counter

This commit is contained in:
_N0x 2023-02-04 00:28:09 +01:00
parent 8e98ab2db9
commit 059d57db1f

View File

@ -68,8 +68,14 @@ song() {
printf "^b#8FBCBB^^c#2E3440^ %s ^d^ %s - %s" "$icon" "$artist" "$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 while true; do
xsetroot -name " $(cpu) $(memory) $(networkspeed) $(networkinfo) $(disk) $(song) $(datetime) " xsetroot -name " $(cpu) $(memory) $(networkspeed) $(networkinfo) $(disk) $(updates) $(song) $(datetime) "
sleep 8 sleep 8
done done