SEARCH

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

You are not logged in.

#5626 2013-07-02 02:51:41

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

Re: Conky v1.9 Thread

@ joshuar9476 --- HI

Desktop or Laptop?

Install lm-sensors and hddtemp if you want your hard drive temp as well:

sudo apt-get install lm-sensors hddtemp

and then run

sudo sensors-detect

answering yes to everything.

Once that is done run

sensors

in a terminal and copy/paste the results here.

Next that funny "Â" - somewhere above TEXT add this line:

override_utf8_locale yes

that should fix that problem.

Using wired ... yes you can show it only when you are using it.  Change that part of your conky to:

${if_up wlan0}WiFi:
${tab}${tab}Strength: ${wireless_link_qual_perc wlan0} ${alignr}Essid: ${wireless_essid wlan0}
${tab}${tab}Download: ${downspeed wlan0}${alignr}Upload: ${upspeed wlan0}${else}${if_up eth0}Wired:
${tab}${tab}Download: ${downspeed eth0}${alignr}Upload: ${upspeed eth0}${endif}

Now it will show WiFi OR Wired, which ever you are using at the time but - not both.

If you need more help we're here.


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

Offline

Be excellent to each other!

#5627 2013-07-02 04:00:26

Copper0
#! CrunchBanger
Registered: 2013-07-02
Posts: 149

Re: Conky v1.9 Thread

Just working on a new install and spent the last while playing with conky.

${iconv_start UTF-8 ISO_8859-1}° ${iconv_stop}C

Also works for  that funny "Â"

This took a little digging to find so I thought I'd share, if any one is using a LGA1150 chipset especially from Asus, they seem to be using the Nuvoton NCT6791D as the Super I/O Controller. which is not being picked up by lm-sensors (sensors-detect will show 'Found unknown chip with ID 0xc803') I found a patch at https://github.com/Andaareed/nct6775.
I have nothing to do with this but it is working for me.

Offline

#5628 2013-07-02 10:21:54

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

jaffar1967 wrote:

And another one... what about displaying the number of desktops with running applications in each of them... Is it possible?  8)

In the "voyager 13.04" dist there is this conky witch display dots for each desktop you are, may-be you can modify it and add running apps on it ?
here's the conky:
ConkyDeskDot:

# Use Xft?
use_xft yes
xftfont Droid Sans:size=25
xftalpha 0.8
text_buffer_size 2048
background no
# Update interval in seconds
update_interval 1
own_window_argb_visual yes
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes
# Default colors and also border colors
# default_color white
# own_window_colour white


# Subtract file system buffers from used memory?
#no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

#position
gap_x 50
gap_y 250
alignment tr
border_inner_margin 5
default_color 555
#default_bar_size 25,25
#color1 E3773C
color1 ADADAD
#color1 141414

TEXT
${if_match ${desktop}==1}${color1}${endif}•${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}•${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}•${color}${offset 10}${if_match ${desktop}==4}${color1}${endif}•${color}
#${if_match ${desktop}==1}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==4}${color1}${endif}${execbar echo 100}${color}
#${if_match ${desktop}==1}${color1}${endif}1${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}2${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}3${color}${offset 10}${if_match ${desktop}==4}${color1}${endif}4${color}

Offline

#5629 2013-07-02 10:53:26

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

Re: Conky v1.9 Thread


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

#5630 2013-07-02 12:32:47

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

Re: Conky v1.9 Thread

Copper0 wrote:

Just working on a new install and spent the last while playing with conky.

${iconv_start UTF-8 ISO_8859-1}° ${iconv_stop}C

Also works for  that funny "Â"

This took a little digging to find so I thought I'd share, if any one is using a LGA1150 chipset especially from Asus, they seem to be using the Nuvoton NCT6791D as the Super I/O Controller. which is not being picked up by lm-sensors (sensors-detect will show 'Found unknown chip with ID 0xc803') I found a patch at https://github.com/Andaareed/nct6775.
I have nothing to do with this but it is working for me.

