You are not logged in.
Hi guys,
I am most likely to blame for something (I always am) but anyways: conky's battery_bar etc. did not work for me. So I googled and found references to at proc file i could concatenate. However, I don't have a battery file in my /proc dir, so this I what I did instead:
Remaining: ${execi 60 acpi -b | awk '{print$5}'} ${alignr} (${execi 60 acpi -b | awk '{print $4}' | cut -b -3}) Extremely simple - but since I could find the solution to the problem I had, maybe this will help someone.
Good day
Andreas
Offline
hmm, all i see is a line "remaining" a space and then two brackets close to each other.. but I just copied your line over and am probably to blame for something, too..
Last edited by saneks (2011-04-13 09:08:56)
eee701 user & other lap/desktops
Offline
what happens if you call
acpi -bin terminal? You should get something like:
Battery 0: Discharging, 100%, 04:35:22 remainingThe above commands works then takes that output, and feeds it to awk, which then takes the 5th field (the time). The same thing is happening with the next command, only I now take the fourth field (remaining percent). (I use cut to only show 3 charachters)
If you dont have acpi - then maybe install it?
Offline
I'm not sure if it's because it's Statler or not, but I get no response from:
acpi -bother than:
bash: acpi: command not found
Fortune favors the bold.
#! WALDORF (just converted)
Asus EEEPC 1001PXD
2GB RAM
Offline
sudo aptitude install acpi
Ha ezt el tudod olvasni, biztosan nem vagy rövidlátó.
Offline
Ah, thanks for the install tip. I was apt-getting but getting nowhere (still fairly new).
Here's what I get from:
/etc/pm/power.d$ acpi -b
Battery 0: Full, 100%That's when it's plugged in.
And here's with it unplugged...
Battery 0: Discharging, 100%, 03:10:13 remainingSo that works. But the 'remaining' line in my conky just has (100) in it with no time code...
Last edited by typewriterjason (2011-08-30 07:03:47)
Fortune favors the bold.
#! WALDORF (just converted)
Asus EEEPC 1001PXD
2GB RAM
Offline
Post your issue in the "Monthly Conky" forums, you get an answer at once 
http://crunchbanglinux.org/forums/topic … ky-thread/
Offline
you could of just done:
Battery:$alignr ${battery_percent BAT1}%i dont have a battery file in there either 
As a programmer i often ask myself could i get out of taking spanish in school because i know two languages Python and lua
Offline
never mind that would only give you the percent not the time as well
As a programmer i often ask myself could i get out of taking spanish in school because i know two languages Python and lua
Offline
Welcome to #! CrunchyLinux -- this thread is almost a year old and the OP hasn't posted since last September.
If you post a short introduction in the Introductions section we can welcome you properly.
Want Waldorf, but with sid and systemd? Try Darkside.
Offline
hehe i know i just thought id give some things i found out it maybe old but im sure some one out there is having a problem similar to this also just posted my intro
As a programmer i often ask myself could i get out of taking spanish in school because i know two languages Python and lua
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.