dotfiles/de/home/.local/bin/uptime-check
2025-08-23 17:45:01 -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