Re: December 2011 Conky Thread

http://auspex9.com/ss/12022011a.png

Super simple, fairly minimal setup.

##############################################
## Settings ##################################
##############################################
background yes
use_xft yes
xftfont Verdana:size=7
xftalpha 1
update_interval 6.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 700 
maximum_width 1180
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color ffffff
default_shade_color bdb383
default_outline_color 666666
alignment bottom_left
gap_x 5
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output ####################################
##############################################
### CPU graph not necessary ${cpugraph cpu0}
### Unused ethernet code
    #Up: ${upspeed eth2} kb/s     ethernet$color${alignr}${upspeedgraph eth2 8,70 99CCFF 6666FF}
    #Down: ${downspeed eth2} kb/s ${alignr}${downspeedgraph eth2 8,70 99CCFF 6666FF}
    #Upload: ${alignr}${totalup eth2}
    #Download: ${alignr}${totaldown eth2}
    #IP/GW: ${alignr}${addr eth2} / ${gw_ip}${else}${if_existing /proc/net/ ath0}
### Small 1-line Network Upload/Download graphs
    #Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 ffffff A39AF1}
    #Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 ffffff A39AF1}
### FS Bars 
    #${fs_bar 8,60 ffffff A39AF1 /}
    #${swapbar}
### Large Net u/d
    # Down: ${downspeed eth2} kb/s ${alignr}Up: ${upspeed eth2} kb/s
    # ${downspeedgraph eth2 25,100} ${alignr}${upspeedgraph eth2 25,100}
### Node
    # $sysname $kernel $alignr $machine
### Time${color cccccc}
    #${alignc 19}${font Arial Black:size=14}${time %H:%M}${font}
    #${voffset 2}${alignc}${time %A, %d %B %Y}
### now in conkybrc
TEXT
${font Arial Black:size=34}${time %H:%M}${font} ${goto 170}${time %a %d %b} ${goto 340}sys${goto 360}proc | $processes ($running_processes)${goto 455}pid${goto 495}cpu${goto 535}mem${goto 580}mocp
${hr}
w ${goto 20} ${addr wlan0} ${goto 170}${wireless_essid wlan0} | ${wireless_link_qual_perc wlan0}% ${goto 340}${top name 1}${goto 450}${top pid 1}${goto 490}${top cpu 1}${goto 530}${top mem 1}${goto 580}Time: ${if_running mocp}${execpi 3mocp -Q %tl} / ${execpi 1 mocp -Q %tt}${else}...${endif}
${goto 170}dn: ${downspeed wlan0} ${goto 240}up: ${upspeed wlan0} ${goto 340}${top name 2}${goto 450}${top pid 2}${goto 490}${top cpu 2}${goto 530}${top mem 1}${goto 580}Song: ${if_running mocp}${execpi 3 mocp -Q %song}${else}...${endif}
e ${goto 20} ${addr eth0} ${goto 170}${gw_ip} ${goto 340}${top name 2}${goto 450}${top pid 3}${goto 490}${top cpu 3}${goto 530}${top mem 3}${goto 580}Artist: ${if_running mocp}${execpi 3 mocp -Q %artist}${else}...${endif}
${goto 170} dn: ${downspeed eth0} ${goto 240}up: ${upspeed eth0} ${goto 340}${top name 4}${goto 450}${top pid 4}${goto 490}${top cpu 4}${goto 530}${top mem 4}${goto 580}Album: ${if_running mocp}${execpi 3 mocp -Q %album}${else}...${endif}
${hr}
$nodename ${goto 40} $uptime | ${battery_percent BAT0}% | ${freq_g 0}Ghz ${goto 210} r: ${fs_used /} ${fs_bar 6,50 /} | h: ${fs_used /home} ${fs_bar 6,50 /home} | m: $memperc% ${membar 6,50 cccccc A39AF1} | c: ${cpu cpu0}% ${cpubar cpu0 6,50 cccccc A39AF1}

Re: December 2011 Conky Thread

@jinnstar that is a super clean conky and a fantastic wallpaper.......

       I was scanning last months conky thread and read the short disscusion on running multiple luas in conky.One thing I discovered is all luas are not alike....
       My problem is I have 3 luas running in 1 conky already and was trying to add a 4th as this is an experiment in lua.The 4th one works but it throws a code over and over

          Conky: llua_getstring: function conky_main_bars didn't return a string, result discarded

       I have tried changing witch conky is called after text and above..the clock.lua and calendar.lua throw the same error when called below text.The thermometer.lua is the only one that does not give that error when called after text.

        the parts that matter

 
