Re: [dwm] patch for colored status text

From: Neale Pickett <neale_AT_woozle.org>
Date: Thu, 04 Dec 2008 12:03:35 -0700

Jeremy Jay <dinkumator_AT_gmail.com> writes:

> Hope someone else finds this handy, I let my battery die one too many
> times because I never noticed how low it was...

I had this problem too. My solution was this in my status script:

            battery_pct=$(get_charge)
            if [ $battery_pct -eq 10 ]; then
                xmessage "Better go find some juice, hoss."
            elif [ $battery_pct -lt 5 ]; then
                power Hibernate
            fi

Haven't run the battery down since.

Cool patch though.

Neale
Received on Thu Dec 04 2008 - 19:03:35 UTC

This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 19:12:04 UTC