This solution seems to work great (part of my .xinitrc):
while true; do
# Set root title
sh $HOMEDIR/.xsetroot
# Check battery level
BATT=$( acpi -b | sed 's/.*[charging|unknown],
\([0-9]*\)%.*/\1/gi' )
if [ $BATT -le 5 ]; then
A progress bar?
When I suspend my laptop using "acpitool -s", it takes about 2
seconds. No time for a progressbar.
Danilo
On Thu, Jan 27, 2011 at 1:47 AM, Rob wrote:
> I prefer tux on ice, I get a nice progress bar and the ability to
> cancel hibernation.
On Wed, Jan 26, 2011 at 11:51 PM, Jakub Lach wrote:
> ...in my laptop noisy buzzer kicks
> in before battery is fully depleted,
> are your sure that is not the case
> with yours?
It does sometimes. It certainly did when I ran out of battery while
using Windows, and if i'm not mistaken, it already
Hi
On Wed, Jan 26, 2011 at 11:21 PM, Peter John Hartman
wrote:
> acpid
Thanks for your answer. acpid is a good idea, as it also works when
dwm hasn't been started. But it only solves the problem of detecting
low battery, not of the way of alarming. In your script, you're
directly suspending your
Hey list
I need some kind of alarm system in dwm, as my laptop has already
turned off several times due to running out of battery.
I thought of different possibilities. Maybe some kind of popup that is
displayed on every tag. Or letting the blue window title area blink
red. In combination with so
2011/1/20 Kurt H Maier :
> pm-suspend
acpitool also supports suspending.
> -s, --suspend suspend to memory (sleep state S3), if supported
> -S suspend to disk (sleep state S4), if supported
> What's the point of it being in Python? It's several times the size of
> bloated bash! We are trying to make things suck less here, not more.
Reading Python sucks a lot less than reading bloated non-modular Bash
:) But that's a matter of opinion.
Cheers
Hey Kai
On Sun, Jan 9, 2011 at 11:36 PM, Kai Hendry wrote:
> http://greptweet.com/ -- Uses grep for searching retrieved tweets
That's a pretty awesome idea. Thanks a lot :) But the UI should be
improved, to prevent questions like "what does this webapp do?" or
"how do I get my tweets after the p
Hello all
In case anyone is interested: I've added logging capabilities to
Slock. The patch is attached. It will enable logging of all locks,
unlocks and failed unlock attempts to ~/.slock.log, if compiled with
the ENABLE_LOGGING flag.
--Danilo
diff -up /tmp/slock-0.9/config.mk slock-0.9/config.m