The Following 2 Users Say Thank You to fnordianslip For This Useful Post: | ||
![]() |
2009-12-31
, 16:28
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#42
|
![]() |
2010-01-01
, 00:04
|
Posts: 233 |
Thanked: 170 times |
Joined on Nov 2009
@ Finland
|
#43
|
This displays the string "Charging!" if the battery is being charged (and not just connected to the PC/Power together wit the percentage and a bar. (see screenshot)
The information is updated every 30 sec to save CPU-Cycles.
![]() |
2010-01-04
, 08:39
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#44
|
First of all: Thank you fnordianslip and rcull for your wonderful work here.
Of yourse you can see the Information on the status bar. But unfortunatly it is not very acurate (with just 8 Bars)
And Jaysire is using a second script and a temporary file to update the info.
Before finding this thread I thought about a similar solution. I just added
to my config, just underneath the SWAP-Info.Code:${color yellow}Battery:$color ${goto 110}${color red}${execi 30 if [ "`hal-device bme |grep "is_charging\|is_discharging" |awk '{print $3;}' |sed -e :a -e '$!N;s/\n/ /;ta'`" = "false true" ]; then echo "Charging!"; fi}$color${goto 310}${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'}%${goto 350}${color green}${execibar 30 hal-device bme |grep "percentage" |awk '{print $3;}'} .
This displays the string "Charging!" if the battery is being charged (and not just connected to the PC/Power together wit the percentage and a bar. (see screenshot)
The information is updated every 30 sec to save CPU-Cycles.
The only thing I miss is the option "default_bar_size" which is not available in the current build. With this option the bar would be the right size.
Have fun!
${color lightgrey}Name PID CPU% MEM% ${goto 380}${color yellow}Battery: ${execi 60 hal-device | grep percen | awk '{print $3"%"}'} ${color #ff6000} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${goto 380}${color green}${execibar 60 hal-device bme |grep "percentage" |awk '{print $3;}'}
![]() |
2010-01-12
, 17:09
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#45
|
![]() |
2010-01-17
, 23:54
|
Posts: 94 |
Thanked: 27 times |
Joined on Dec 2009
|
#46
|
![]() |
2010-01-18
, 00:03
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#47
|
Just a question about conky as I was trying to figure out if my wifi remained connected even after I'd already disconnected (wifi bug); will the "wlan0" field show a connection even after wifi has been disconnected?
The Following User Says Thank You to fnordianslip For This Useful Post: | ||
![]() |
2010-01-18
, 20:13
|
Posts: 94 |
Thanked: 27 times |
Joined on Dec 2009
|
#48
|
![]() |
2010-01-18
, 20:17
|
|
Posts: 373 |
Thanked: 40 times |
Joined on Nov 2009
@ Norwich
|
#49
|
The Following User Says Thank You to NotTheMessiah For This Useful Post: | ||
![]() |
2010-01-18
, 20:35
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#50
|
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.