#  Output
##############################################
############## load Luas #####################
lua_load ~/conky/lua/testclock.lua
lua_draw_hook_pre draw_clock

lua_load ~/MrPeachy/lua/testcalendar.lua
lua_draw_hook_post draw_fig

lua_load ~/MrPeachy/lua/thermometer2.lua

lua_load ~/conky/lua/testbargraph.lua
##############################################
TEXT
${lua conky_weather}
${lua main_bars}
 

     Any ideas ...........

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: December 2011 Conky Thread

dlm955 wrote:

@jinnstar that is a super clean conky and a fantastic wallpaper........

I normally detest Orange colored desktops, but this one is a keeper with conky now basis for mine on laptop.

big_smile

Congratulations, you've figured out the sound of one hand clapping...

Re: December 2011 Conky Thread

jinnstar wrote:

Super simple, fairly minimal setup.

I love this.

Might someone help me make my background transparent?

http://dotism.org/zero/crunchbang/sc2.png

Re: December 2011 Conky Thread

dotism wrote:
jinnstar wrote:

Super simple, fairly minimal setup.

I love this.

Might someone help me make my background transparent?

http://dotism.org/zero/crunchbang/sc2.png

In my conky I have the following settings which should do the trick

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override

Re: December 2011 Conky Thread

EnochRoot wrote:

In my conky I have the following settings which should do the trick

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override

You rule.

http://dotism.org/zero/crunchbang/sc3.png

Thank you so much.

Re: December 2011 Conky Thread

And talking of my conky, here is my current setup, still going naked without a panel.

http://s7.postimage.org/q5vw41fvb/2011_12_03_1322908111_2560x1024_scrot.jpg

Re: December 2011 Conky Thread

^ Nice stereogram!

while ( ! ( succeed = try() ) );

Re: December 2011 Conky Thread

i posted a lua script that gave dials some time ago but i didn't really get around to finishing the script as the dials turned out to be rather processor intensive

but i have reworked the script and used a different mechanism to draw the dials and they are significantly less intensive than before

http://i.imgur.com/mktPBl.png

dials2.lua

--dials version 2 by mrpeachy dec 2011

require 'cairo'

function conky_dial()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--SETTINGS--SETTINGS--SETTINGS--SETTINGS--SETTINGS--SETTINGS--SETTINGS--SETTINGS
--cut below section, paste below and edit settings for new dial-------
--you do not have to set all vales as defualt values are set elsewhere
t={--this table contains the settings for one table
input=conky_parse("${cpu}"),--input number to display
scale_h=50,--range of numbers in scale, ie if 50, then when 50 at top, 0 at bottom
input_max=100,--max of input
scale=5,--distance in pixels between units in the scale
ten_w=13,--width of tens lines
ten_nw=20,--position of tens numbers from left/bottom edge
ten_num=1,--1 to show tens numbers,0 not to show
five_w=10,--width of 5 lines,0 not to show fives lines
five_nw=20,--position of fives numbers from left/bottom edge
five_num=1,-- 1 to show fives numbers, 0 not to show
one_w=5,--width of units lines, 0 not to show lines
one_nw=15,--position of units numbers from left/bottom edge
one_num=0,--1 to show units, 0 not to show
dial_w=55,--width of dial
dial_hadj=10,--adds length to dial at top to hide numbers that may extend past edge
font="Mono",--font
fsize=12,--font size
tadj=-5,--adjust text,positive numbers move text down/right, negative up/left
lines=3,--set position of lines, 1=left,2=right,3=both
xpos=100.5,--position of bottom left hand corner
ypos=350.5,
vorh=1,--orientation of dial, 1=vertical, 2=horizontal
}
drawdial(t)
--cut above section, paste below and edit settings for new dial-------
--cut below section, paste below and edit settings for new dial-------
t={
input=conky_parse("${memperc}"),
xpos=250,
ypos=270.5,
vorh=2,
}
drawdial(t)
--cut above section, paste below and edit settings for new dial-------
--cut below section, paste below and edit settings for new dial-------
t={
input=conky_parse("${fs_used_perc /home}"),
xpos=100,
ypos=270.5,
vorh=2,
}
drawdial(t)
--cut above section, paste below and edit settings for new dial-------
--#########################################################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