Nice find!  Thanks for pointing it out. What does your 'sensors' output look like with it?


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

Offline

#5631 2013-07-02 16:25:47

joshuar9476
Member
Registered: 2013-06-23
Posts: 35

Re: Conky v1.9 Thread

Sector11 wrote:

@ joshuar9476 --- HI

Desktop or Laptop?


Once that is done run

sensors

in a terminal and copy/paste the results here.

Laptop AMD

Here's the results. I had already run those sensors before apparently.

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C 

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +47.9°C  (high = +70.0°C)
                       (crit = +115.0°C, hyst = +115.0°C)


Everything else is fixed except the battery and that it takes about 10 seconds to load now. I assume it might be the gmail script. Is there a way to have it run in the background while everything else loads?

NOTIFICATION
${hr}
Gmail: ${execpi 300 python ~/scripts/gmail.py}

Individuality: Always remember that you are unique. Just like everybody else.

Offline

#5632 2013-07-02 16:33:28

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

Re: Conky v1.9 Thread

joshuar9476 wrote:
Sector11 wrote:

@ joshuar9476 --- HI

Desktop or Laptop?


Once that is done run

sensors

in a terminal and copy/paste the results here.

Laptop AMD

Here's the results. I had already run those sensors before apparently.

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C 

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +47.9°C  (high = +70.0°C)
                       (crit = +115.0°C, hyst = +115.0°C)


Everything else is fixed except the battery and that it takes about 10 seconds to load now. I assume it might be the gmail script. Is there a way to have it run in the background while everything else loads?

NOTIFICATION
${hr}
Gmail: ${execpi 300 python ~/scripts/gmail.py}

Battery should not be affected by your gmail script.

Can you show your complete conky please.

Also in a terminal what does

inxi -sx

say?

Last edited by Sector11 (2013-07-02 16:36:12)


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

Offline

#5633 2013-07-02 17:35:29

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 150

Re: Conky v1.9 Thread

New setup. (v9000 on the left for eye-candy purpose only wink )
9191964191_09e5c222b2_m.jpg

The conky is quite trivial. I use the following function to convert days into words.

function num2word(n)
    one_word = { 'First', 'Second', 'Third', 'Fourth', 'Fifth', 'Sixth', 
                'Seventh','Eighth', 'Ninth', 'Tenth', 'Eleventh', 
                'Twelfth', 'Thirteenth', 'Fourteenth', 'Fifteenth', 
                'Sixteenth', 'Seventeenth', 'Eighteenth', 'Nineteenth'     
            }
    tw = {'Ten','Twenty', 'Thirty', 'Forty'}
    twi = {'Tenth','Twentieth', 'Thirtieth', 'Fortieth'}
    s=""
    if n < 20 then 
        return one_word[n]
    else
        local unit = n%10
        n = math.floor(n/10)
        local ten = n%10
        if unit == 0 then 
            return twi[ten]
        else 
            return tw[ten].." "..one_word[unit]
        end --if
    end --if
end --num2word

Offline

#5634 2013-07-02 18:13:58

joshuar9476
Member
Registered: 2013-06-23
Posts: 35

Re: Conky v1.9 Thread

Also in a terminal what does

inxi -sx

say?

command not found

also, i meant to say that the entire conky loads slow with that gmail script in there. if i take the line out, then it loads normally.

##############################################
# Settings
##############################################
# Use Xft?
use_xft yes
xftfont UbuntuMono-R:size=10
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent no
own_window_colour 000000
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 128

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders yes

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
#default_color white
#own_window_colour white

# Text alignment, other possible values are commented
alignment top_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

