summaryrefslogtreecommitdiff
path: root/i3blocks-up.sh
blob: 52791a1b2385530a6b882095e2d3a9de448f7e8a (plain) (blame)
1
2
3
4
5
#!/bin/sh
icon=󰣠

doas freebsd-update updatesready > /dev/null
[ $? -eq 2 ] && printf "$icon%s\n" "$(uptime | grep -o 'up[^,]*')" || printf "%sUpdates are available" $icon