function drawdial(t)
--set variable and defaults-----------------------------------------------
if t.input~=nil then input=t.input else input=conky_parse("${cpu}") end
if t.scale_h~=nil then scale_h=t.scale_h else scale_h=50 end
if t.input_max~=nil then input_max=t.input_max else input_max=100 end
if t.scale~=nil then scale=t.scale else scale=5 end
if t.ten_w~=nil then ten_w=t.ten_w else ten_w=13 end
if t.ten_nw~=nil then ten_nw=t.ten_nw else ten_nw=15 end
if t.ten_num~=nil then ten_num=t.ten_num else ten_num=1 end
if t.five_w~=nil then five_w=t.five_w else five_w=10 end
if t.five_nw~=nil then five_nw=t.five_nw else five_nw=15 end
if t.five_num~=nil then five_num=t.five_num else five_num=1 end
if t.one_w~=nil then one_w=t.one_w else one_w=5 end
if t.one_nw~=nil then one_nw=t.one_nw else one_nw=15 end
if t.one_num~=nil then one_num=t.one_num else one_num=0 end
if t.dial_w~=nil then dial_w=t.dial_w else dial_w=55 end
if t.dial_hadj~=nil then dial_hadj=t.dial_hadj else dial_hadj=10 end
if t.font~=nil then font=t.font else font="Mono" end
if t.fsize~=nil then fsize=t.fsize else fsize=20 end
if t.tadj~=nil then tadj=t.tadj else tadj=5 end
if t.lines~=nil then lines=t.lines else lines=3 end
if t.xpos~=nil then xpos=t.xpos else xpos=300.5 end
if t.ypos~=nil then ypos=t.ypos else ypos=350.5 end
if t.vorh~=nil then vorh=t.vorh else vorh=1 end
--------------------------------------------------------------------------
--set tables
scale_t={}
for i=1,scale_h do
scale_t[i]=input+(scale_h/2)-(i-1)
end
table.sort(scale_t)
table.insert(scale_t,1,scale_t[1]-1)
tens={}
fives={}
ones={}
local function ends(String,End)
   return End=='' or string.sub(String,-string.len(End))==End
end
--sort positions for tens fives and ones----------------------------------------
for i,v in ipairs(scale_t) do
    if ends(v,"0")==true then
    table.insert(tens,i)
    t=1
    else 
    t=0
    end
    if ends(v,"5")==true then
    table.insert(fives,i)
    f=1
    else
    f=0
    end
    if t==0 and f==0 then
    table.insert(ones,i)
    end
