dotfiles/graphical/bin/uptime-check
2026-03-20 11:47:19 -07:00

5 lines
151 B
Bash
Executable file

#!/bin/bash
if awk '{ exit ($1 < (72 * 3600)) }' /proc/uptime; then
notify-send "Reboot soon!" "system uptime is $(uptime -p | cut -d ' ' -f2-)"
fi