##############################################
#  Output
##############################################
TEXT
SYSTEM INFO
${hr}
User: ${uid_name 1000}${alignr}Machine: ${nodename}
Uptime:$alignr$uptime
RAM: ${mem} / ${memmax} - ${memperc}% ${voffset 2}${membar 6}
Root: ${fs_used /} / ${fs_size /} - ${voffset 2}${fs_bar 6 /}
Shared: ${fs_used /media/files} / ${fs_size /media/files} - ${voffset 2}${fs_bar 6 /media/files}
Battery: ${battery_percent BAT1}%${alignr}AC Adapter: ${acpiacadapter}
CPU: ${cpu}%${alignr}Temp: ${acpitemp}° F
${tab}${tab}CPU 1:${tab}${tab}${freq_g 0} Ghz${alignr}${cpu cpu0} %
${tab}${tab}CPU 2:${tab}${tab}${freq_g 1} Ghz${alignr}${cpu cpu1} %
${tab}${tab}CPU 3:${tab}${tab}${freq_g 2} Ghz${alignr}${cpu cpu2} %
${tab}${tab}CPU 4:${tab}${tab}${freq_g 3} Ghz${alignr}${cpu cpu3} %

WEATHER
${hr}
${execi 600 curl -s "http://weather.yahooapis.com/forecastrss?w=2414495&u=f" -o ~/.cache/conky/weather.xml}${font UbuntuMono-R:size=12}${execi 600 grep "yweather:location" ~/.cache/conky/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 600 grep "yweather:location" ~/.cache/conky/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
${font UbuntuMono-R:size=70}${alignr}${execi 600 grep "yweather:condition" ~/.cache/conky/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset -35}
${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:condition" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/conky/weather.png}${image ~/.cache/conky/weather.png -p 8,242 -s 60x60}${voffset 20}
${execi 600 grep "yweather:condition" ~/.cache/conky/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
${image ~/.config/conky/conky-google-now/wind.png -p 5,322 -s 15x15}${voffset 3}${goto 35}${execi 600 grep "yweather:wind" ~/.cache/conky/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 600 grep "yweather:units" ~/.cache/conky/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${image ~/.config/conky/conky-google-now/humidity.png -p 5,337 -s 15x15}${voffset 3}${goto 35}${execi 600 grep "yweather:atmosphere" ~/.cache/conky/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${voffset 6}
${goto 18}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 70}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 120}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 170}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}${goto 220}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'}
${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/conky/weather-1.png}${image ~/.cache/conky/weather-1.png -p 10,372 -s 30x30}${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/conky/weather-2.png}${image ~/.cache/conky/weather-2.png -p 60,372 -s 30x30}${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/conky/weather-3.png}${image ~/.cache/conky/weather-3.png -p 110,372 -s 30x30}${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/conky/weather-4.png}${image ~/.cache/conky/weather-4.png -p 160,372 -s 30x30}${execi 600 cp -f ~/.config/conky/conky-google-now/$(grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/conky/weather-5.png}${image ~/.cache/conky/weather-5.png -p 210,372 -s 30x30}${voffset 20}
${goto 20}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 70}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 120}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 170}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 220}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°
${goto 20}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 70}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 120}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 170}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 220}${execi 600 grep "yweather:forecast" ~/.cache/conky/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°

NOTIFICATION
${hr}
Gmail: ${execpi 300 python ~/scripts/gmail.py}

NETWORKING
${hr}
${if_up wlan0}WiFi:
${tab}${tab}Strength: ${wireless_link_qual_perc wlan0} ${alignr}Essid: ${wireless_essid wlan0}
${tab}${tab}Download: ${downspeed wlan0}${alignr}Upload: ${upspeed wlan0}${else}${if_up eth0}Wired:
${tab}${tab}Download: ${downspeed eth0}${alignr}Upload: ${upspeed eth0}${endif}

Individuality: Always remember that you are unique. Just like everybody else.

Offline

#5635 2013-07-02 18:57:28

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

Re: Conky v1.9 Thread

@dk75

thanks for the link. but the sample does not work:

function dash()

double dashes[] = {50.0,  -- ink
                   10.0,  -- skip
                   10.0,  -- ink
                   10.0   -- skip
                  };

int    ndash  = sizeof (dashes)/sizeof(dashes[0]);
double offset = -50.0;

cairo_set_dash (cr, dashes, ndash, offset);
cairo_set_line_width (cr, 10.0);

cairo_move_to (cr, 128.0, 25.6);
cairo_line_to (cr, 230.4, 230.4);
cairo_rel_line_to (cr, -102.4, 0.0);
cairo_curve_to (cr, 51.2, 230.4, 51.2, 128.0, 128.0, 128.0);

cairo_stroke (cr);

end

it seems that there is an error near this line

double dashes[] = {50.0,  -- ink

Offline

#5636 2013-07-02 19:57:57

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

Re: Conky v1.9 Thread

@joshuar9476 -

change BAT1 to BAT0 in the conkyrc and see if that works.


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

Offline

#5637 2013-07-02 22:12:52

Copper0
#! CrunchBanger
Registered: 2013-07-02
Posts: 149

Re: Conky v1.9 Thread

Sector11 wrote:

Nice find!  Thanks for pointing it out. What does your 'sensors' output look like with it?

Before

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +36.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +29.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +32.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +32.0°C  (high = +80.0°C, crit = +100.0°C)

After

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +35.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +29.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +32.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +33.0°C  (high = +80.0°C, crit = +100.0°C)

nct6791-isa-0290
Adapter: ISA adapter
in0:                    +0.90 V  (min =  +0.00 V, max =  +1.74 V)
in1:                    +1.00 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in2:                    +3.41 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in3:                    +3.39 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in4:                    +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:                    +0.18 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:                    +0.86 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in7:                    +3.30 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in8:                    +3.30 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in9:                    +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in10:                   +0.18 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in11:                   +0.16 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in12:                   +0.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:                   +0.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in14:                   +0.16 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
fan1:                   780 RPM  (min =    0 RPM)
fan2:                   751 RPM  (min =    0 RPM)
fan5:                     0 RPM  (min =    0 RPM)
SYSTIN:                +110.0°C  (high =  +0.0°C, hyst =  +0.0°C)  sensor = thermistor
CPUTIN:                 +36.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN0:                +34.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
AUXTIN1:               +104.0°C    sensor = thermistor
AUXTIN2:               +102.0°C    sensor = thermistor
AUXTIN3:               +101.0°C    sensor = thermistor
PCH_CHIP_CPU_MAX_TEMP:   +0.0°C  
PCH_CHIP_TEMP:           +0.0°C  
PCH_CPU_TEMP:            +0.0°C  
PCH_MCH_TEMP:            +0.0°C  
intrusion0:            ALARM
intrusion1:            ALARM
beep_enable:           disabled

Offline

#5638 2013-07-02 22:21:25

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

Re: Conky v1.9 Thread

Copper0 wrote:
Sector11 wrote:

Nice find!  Thanks for pointing it out. What does your 'sensors' output look like with it?

Before

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +36.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +29.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +32.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +32.0°C  (high = +80.0°C, crit = +100.0°C)

After

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +35.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +29.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +32.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +33.0°C  (high = +80.0°C, crit = +100.0°C)

nct6791-isa-0290
Adapter: ISA adapter
in0:                    +0.90 V  (min =  +0.00 V, max =  +1.74 V)
in1:                    +1.00 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in2:                    +3.41 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in3:                    +3.39 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in4:                    +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:                    +0.18 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:                    +0.86 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in7:                    +3.30 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in8:                    +3.30 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in9:                    +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in10:                   +0.18 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in11:                   +0.16 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in12:                   +0.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:                   +0.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in14:                   +0.16 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
fan1:                   780 RPM  (min =    0 RPM)
fan2:                   751 RPM  (min =    0 RPM)
fan5:                     0 RPM  (min =    0 RPM)
SYSTIN:                +110.0°C  (high =  +0.0°C, hyst =  +0.0°C)  sensor = thermistor
CPUTIN:                 +36.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN0:                +34.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor
AUXTIN1:               +104.0°C    sensor = thermistor
AUXTIN2:               +102.0°C    sensor = thermistor
AUXTIN3:               +101.0°C    sensor = thermistor
PCH_CHIP_CPU_MAX_TEMP:   +0.0°C  
PCH_CHIP_TEMP:           +0.0°C  
PCH_CPU_TEMP:            +0.0°C  
PCH_MCH_TEMP:            +0.0°C  
intrusion0:            ALARM
intrusion1:            ALARM
beep_enable:           disabled

OH YEA!  That's a bit different.  Read: Using Secnors and get it all in conky  big_smile


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

Offline

#5639 2013-07-03 10:35:59

cyphr
New Member
Registered: 2013-07-03
Posts: 1

Re: Conky v1.9 Thread

Hiya! New to the forums. I'm somewhat new to Conky, but here's what I've gotten so far. (I forgot which conky theme I downloaded.)
New logo, different colors, GMail support with logo, and time at the bottom. ^_^
Screenshot_from_2013_07_03_06_23_28.jpg

Offline

#5640 2013-07-03 13:04:15

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

Re: Conky v1.9 Thread

is it possible to draw an ellipse instead of the circle: http://cairographics.org/samples/clip_image/

i found a interessting astro-webcam: http://www.gco.org.au/sky.jpg
unfortunately the software is buggy. it draws bars (balk) on the left and the upper side of the image.

the final image should like similar then this: http://www.ls.eso.org/lasilla/dimm/lasc/gifs/last.gif
then it looks 'astro-like' (like through a telescope).

Offline

#5641 2013-07-03 17:46:34

joshuar9476
Member
Registered: 2013-06-23
Posts: 35

Re: Conky v1.9 Thread

PackRat wrote:

@joshuar9476 -

change BAT1 to BAT0 in the conkyrc and see if that works.

Success! Thanks.


Individuality: Always remember that you are unique. Just like everybody else.

Offline

#5642 2013-07-04 03:00:34

joshuar9476
Member
Registered: 2013-06-23
Posts: 35

Re: Conky v1.9 Thread

almost done (nah, I'll never be done)

i have 

${membar 6}

and

${fs_bar 6 /}

, both of which work as intended.

i'd like the same for my wireless strength. i have

${wireless_link_bar 6}

but all it does is draw the bar. the fill in of the bar is empty. the signal percent shows correct though.

also, from earlier on, ac adapter still shows "no_acadapters?" the battery percentage works though.

Last edited by joshuar9476 (2013-07-04 03:02:07)


Individuality: Always remember that you are unique. Just like everybody else.

Offline

#5643 2013-07-04 03:04:36

annoyingbeggar
#! Junkie
From: Florida
Registered: 2013-05-30
Posts: 430

Re: Conky v1.9 Thread

It looks like you might want to try

${wireless_link_bar 6 wlan0}

“I don't believe in charity. I believe in solidarity. Charity is so vertical. It goes from the top to the bottom. Solidarity is horizontal. It respects the other person. I have a lot to learn from other people.” - Eduardo Hughes Galeano

Offline

#5644 2013-07-04 03:12:00

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

Re: Conky v1.9 Thread

joshuar9476 wrote:

almost done (nah, I'll never be done)

i have 

${membar 6}

and

${fs_bar 6 /}

, both of which work as intended.

i'd like the same for my wireless strength. i have

${wireless_link_bar 6}

but all it does is draw the bar. the fill in of the bar is empty. the signal percent shows correct though.

also, from earlier on, ac adapter still shows "no_acadapters?" the battery percentage works though.

http://conky.sourceforge.net/variables.html

wireless_link_bar      (height),(width) (net)
Wireless link quality bar (Linux only) 

No height?

Maybe the quality isn't there?

Try this:

${wireless_link_bar 6 wlan0}

Will this catch your second temperature:

${exec sensors | grep -n 'temp1' | sed -n 2p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}

See Using Sensors

Last edited by Sector11 (2013-07-04 03:18:31)


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

Offline

#5645 2013-07-04 03:21:12

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

Re: Conky v1.9 Thread

annoyingbeggar wrote:

It looks like you might want to try

${wireless_link_bar 6 wlan0}

I swear I did not see this!!!  8)


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

Offline

#5646 2013-07-04 05:52:33

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

Sector11 wrote:
ragamatrix wrote:

@jed
I'm not sure to have understood your problem, but few times ago I made an horizontal conky with bars widget from wlourf like yours; and it's seems to be more recent (2011) I did not have any problem for placements, may be you can use this one and modify it as you want ?
#post 5458

Nice stuff ragamatrix.  I'll try that one too!  big_smile

Here's a tip for you, if you click on the date of post #5458 it will give you a link directly to that post, not just the page.  big_smile

Of course it works for any post.  Like this one.  ]:D

EDIT:  Trying the conky and LUA from post #5458 - and getting this ...

Conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value

I need to research it more ... right after playing with Jed's conky.

Hmmm...  Hope no one found it weird that you were "playing with my conky"! 8)
@Sector11 and Ragamatrix!  Thanks guys.  Ragamatrix I found an older version of a wlourf script that has the exact bars I wanted.

I solved my problem by running multiple Conky's each pulling a different lua script!  I still have some playing to do as I would like the aesthetics to be a little better, but for now I am satisfied.  The 'up' and 'down' speed bars are yellow and green respectively.  The rest is good ole "VSIDO blue"!  Perhaps a little more color and it'll be finished.  Actually Conky will never be 'finished'!

Again, thanks Sector11 and Ragamatrix!

screenshot-07042013-012559am.png


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#5647 2013-07-04 07:49:00

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

And here it is semi-finished.  Total of 8 Conky's running.  The CPU is under duress due to manipulating my photo library in Shotwell.  This also accounts for the high CPU temps!  Thanks to Sector11, mrpeachy, wlourf and I know I'm missing someone!  Sorry for that, it's late!  Thanks to VastOne for the awesome gmusicbrowser work he does!

It's a little cluttered right now, but it is displaying about all the info I'd ever need to keep track of.  Conky can be really useful!!!  The tint2 bar will be updated to remove the clock and replace it with a launcher bar when I get a little sleep.

And here's the scrot;

screenshot-07042013-033506am.png


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#5648 2013-07-04 11:59:20

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

Re: Conky v1.9 Thread

jed wrote:

And here it is semi-finished.  Total of 8 Conky's running.  The CPU is under duress due to manipulating my photo library in Shotwell.  This also accounts for the high CPU temps!  Thanks to Sector11, mrpeachy, wlourf and I know I'm missing someone!  Sorry for that, it's late!  Thanks to VastOne for the awesome gmusicbrowser work he does!

It's a little cluttered right now, but it is displaying about all the info I'd ever need to keep track of.  Conky can be really useful!!!  The tint2 bar will be updated to remove the clock and replace it with a launcher bar when I get a little sleep.

And here's the scrot;

http://www.zimagez.com/miniature/screenshot-07042013-033506am.png

@ jed - nope, I didn't find it weird ... must be an age thing.  big_smile

Looks good.  Wlourf made some excellent scripts, you've put them to good work.


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

Offline

#5649 2013-07-05 15:35:03

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

Re: Conky v1.9 Thread

i always get problems when the value is '21'. otherwhise everything works!

function n2w(number) -- umwandeln von zahlen in wörter

local n1_tab={}
local n2_tab={}
number=tonumber(number)
local n_len=string.len(number)
if number<0 then
number=tonumber(string.sub(number,2,n_len))
minus="minus "
else
number=number
minus=""
end
if number>99 then
h=tonumber(string.sub(number,1,1))
tu=tonumber(string.sub(number,2,3))
t=tonumber(string.sub(number,2,2))
u=tonumber(string.sub(number,3,3))
elseif number<100 then
tu=number
t=tonumber(string.sub(number,1,1))
u=tonumber(string.sub(number,2,2))
end
n1_tab={"eins","zwei","drei","vier","fünf","sechs","sieben","acht","neun","zehn","elf","zwölf","dreizehn","vierzehn","fünfzehn","sechzehn","siebzehn","achtzehn","neunzehn",}
n2_tab={"zehn","zwanzig","dreißig","vierzig","fünfzig","sechzig","siebzig","achtzig","neunzig"}
if number>0 then n0="" else n0="null" end
if tu<20 and tu~=10 and tu~=0 then 
	ausgabe=n1_tab[tu]
elseif tu==10 then
	ausgabe="zehn"
elseif tu==0 then
	ausgabe="null"
elseif tu>19 then
	if u>0 then 
	joinu=" " 
	u=n1_tab[u]
	else 
	joinu=""
	u=""
	end
	g=string.sub(number,2,2)
	ausgabe=international(tu,g,n2_tab[t])
--	out=n2_tab[t]..joinu..u -- original
end
if number>99 and number~=100 then
	h=n1_tab[h]
	return minus..h.." hundred and "..ausgabe
elseif number==100 then
	return "einhundert"
elseif number<100 then
	return minus..ausgabe
end
end--function

function international(lang,geschnitten,wort)
local nummer,kurzezahl=nil,nil
local anzahl=tonumber(lang)
local kurzezahl=tonumber(geschnitten)

if kurzezahl==1 or anzahl==1 then

 if string.len(anzahl)>1  then
 nummer='einund'..n2_tab[t]     -- gives me for example 21, 31 etc
 elseif string.len(anzahl)==1 then
 nummer='eins'			        -- gives me the number 1
 end

elseif kurzezahl~=1 or anzahl ~=1 then

   if anzahl==0 then
   nummer=wort                                     -- should give me the word 'null' (zero)
   elseif tonumber(string.sub(anzahl,1,1)) and tonumber(string.sub(anzahl,2,2))==0 then   --
   nummer=wort                                     -- gives me numbers like 10,20,30 etc.
   else 
    nummer=n2w(kurzezahl)..'und'..wort         --  gives me such numbers like 22,23,24 etc.
    end

end

return nummer

end -- der funktion

i do not see the error sad do u have an idea how to fix this problem?

it's really curious because the function number2words works sometimes (see bottom line): http://i.imgbox.com/abcwqB08.png

i only have problems with this function (this is the function that causes the problem):

function display_text_perc(status1,status2,ending,name,value,dev,n)
if string.find(n,"yes") ~= nil then ms=n2w(value).." prozent" elseif string.find(n,"no") ~= nil then ms=nounit(dev,status2,ending,value) end
          
return ms
end

edit: the problem is history wink

Last edited by lionhead (2013-07-06 16:13:21)

Offline

Be excellent to each other!

#5650 2013-07-06 14:19:32

joshuar9476
Member
Registered: 2013-06-23
Posts: 35

Re: Conky v1.9 Thread

how do i center two different parts of code?

${goto 15}${texeci 600 curl -s "http://weather.yahooapis.com/forecastrss?w=2414495&u=f" -o ~/.cache/conky/weather.xml}${font CaviarDreams:style=Bold:size=12}${texeci 600 grep "yweather:location" ~/.cache/conky/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} - ${texeci 600 grep "yweather:condition" ~/.cache/conky/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}

This give me my location and then the current weather condition, ie (Greensburg - Fair or Greensburg - Light Shower). Id like it so that the entire thing is always centered no matter how long it is. If I center both sections, they are on top of eachother. If i center the beginning, then the second part is off the right.

probably an easy fix, but i'm having a hard time finding the correct answer in both the documentation and google.


Individuality: Always remember that you are unique. Just like everybody else.

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