dots/configs/home/config/polybar/old/scripts/uptime.sh
2022-04-03 01:11:04 +02:00

3 lines
177 B
Bash

#!/bin/sh
echo "ﰌ `uptime --pretty | sed 's/up //' | sed 's/\ years\?,/y/' | sed 's/\ weeks\?,/w/' | sed 's/\ days\?,/d/' | sed 's/\ hours\?,\?/h/' | sed 's/\ minutes\?/m/'`"