dotfiles/.config/polybar/scripts/uptime.sh

3 lines
142 B
Bash
Raw Normal View History

2021-07-11 15:51:11 +02:00
#!/bin/sh
notify-send -u low "$(awk '{print "Uptime: " int($1/3600)" Hours "int(($1%3600)/60)" minutes "int($1%60)" seconds"}' /proc/uptime)"