end
--draw vertical or horizontal dial##########################################################################
if vorh==1 then
--background black
cairo_set_source_rgba (cr,0,0,0,1)
cairo_rectangle (cr,xpos,ypos,((((scale_h+2)*scale))+dial_hadj),-dial_w)
cairo_fill (cr)
--lines and numbers
cairo_set_line_width (cr,1)
cairo_set_source_rgba (cr,1,1,1,1)
adj10=tadj
adj5=tadj
adj1=tadj
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fsize)
for i=1,#tens do
    --ten lines
    if ten_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos+(tens[i]*scale),ypos)
        cairo_rel_line_to (cr,0,-ten_w)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+(tens[i]*scale),ypos-dial_w)
        cairo_rel_line_to (cr,0,ten_w)
        cairo_stroke (cr)
        end
    end
    --ten numbers
    if ten_num==1 then
    text=scale_t[tens[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text==0 then text="0"..text end
    cairo_move_to (cr,xpos+(tens[i]*scale)+(adj10),(ypos-ten_nw))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i tens
---------------------------------------------------
for i=1,#fives do
    --five lines
    if five_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos+(fives[i]*scale),ypos)
        cairo_rel_line_to (cr,0,-five_w)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+(fives[i]*scale),ypos-dial_w)
        cairo_rel_line_to (cr,0,five_w)
        cairo_stroke (cr)
        end
    end
    --five numbers
    if five_num==1 then
    text=scale_t[fives[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text<10 then text="0"..text end
    cairo_move_to (cr,xpos+(fives[i]*scale)+(adj5),(ypos-five_nw))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i =fives
-------------------------------------------------------------
for i=1,#ones do
    --ones lines
    if one_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos+(ones[i]*scale),ypos)
        cairo_rel_line_to (cr,0,-one_w)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+(ones[i]*scale),ypos-dial_w)
        cairo_rel_line_to (cr,0,one_w)
        cairo_stroke (cr)
        end
    end
    --one numbers
    if one_num==1 then
    text=scale_t[ones[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text<10 then text="0"..text end
    cairo_move_to (cr,xpos+(ones[i]*scale)+(adj1),(ypos-one_nw))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i =ones
--gradient-----------------------------------------------------
rh=-dial_w
rw=((((scale_h+2)*scale))+dial_hadj)
local pat = cairo_pattern_create_linear (xpos,0,xpos+rw,0);
cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0.95, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0.5, 0, 0, 0, 0);
cairo_pattern_add_color_stop_rgba (pat, 0.05, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
cairo_rectangle (cr,xpos,ypos,rw, rh);
cairo_set_source (cr, pat);
cairo_fill (cr);
cairo_pattern_destroy (pat);
--indicator
cairo_set_source_rgba (cr,1,1,1,1)
cairo_move_to (cr,xpos+(((scale_h+2)*scale)/2),ypos)
cairo_rel_line_to (cr,0,-dial_w)
cairo_stroke (cr)
--outline
cairo_rectangle (cr,xpos,ypos,((((scale_h+2)*scale))+dial_hadj),-dial_w)
cairo_stroke (cr)
end--if vorh=1
--#########################################################################################
if vorh==2 then
--background black
cairo_set_source_rgba (cr,0,0,0,1)
cairo_rectangle (cr,xpos,ypos,dial_w,((-1*((scale_h+2)*scale))-dial_hadj))
cairo_fill (cr)
--lines and numbers
cairo_set_line_width (cr,1)
cairo_set_source_rgba (cr,1,1,1,1)
adj10=tadj
adj5=tadj
adj1=tadj
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fsize)
for i=1,#tens do
    --ten lines
    if ten_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos,ypos-(tens[i]*scale))
        cairo_rel_line_to (cr,ten_w,0)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+dial_w,ypos-(tens[i]*scale))
        cairo_rel_line_to (cr,-ten_w,0)
        cairo_stroke (cr)
        end
    end
    --ten numbers
    if ten_num==1 then
    text=scale_t[tens[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text==0 then text="0"..text end
    cairo_move_to (cr,xpos+ten_nw,(ypos-(tens[i]*scale))+(adj10))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i tens
---------------------------------------------------
for i=1,#fives do
    --five lines
    if five_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos,ypos-(fives[i]*scale))
        cairo_rel_line_to (cr,five_w,0)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+dial_w,ypos-(fives[i]*scale))
        cairo_rel_line_to (cr,-five_w,0)
        cairo_stroke (cr)
        end
    end
    --five numbers
    if five_num==1 then
    text=scale_t[fives[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text<10 then text="0"..text end
    cairo_move_to (cr,xpos+five_nw,(ypos-(fives[i]*scale)+(adj5)))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i =fives
-------------------------------------------------------------
for i=1,#ones do
    --ones lines
    if one_w~=0 then
        if lines==1 or lines==3 then
        cairo_move_to (cr,xpos,ypos-(ones[i]*scale))
        cairo_rel_line_to (cr,one_w,0)
        cairo_stroke (cr)
        end
        if lines==2 or lines==3 then
        cairo_move_to (cr,xpos+dial_w,ypos-(ones[i]*scale))
        cairo_rel_line_to (cr,-one_w,0)
        cairo_stroke (cr)
        end
    end
    --one numbers
    if one_num==1 then
    text=scale_t[ones[i]]
    if text<0 then text=input_max+text end
    if text>(input_max-1) then text=text-input_max end
    if text<10 then text="0"..text end
    cairo_move_to (cr,xpos+one_nw,(ypos-(ones[i]*scale)+(adj1)))
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
end--for i =ones
--gradient-----------------------------------------------------
rh=((-1*((scale_h+2)*scale))-dial_hadj)
rw=dial_w
local pat = cairo_pattern_create_linear (0,ypos,0,ypos+rh);
cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0.95, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0.5, 0, 0, 0, 0);
cairo_pattern_add_color_stop_rgba (pat, 0.05, 0, 0, 0, 1);
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
cairo_rectangle (cr,xpos,ypos,rw, rh);
cairo_set_source (cr, pat);
cairo_fill (cr);
cairo_pattern_destroy (pat);
--indicator
cairo_set_source_rgba (cr,1,1,1,1)
cairo_move_to (cr,xpos,ypos-(((scale_h+2)*scale)/2))
cairo_rel_line_to (cr,dial_w,0)
cairo_stroke (cr)
--outline
cairo_rectangle (cr,xpos,ypos,dial_w,((-1*((scale_h+2)*scale))-dial_hadj))
cairo_stroke (cr)
end--if vorh=2
end--drawdial

in conkyrc

lua_load ~/lua/dials2.lua
lua_draw_hook_pre dial

TEXT

Last edited by mrpeachy (2011-12-03 19:20:51)

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: December 2011 Conky Thread

http://ompldr.org/tYmtxZQ

##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 700
maximum_width 1000
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color d8d8d8
default_shade_color 000000
default_outline_color d9d7d6
alignment top_left
gap_x 12
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
#  Output
##############################################
TEXT
$kernel | ON: $uptime | T:$acpitemp | B:$battery_percent | CPU1:${cpu cpu0} | CPU2:${cpu cpu1} | HDD:$fs_used | SWAP:$swap | WLAN: ${wireless_essid wlan0} D:$downspeedf | U:$upspeedf | Last.fm: ${font Kochi Gothic :size=8.25}${rss http://ws.audioscrobbler.com/1.0/user/sunfizz98/recenttracks.rss 1 item_titles 1}

The goal is to have everything on one line, if possible, without overlapping my tint2, but I can't seem to extend this conky across the screen. Help advised.

Re: December 2011 Conky Thread

@sunfizz:  OT:  Where's the wall from?

while ( ! ( succeed = try() ) );

Re: December 2011 Conky Thread

@pvsage
I got it from animepaper.net.  I can upload the wallpaper if you like.
Anime: K-On!

Anyway, I seem to have fixed the problem by restarting my computer (overkill, but did the job).

Can somebody explain how to do multiple colors in one liine?  I also don't know how to get colorN to work.

Last edited by sunfizz98 (2011-12-04 01:24:19)

Re: December 2011 Conky Thread

mrpeachy wrote:

i posted a lua script that gave dials some time ago but i didn't really get around to finishing the script as the dials turned out to be rather processor intensive

but i have reworked the script and used a different mechanism to draw the dials and they are significantly less intensive than before

   
     MrPeachy I'am trying your new dials lua and I'am getting an error.........
   ................................................  the conky window starts but is empty
 
   

Conky: llua_do_call: function conky_dial execution failed: /home/dlm955/MrPeachy/lua/dials.lua:97: attempt to perform arithmetic on global 'input' (a string value)

   

 --set tables
scale_t={}
for i=1,scale_h do
scale_t[i]=input+(scale_h/2)-(i-1)  ------ line 97 
end
table.sort(scale_t)
table.insert(scale_t,1,scale_t[1]-1)
tens={}
fives={}
ones={}

   
     I found it MrPeachy I had changed the line for which cpu to use trying to make two of them....
     input=conky_parse("${cpu0}"),--input number to display and cut and paste to make new dial
     deleted new dial and changed input back to your orig and works now....

Last edited by dlm955 (2011-12-04 02:34:07)

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: December 2011 Conky Thread

sunfizz98 wrote:

Can somebody explain how to do multiple colors in one liine?  I also don't know how to get colorN to work.

http://conky.sourceforge.net/config_settings.html wrote:

Predefine a color for use inside TEXT segments. Substitute N by a digit between 0 and 9, inclusively. When specifying the color value in hex, omit the leading hash (#).

The "N" is a variable you can define at the top of the conky-

You can define Color1 to Color9 above TEXT

color6 666666 Darth Gray

TEXT

${color 6}

or you can define text at each call.

${color 666666}

Congratulations, you've figured out the sound of one hand clapping...

Re: December 2011 Conky Thread

@Fizz:  Thanks; I was mostly interested in the manga/anime source.  Looks interesting!

while ( ! ( succeed = try() ) );

Re: December 2011 Conky Thread

Well I managed to figure out MrPeachy dials.lua...one little glitch it throws an error when you edit the conkyrc and it auto-restarts but it works anyway and only shows the error before it starts and goes away..

   it always points to this line   

 scale_t[i]=input+(scale_h/2)-(i-1)

   http://i.imgur.com/bTBDys.png  click me

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: December 2011 Conky Thread

dlm955 wrote:

Well I managed to figure out MrPeachy dials.lua...one little glitch it throws an error when you edit the conkyrc and it auto-restarts but it works anyway and only shows the error before it starts and goes away..

   it always points to this line   

 scale_t[i]=input+(scale_h/2)-(i-1)

   http://i.imgur.com/bTBDys.png  click me

if you want to get rid of that error, insert a line directly above the line you show like this

if input==nil then input=0 end

your setup looks great by the way

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: December 2011 Conky Thread

Hello people,
I'm using the updated iso image and have installed xfce and my conky will not auto-start.  Any pointing in the right direction will be very much appreciated.  I think my head is going to explode. wink
Thanks,
Dave

Compaq SR5610F, NVidia 6150SE
HP dv5-2077cl, ATI Radeon HD 4250
Statler 64bit bpo

Re: December 2011 Conky Thread

Dave W. wrote:

Hello people,
I'm using the updated iso image and have installed xfce and my conky will not auto-start.  Any pointing in the right direction will be very much appreciated.  I think my head is going to explode. wink
Thanks,
Dave

Conky Setup Guide --> talks about how to set it up in Xfce there, mind you it is Xubuntu but should still work.

Re: December 2011 Conky Thread

Thanks Sector11.
The link doesn't work quite right, but did you mean this...http://ubuntuforums.org/showthread.php?t=867076 ?

Compaq SR5610F, NVidia 6150SE
HP dv5-2077cl, ATI Radeon HD 4250
Statler 64bit bpo

Re: December 2011 Conky Thread

mrpeachy wrote:

if you want to get rid of that error, insert a line directly above the line you show like this

if input==nil then input=0 end

your setup looks great by the way

   Thank you

    Well I inserted that line and changed the width of the conky,save and same error

 

  Conky: llua_do_call: function conky_dial execution failed: /home/dlm955/MrPeachy/lua/dials.lua:288: attempt to perform arithmetic on global 'input' (a string value)  

     this is were I inserted new line

 --set tables
scale_t={}
for i=1,scale_h do
if input==nil then input=0 end -----    new line 
scale_t[i]=input+(scale_h/2)-(i-1)  --- line 288
end
table.sort(scale_t)
table.insert(scale_t,1,scale_t[1]-1)
tens={}
fives={}
ones={}
local function ends(String,End) 

   this is on the newest version of crunchbang if that helps
   Thanks for your time with this

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: December 2011 Conky Thread

EnochRoot wrote:

And talking of my conky, here is my current setup, still going naked without a panel.

http://s7.postimage.org/q5vw41fvb/2011_12_03_1322908111_2560x1024_scrot.jpg

EIGHT CPUs?!

All we ever were, just zeroes and ones.

Re: December 2011 Conky Thread

Dave W. wrote:

Thanks Sector11.
The link doesn't work quite right, but did you mean this...http://ubuntuforums.org/showthread.php?t=867076 ?

That's where it came from.  big_smile

Re: December 2011 Conky Thread

dlm955 wrote:

  Conky: llua_do_call: function conky_dial execution failed: /home/dlm955/MrPeachy/lua/dials.lua:288: attempt to perform arithmetic on global 'input' (a string value)  

change this

function drawdial(t)
--set variable and defaults-----------------------------------------------
if t.input~=nil then input=t.input else input=conky_parse("${cpu}") end

change to this

function drawdial(t)
--set variable and defaults-----------------------------------------------
if t.input~=nil then input=tonumber(t.input) else input=conky_parse("${cpu}") end

the tonumber before the input makes sure that the script will recognise the valua as a number
dates can do this, even though you get a number, lua doesnt recognise it as a number but as a string

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: December 2011 Conky Thread

mrpeachy wrote:
dlm955 wrote:

  Conky: llua_do_call: function conky_dial execution failed: /home/dlm955/MrPeachy/lua/dials.lua:288: attempt to perform arithmetic on global 'input' (a string value)  

change this

function drawdial(t)
--set variable and defaults-----------------------------------------------
if t.input~=nil then input=t.input else input=conky_parse("${cpu}") end

change to this

function drawdial(t)
--set variable and defaults-----------------------------------------------
if t.input~=nil then input=tonumber(t.input) else input=conky_parse("${cpu}") end

the tonumber before the input makes sure that the script will recognise the valua as a number
dates can do this, even though you get a number, lua doesnt recognise it as a number but as a string

       That fixed it and  Thank You for your time cool

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!