#!/bin/sh # april 2009 # watch --no-title acpi -VC acpi=true # debian is not ubuntu command -v acpitool && acpi=acpitool command -v acpi >/dev/null && acpi=acpi watch --no-title $acpi -bat # as root: # echo will hibernate in 2 minutes | wall -n # # when # % acpi -b | sed 's/.*\, //' # 02:11:23 remaining # # is less than 7 minutes remaining