A shell script which displays the output of uptime --pretty in a minimal fashion:
uptime --pretty
2d 1h 35m
[module/system-uptime-pretty] type = custom/script exec = ~/polybar-scripts/system-uptime-pretty.sh interval = 30