SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#5751 2013-07-17 15:47:18

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

dk75 wrote:

Since lm-sensors give you battery status at desktop, then it is for BIOS battery not for power supply one.

Perfect, thank you kindly.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#5752 2013-07-17 15:49:17

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

lionhead wrote:

@Sector11

this is my output:

alexander@netbook:~$ upower -d -i /org/freedesktop/UPower/devices/battery_BAT1
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ADP1
  power supply:         yes
  updated:              Wed Jul 17 17:04:21 2013 (111 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0f/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor:               SAMSUNG Electronics
  power supply:         yes
  updated:              Wed Jul 17 17:05:58 2013 (14 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              29.808 Wh
    energy-empty:        0 Wh
    energy-full:         43.2 Wh
    energy-full-design:  47.52 Wh
    energy-rate:         10.3464 W
    voltage:             11.344 V
    time to empty:       2.9 hours
    percentage:          69%
    capacity:            90.9091%
    technology:          lithium-ion
  History (charge):
    1374073523	69.000	discharging
    1374073523	0.000	unknown
    1374073521	69.000	discharging
    1374073461	70.000	discharging
    1374073461	0.000	unknown
  History (rate):
    1374073558	10.346	discharging
    1374073525	12.042	discharging
    1374073523	0.302	discharging
    1374073523	0.000	unknown
    1374073521	0.302	discharging
    1374073477	10.498	discharging
    1374073465	12.409	discharging
    1374073461	12.193	discharging
    1374073461	0.000	unknown

Daemon:
  daemon-version:  0.9.17
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no

Perfect ... thanks for showing that.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5753 2013-07-17 16:36:29

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

no problem, just ask ...

Offline

#5754 2013-07-17 17:19:52

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Conky v1.9 Thread

Does anybody have ConkySymbols 0.2 in your dropbox-folder or something? It doesn`t seem to be on devianart anymore.


- apt-mark hold account

Offline

#5755 2013-07-17 18:01:06

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5756 2013-07-17 18:44:18

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

lionhead wrote:

it works, but it misses something if i want to display it:

${execi 10 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep state | awk '{print $2}'}

is it possible to display something when the battery isn't plugged in (as example: n/a).

with the option if_match?

Do you mean if the battery is removed? You should be able to use that command on the "present" line in your output instead of "state". You'll need to code it so it doesn't pick up the "lid-is-present" line.

And you should be able to do it with just awk - be more efficient.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5757 2013-07-17 19:23:17

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

this would be better! i need to show something when the battery is removed.

this would look better then just an empty space smile

Offline

#5758 2013-07-17 20:11:35

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

lionhead wrote:

this would be better! i need to show something when the battery is removed.

this would look better then just an empty space smile

I just tried this on my HP laptop. The output from upower changes when there is no battery. Many lines are missing including the battery section that includes the "present" line.

What is your output from:

upower -d -i /org/freedesktop/UPower/devices/battery_BAT1

when your battery is removed?


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5759 2013-07-17 22:26:30

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Conky v1.9 Thread

VastOne wrote:

Unfortunately not. The download redirects to gnome-look.org, and from there it redirects to an empty page on deviantart...


- apt-mark hold account

Offline

#5760 2013-07-17 22:34:27

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ Aye... all links seem to be on that same path.  I have checked and I do not have them

Good luck


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5761 2013-07-17 22:49:07

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Conky v1.9 Thread

VastOne wrote:

^ Aye... all links seem to be on that same path.  I have checked and I do not have them

Good luck

Well, someones got to have it. I thought I had them in my dropbox, but I`ve probably lost them a while ago when I  tried to get a little structur in my Dropbox. Turns out that I have Computerfont and Neuropol, but not Conky-Symbols. Well, if I don`t find them I will have to find another solution. Perhaps I can use 0.1, but not with the code I`m having now. It gives me only a colored square, but no symbol...

Maybe I`ll have to make my own symbols:)

Last edited by ew (2013-07-17 22:49:30)


- apt-mark hold account

Offline

#5762 2013-07-19 04:20:54

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

lionhead wrote:

it works, but it misses something if i want to display it:

${execi 10 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep state | awk '{print $2}'}

is it possible to display something when the battery isn't plugged in (as example: n/a).

with the option if_match?

In output of upower -d -i /org/freedesktop/UPower/devices/battery_BAT1, the "on-battery:" line in "Deamon:" section indicates if battery is plugged (yes) ot not (no).

A line like this :

upower -d -i /org/freedesktop/UPower/devices/battery_BAT1 | grep '\(state\|on-battery\)' | awk '{print $2}'

return :

upower -d -i /org/freedesktop/UPower/devices/battery_BAT1 | grep '\(state\|on-battery\)' | awk '{print $2}'
charging
no

Last edited by chepioq (2013-07-19 04:30:58)

Offline

#5763 2013-07-19 13:30:24

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

grep and awk in same line?

upower -d -i /org/freedesktop/UPower/devices/battery_BAT0 | mawk '/present/ {present=$2} /percentage/ {percent=$2} /state/ {state=$2} /on-battery/ {battery=$2} /on-low-battery/ {alarm=$2} END{if ( present=="yes" ) { print ""; if ( alarm != "no" ) print "ALARM! Low battery"; printf "On battery:\t%s\nState:\t\t%s\nPercentage:\t%d\n", battery, state, percent } else print "No battery present"; print "" }'

Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#5764 2013-07-19 16:20:15

samdraz
#! CrunchBanger
From: Earth
Registered: 2013-03-10
Posts: 233
Website

Re: Conky v1.9 Thread

after executing

upower -d

it shows

Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ADP1
  power supply:         yes
  updated:              Sat Jul 20 00:24:51 2013 (-9495 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1
  vendor:               LION
  serial:               SR Real Battery
  power supply:         yes
  updated:              Fri Jul 19 21:46:14 2013 (22 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              0.7 Wh
    energy-empty:        0 Wh
    energy-full:         5.2 Wh
    energy-full-design:  0.001 Wh
    energy-rate:         1.304 W
    voltage:             10.479 V
    time to empty:       32.2 minutes
    percentage:          13.4615%
    capacity:            100%
  History (charge):
    1374250574	13.462	discharging
    1374260127	77.885	discharging
    1374260093	78.846	discharging
    1374260091	0.000	unknown
  History (rate):
    1374250574	1.304	discharging
    1374250544	1.253	discharging
    1374250512	1.013	discharging
    1374260127	1.147	discharging
    1374260095	2.350	discharging
    1374260093	2.361	discharging
    1374260091	0.000	unknown

Daemon:
  daemon-version:  0.9.20
  can-suspend:     yes
  can-hibernate:   yes
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no

NOTE energy full value.
Its no way the value to be 5.2Wh(mine 60wh battery)
any idea why it is showing incorrect value

Offline

#5765 2013-07-20 08:05:59

elChupaNibre
Member
From: Melbourne
Registered: 2009-08-14
Posts: 45

Re: Conky v1.9 Thread

Hi conky guru's,

How can I increase the length of my conky. As you can see in the image it cuts off at the bottom.

2cqfo0o.png

Thanks  big_smile

edit: Never mind, I've fixed it.  smile

Last edited by elChupaNibre (2013-07-20 08:51:32)

Offline

#5766 2013-07-20 13:52:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

elChupaNibre wrote:

Hi conky guru's,

How can I increase the length of my conky. As you can see in the image it cuts off at the bottom.

http://i43.tinypic.com/2cqfo0o.png

Thanks  big_smile

edit: Never mind, I've fixed it.  smile

Share how, please.   cool

Last edited by Sector11 (2013-07-20 13:52:37)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5767 2013-07-20 15:22:10

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

Usually "max_user_text" and "text_user_size" configs.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#5768 2013-07-20 16:05:05

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: Conky v1.9 Thread

Ok, question:

I need to display the calendar vertically, on a 2 week spread. Like this:

      2013
Sun      14  28
Mon  01  15  29
Tue  02  16  30
Wed  03  17  31
Thu  04  18
Fri  05  19
Sat  06  20
Sun  07  21
Mon  08  22
Tue  09  23
Wed  10  24
Thu  11  25
Fri  12  26
Sat  13  27
       Jun

With the current date highlighted.
Can it be done?

Offline

#5769 2013-07-20 18:36:55

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

dk75 wrote:

Usually "max_user_text" and "text_user_size" configs.

max_specials
I don't see anything in that conky that would requite anything beyond the normal defaults that why I asked.
May be wrong though ... it happens, I ain't no O:)

max_user_text     defaults to 16384 bytes that more than enough for a conky running down the side.

Maybe you mean: max_specials (?) - which defaults to 512 per command - unless 'scripts' are used that's rarely used beyond the 512 default as well.

I was just curious as to what the fix was.

@ Inodoro Pereyra - dollars to donuts a script could do that but ... not my strength.   sad
Looks neat ... get it and I'll play with it too.   8o

Last edited by Sector11 (2013-07-20 18:37:54)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5770 2013-07-21 17:22:37

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ What shouldn't?  Are you using Conky?  Can you name the conky variable that sets the WM_CLASS?


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5771 2013-07-21 17:29:01

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Conky v1.9 Thread

^ Disregard, VastOne; from its intro, I'm fairly sure that came from a spambot.

Offline

#5772 2013-07-21 17:31:32

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

Aye, that was the purpose of the WM_CLASS question...

Thanks


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5773 2013-07-21 22:17:01

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Don't know what that person was talking about but "Desktop Info - Conky for Windows", written by Glenn Delahoy, is a conky like program for Windows.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5774 2013-07-21 22:18:21

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ It is a Bot, determined from additional information as pvsage said


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

Be excellent to each other!

#5775 2013-07-21 22:39:10

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Any crap shooters in the house!

Dice that tell time ... If the hours are black - PM - white is AM
Dice_clock.jpg
Sitting in the lower left corner on my screen.  Cut and paste in no particular order.

CPU Usage: 0-1% and uses 28 images.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo