Add uptime display

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-24 15:04:30 +01:00
parent 4d305c7f12
commit 35a4f8722f
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

3
.config/i3blocks/uptime Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env zsh
printf "\uf2f2 %.1f Days\n" $(($(cut -d ' ' -f 1 </proc/uptime) / 86400.0))