You are not logged in.
I think you have dispensed enough advice and help over the years that your credit is good.
Agreed!! 
@falldown - muchas gracias, amigo
De nada. 
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Pete: "How does she fly with those things?"
Claudia: "They're wings."
Pete: "Yeah, those probably help."

Yeah I guess a fuller set of "wings" would cause too much drag..
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
and the whole conky archive is over in the interactive conky thread post 517.
Hey buddy ... did you know if you click on the "date" of a post you get a direct like to that post?
so go to: Post 517
Since you such a great guy for sharing your work, I though I'd share that tid-bit. 
Offline
Online
Sector11 wrote:I want em to ... but have nothing to trade.
I think you have dispensed enough advice and help over the years that your credit is good.
@falldown - muchas gracias, amigo
I knew I liked you for a reason. 
And once again falldown show himself to be a standup kinda guy.
Hmmmmmm does that make him an antonym.
Offline
Hey buddy ... did you know if you click on the "date" of a post you get a direct like to that post?
so go to: Post 517
Since you such a great guy for sharing your work, I though I'd share that tid-bit.
Thanks for the tip and the compliment. 
I will use that in future.
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
^ Yes, but then they could not read the other 516 great posts! ...
That is what I thought when I went to the very first post anyway...

My thoughts exactly!!
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
^ Yes, but then they could not read the other 516 great posts! ...
That is what I thought when I went to the very first post anyway...
Ahhhhhhhh but fallup - standdown linked to the page that 517 was on ... now had he linked to page 1 that would be a different story.
"Ok folks, start here, the fist hint on how to build this is in post #2 the last in post #517 and there's 36 things you need to know."
NOW you'll see some reading!! 
Offline
XFCE4 (xfwm4) + conky + transparency with images.
OK, applying NoTryDo's "feh" find from the Xfce Forums it's very easy to get transparent conkys with "xfwm4" using images that are not washed out.
I can hear it now - but I have a transparent conky with XFCE4. Are you using the ${image} command, conkys 'Imlib2' feature?
The composite manager must be on - and any options you want - careful: conky is an "inactive window"
Needed above TEXT:
own_window yes
own_window_type override
own_window_transparent yesDo NOT use:
#own_window_argb_visual
#own_window_argb_valueBelow Text:
TEXT
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
start conky stuff hereIf you want to use "draw-bk.lua" feel free:
lua_load ~/Conky/LUA/draw-bg.lua
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}\
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
start conky stuff hereAnd there you have it, you can run as many conkys as you want, no flickering, no blinking, no washed out images, and you can use other LUA scripts as well like v9000. Also works like a charm with the TeoBigusGeekus weather scripts. Nice crisk, clear images.
5 conkys under XFCE4 using the method above:
Left to right:
First: using draw-bk set to 0.4
lua_load ~/Conky/LUA/draw-bg.lua
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}\
${image ~/Conky/images/DarthVader.png -p 20,120 -s 128x128}\
${alignc}${cpubar cpu0 0,20} Sector11 ${cpubar cpu0 0,20}Next: no draw-bk
TEXT
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
${image ~/Conky/images/Stealth_Trooper.png -p 20,120 -s 128x128}\
${alignc}${cpubar cpu0 0,20} Sector11 ${cpubar cpu0 0,20}Third: another with draw-bk.lua
lua_load ~/Conky/LUA/draw-bg.lua
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}\
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
${image ~/Conky/images/Mini_128.png -p 20,120 -s 128x128}\
${alignc}${cpubar cpu0 0,20} Sector11 ${cpubar cpu0 0,20}Forth: using a semi-transparent image background
TEXT
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
${image ~/Conky/images/bk_40.png -p 0,0 -s 160x315}\
${image ~/Conky/images/stock_home.png -p 40,165 -s 100x100}\
${alignc}${cpubar cpu0 0,20} Sector11 ${cpubar cpu0 0,20}That last one - draw-bk.lua, various images and the v9000.lus weather.
lua_load ~/Conky/LUA/draw-bg.lua
TEXT
${exec feh --bg-center `xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path`}\
${lua conky_draw_bg 25 0 0 0 0 0x000000 0.4}${goto 80}And last but not least, Andy, who is keeping an eye on everything!
Last edited by Sector11 (2012-08-12 01:30:42)
Offline
@ Sector11 - are you cataloging all your findings in one location? conky pistop perhaps?
or maybe start a whole new thread for "transparency in conky"
Last edited by mrpeachy (2012-08-12 00:09:38)
Offline
@ Sector11 - are you cataloging all your findings in one location? conky pistop perhaps?
dk75 has:
ARGB Visual = COMPIZ, and
Conky Compiz startup
I have: Transparency in conky = compton & xcompmgr in OpenBox
Older accuracy unknown, I'll have to ask about them:
Conky KDE Transparency - it uses a 'feh' line as well.
The post above will definitely go up - later tonight or tomorrow. I'm thinking tonight.
HA!!!! You edited your post as I did this. You know a new thread dedicated to Conky Transparency might be a good thing. There are a lot of different "composite managers" out there, on different distros. Might just work, because it's becoming apparent that they work different.
Lets sleep on it.
Last edited by Sector11 (2012-08-12 00:18:44)
Offline
Well done lwfitz as usual, a great desktop and discussion ...
thanks buddy! I'm always up for some stimulating conversation. 
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
HA!!!! You edited your post as I did this. You know a new thread dedicated to Conky Transparency might be a good thing. There are a lot of different "composite managers" out there, on different distros. Might just work, because it's becoming apparent that they work different.
Lets sleep on it.
That sounds like a good idea.
It seems that a question about conky transparency comes up every week or two.
Offline
Im trying to get my cpu temp but I think Im doing something wrong.
Sensors command gives me this
luke@crunchbang:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +54.0°C (crit = +103.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 1: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 2: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 3: +55.0°C (high = +84.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +70.0°C ${hwmon 0 temp 1}°FIs my hard drive temp
${hwmon 2 temp 1}°FIs my GPU temp
So Shouldnt
${hwmon 1 core 0}°Fbe my CPU temp?
Obviously its not cuz Im getting this
Conky: '/home/luke/conky/conkyrc_info' modified, reloading...
Conky: can't open '/sys/class/hwmon/hwmon1/core0_input': No such file or directory
please check your device or remove this var from Conky
Conky: desktop window (159) is root window
Conky: window type - desktop
Conky: drawing to created window (0x1400001)
Conky: drawing to double bufferNevermind......... I did my homework and looked in /sys/class/hwmon/ and figured it out
Secondary question:
I got my temps in Fahrenheit but the lua bar max's out and shows my cpu temp as in the lava range.......... Im using Mr. Peachys all combined lua
TEMP ${hwmon 1 temp 2}°F${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}--[[ by mrpeachy -
combines background bar and calendar functions
]]
require 'cairo'
require 'imlib2'
function rgb_to_r_g_b(col_a)
return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
end
function conky_gradbar(bartab)
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)
local cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--convert to table
local bartab=loadstring("return" .. bartab)()
local bar_startx=bartab[1]
local bar_starty=bartab[2]
local number=bartab[3]
local number=conky_parse(number)
local number_max=bartab[4]
local divisions=bartab[5]
local div_width=bartab[6]
local div_height=bartab[7]
local div_gap=bartab[8]
local bg_col=bartab[9]
local bg_alpha=bartab[10]
local st_col=bartab[11]
local st_alpha=bartab[12]
local mid_col=bartab[13]
local mid_alpha=bartab[14]
local end_col=bartab[15]
local end_alpha=bartab[16]
--color conversion
local br,bg,bb,ba=rgb_to_r_g_b({bg_col,bg_alpha})
local sr,sg,sb,sa=rgb_to_r_g_b({st_col,st_alpha})
local mr,mg,mb,ma=rgb_to_r_g_b({mid_col,mid_alpha})
local er,eg,eb,ea=rgb_to_r_g_b({end_col,end_alpha})
if number==nil then number=0 end
local number_divs=(number/number_max)*divisions
cairo_set_line_width (cr,div_width)
--gradient calculations
for i=1,divisions do
if i<(divisions/2) and i<=number_divs then
colr=((mr-sr)*(i/(divisions/2)))+sr
colg=((mg-sg)*(i/(divisions/2)))+sg
colb=((mb-sb)*(i/(divisions/2)))+sb
cola=((ma-sa)*(i/(divisions/2)))+sa
elseif i>=(divisions/2) and i<=number_divs then
colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+mr
colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+mg
colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+mb
cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ma
else
colr=br
colg=bg
colb=bb
cola=ba
end
cairo_set_source_rgba (cr,colr,colg,colb,cola)
cairo_move_to (cr,bar_startx+((div_width+div_gap)*i-1),bar_starty)
cairo_rel_line_to (cr,0,div_height)
cairo_stroke (cr)
end
--#########################################################################################################
end-- if updates>5
bartab=nil
colr=nil
colg=nil
colb=nil
cola=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
function conky_draw_bg(bgtab)
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)
local cr = cairo_create(cs)
--#########################################################################################################
--convert to table
local bgtab=loadstring("return" .. bgtab)()
local r=bgtab[1]
local x=bgtab[2]
local y=bgtab[3]
local w=bgtab[4]
local h=bgtab[5]
local color=bgtab[6]
local alpha=bgtab[7]
if w==0 then
w=tonumber(conky_window.width)
end
if h==0 then
h=tonumber(conky_window.height)
end
cairo_set_source_rgba (cr,rgb_to_r_g_b({color,alpha}))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
--the drawing part---------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
--#########################################################################################################
bgtab=nil
w=nil
h=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
function conky_luacal(caltab)
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)
local cr = cairo_create(cs)
--####################################################################################################
local caltab=loadstring("return" .. caltab)()
local cal_x=caltab[1]
local cal_y=caltab[2]
local tfont=caltab[3]
local tfontsize=caltab[4]
local tc=caltab[5]
local ta=caltab[6]
local bfont=caltab[7]
local bfontsize=caltab[8]
local bc=caltab[9]
local ba=caltab[10]
local hfont=caltab[11]
local hfontsize=caltab[12]
local hc=caltab[13]
local ha=caltab[14]
local spacer=caltab[15]
local gaph=caltab[16]
local gapt=caltab[17]
local gapl=caltab[18]
local sday=caltab[19]
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b({tc,ta})
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b({bc,ba})
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b({hc,ha})
--###################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( { year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( { year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
if i<=start_day then
dnum[i]=" "
else
dn=i-start_day
if dn=="nil" then dn=0 end
if dn<=9 then dn=(spacer .. dn) end
if i>x then dn="" end
dnum[i]=dn
dnumh[i]=dn
if dn==(spacer .. today) or dn==today then
dnum[i]=""
end
if dn==(spacer .. today) or dn==today then
dnumh[i]=dn
place=i
else dnumh[i]=" "
end
end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
if tonumber(sday)==0 then
dys={"SU","MO","TU","WE","TH","FR","SA"}
else
dys={"MO","TU","WE","TH","FR","SA","SU"}
end
--draw calendar titles
for i=1,7 do
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
for i=fn,fn+6 do
cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
cairo_show_text (cr, dnum[i])
cairo_stroke (cr)
end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
for i=fn,fn+6 do
cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
cairo_show_text (cr, dnumh[i])
cairo_stroke (cr)
end
end
--#########################################################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
function conky_luaimage(imtab)
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)
local cr = cairo_create(cs)
--#########################################################################################################
local imtab=loadstring("return" .. imtab)()
local im_x=imtab[1]
local im_y=imtab[2]
local im_w=imtab[3]
local im_h=imtab[4]
local file=imtab[5]
local show = imlib_load_image(file)
if show == nil then return end
imlib_context_set_image(show)
if tonumber(im_w)==0 then
width=imlib_image_get_width()
else
width=tonumber(im_w)
end
if tonumber(im_h)==0 then
height=imlib_image_get_height()
else
height=tonumber(im_h)
end
imlib_context_set_image(show)
local scaled=imlib_create_cropped_scaled_image(0, 0, imlib_image_get_width(), imlib_image_get_height(), width, height)
imlib_free_image()
imlib_context_set_image(scaled)
imlib_render_image_on_drawable(im_x, im_y)
imlib_free_image()
show=nil
--#########################################################################################################
imtab=nil
height=nil
width=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
function conky_tex_bg(textab)
local textab=loadstring("return" .. textab)()
local tex_file=textab[6]
local surface = cairo_image_surface_create_from_png(tostring(tex_file))
local cw,ch = conky_window.width, conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, cw,ch)
local cr=cairo_create(cs)
--#########################################################################################################
--convert to table
local r=textab[1]
local x=textab[2]
local y=textab[3]
local w=textab[4]
local h=textab[5]
if w=="0" then
w=cw
end
if h=="0" then
h=ch
end
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
--the drawing part---------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_clip (cr)
cairo_new_path (cr);
--image part
cairo_set_source_surface (cr, surface, 0, 0)
cairo_paint (cr)
--#########################################################################################################
textab=nil
w=nil
h=nil
cairo_destroy(cr)
cairo_surface_destroy (cs)
cairo_surface_destroy (surface)
cr=nil
return ""
end-- end main function
function conky_luatext(txttab)--x,y,c,a,f,fs,txt,j ##################################################
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)
local cr = cairo_create(cs)
--#########################################################################################################
--convert to table
local txttab=loadstring("return" .. txttab)()
local x=txttab[1]
local y=txttab[2]
local c=txttab[3]
local a=txttab[4]
local f=txttab[5]
local fs=txttab[6]
local j=txttab[7]
local txt=txttab[8]
cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fs)
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,txt,extents)
local wx=extents.x_advance
cairo_set_source_rgba (cr,rgb_to_r_g_b({c,a}))
if j=="l" then
cairo_move_to (cr,x,y)
elseif j=="c" then
cairo_move_to (cr,x-(wx/2),y)
elseif j=="r" then
cairo_move_to (cr,x-wx,y)
end
cairo_show_text (cr,txt)
cairo_stroke (cr)
--#########################################################################################################
txttab=nil
cairo_destroy(cr)
cairo_surface_destroy (cs)
cr=nil
return ""
end-- end main functionLast edited by lwfitz (2012-08-12 06:13:31)
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
So im looking through here and wondering is there a way to add your top..lets say 5 processes that are using CPU and how much CPU their using?
Any sound can shake the earth...I wanna move hearts~!
Skype me if it would help you help me make my #! experiece better and easier.
AlucardsRequiem
Offline
So im looking through here and wondering is there a way to add your top..lets say 5 processes that are using CPU and how much CPU their using?
Top CPU
${top name 1} ${top cpu 1}
${top name 2} ${top cpu 2}
${top name 3} ${top cpu 3}
${top name 4} ${top cpu 4} Top Memory
${top mem 1} ${top pid 1}
${top mem 2} ${top pid 2}
${top mem 3} ${top pid 3}
${top mem 4} ${top pid 4}Thats what worked for me
Last edited by lwfitz (2012-08-12 06:38:45)
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Ah ok, Very cool. Thank you.
One small thing. Does it matter what "section" I put this under? or just anywhere in there?
Last edited by Exmix (2012-08-12 06:41:54)
Any sound can shake the earth...I wanna move hearts~!
Skype me if it would help you help me make my #! experiece better and easier.
AlucardsRequiem
Offline
^ Your welcome 
You can put it anywhere you want it as long as its below TEXT
Last edited by lwfitz (2012-08-12 06:49:23)
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Ah very cool. Thanks. 
Any sound can shake the earth...I wanna move hearts~!
Skype me if it would help you help me make my #! experiece better and easier.
AlucardsRequiem
Offline
Secondary question:
I got my temps in Fahrenheit but the lua bar max's out and shows my cpu temp as in the lava range.......... Im using Mr. Peachys all combined lua
TEMP ${hwmon 1 temp 2}°F${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}
what value are you getting from ${hwmon 1 temp 2}?
can you post a pic
Offline
@ lwfitz & mrpeachy
lwfitz wrote:Secondary question:
I got my temps in Fahrenheit but the lua bar max's out and shows my cpu temp as in the lava range.......... Im using Mr. Peachys all combined lua
TEMP ${hwmon 1 temp 2}°F${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}what value are you getting from ${hwmon 1 temp 2}?
can you post a pic
You beat me to it mrpeachy. Mind you I couldn't sleep until 5 this morning and then when I did I slept until 11. 
Plus I was going to suggest that lwfitz look at using 'platform' - nice little gem picked up from VastOne. It was mentioned that at times 'hwmon' changes what's what as things boot up. but 'platform' is a constant. Never happened to me, I though, until one day - no temps. Got my answer by doing a search here: (vastone+platform) Thanks again VastOne
Also, lwfitz, your terminal is showing temps in C not F:
Core 0: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 1: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 2: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 3: +55.0°C (high = +84.0°C, crit = +100.0°C)so if you have them converted using 'temperature_unit' above TEXT those values need to be changed for the LUA script:
84°C = 183.2°F and 100°C = 212°F
54°C = 129.2°F <<<--- this is important for what you need.
See the lines like this (in quotes to get colour):
${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}
You've already passed the max value for the line - that 100 is the top limit. Pump that up to about 190, between 'high' & 'critical' it should look a bit more reasonable.
mrpeachy please correct me if I'm wrong here ... I use °C and have mine set at 85(°C)
Offline
what value are you getting from ${hwmon 1 temp 2}?
can you post a pic
Here you go
@ lwfitz & mrpeachy
mrpeachy wrote:lwfitz wrote:Secondary question:
I got my temps in Fahrenheit but the lua bar max's out and shows my cpu temp as in the lava range.......... Im using Mr. Peachys all combined lua
TEMP ${hwmon 1 temp 2}°F${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}what value are you getting from ${hwmon 1 temp 2}?
can you post a picYou beat me to it mrpeachy. Mind you I couldn't sleep until 5 this morning and then when I did I slept until 11.
Plus I was going to suggest that lwfitz look at using 'platform' - nice little gem picked up from VastOne. It was mentioned that at times 'hwmon' changes what's what as things boot up. but 'platform' is a constant. Never happened to me, I though, until one day - no temps. Got my answer by doing a search here: (vastone+platform) Thanks again VastOne
Also, lwfitz, your terminal is showing temps in C not F:
Core 0: +54.0°C (high = +84.0°C, crit = +100.0°C) Core 1: +54.0°C (high = +84.0°C, crit = +100.0°C) Core 2: +54.0°C (high = +84.0°C, crit = +100.0°C) Core 3: +55.0°C (high = +84.0°C, crit = +100.0°C)so if you have them converted using 'temperature_unit' above TEXT those values need to be changed for the LUA script:
84°C = 183.2°F and 100°C = 212°F
54°C = 129.2°F <<<--- this is important for what you need.
See the lines like this (in quotes to get colour):
${lua gradbar {90,127,"${hwmon 1 temp 2}",100,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}
You've already passed the max value for the line - that 100 is the top limit. Pump that up to about 190, between 'high' & 'critical' it should look a bit more reasonable.
mrpeachy please correct me if I'm wrong here ... I use °C and have mine set at 85(°C)
And after changing the 100 to
${font StyleBats:size=10}${color1}k${voffset -1}${font}${color2} TEMP ${hwmon 1 temp 2}°F${lua gradbar {95,40,"${hwmon 1 temp 2}",200,50,2,10,1,0xFFFFFF,0.25,0x00FF00,1,0xFFFF00,1,0xFF0000,1}}It now looks like
Do I need to convert the other numbers next to the 100 as well? Thanks for the help guys Im headed to a job but when I get back Ill look into platform
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
@Sector11 - correct indeed
the 4th entry
{95,40,"${hwmon 1 temp 2}",200is the maximum value
here are what all the numbers mean in order:
x position top left
y position top left
conky value to display, eg "${cpu cu0}" or "${memperc}" conky object must be in quotes
max value of conky object set above
number of divisions
width of divisions
height of divisions
gap between divisions
background color
background alpha
start color
start alpha
middle color
middle alpha
end color
end alphaso adjusting those other numbers affect the look of the bars
Last edited by mrpeachy (2012-08-12 17:41:35)
Offline
@Sector11 - correct indeed
the 4th entry{95,40,"${hwmon 1 temp 2}",200is the maximum value
Put a mare on the wall: LUA - Sector11 was correct! Made my day.
That you mrpeachy.
@lwfitz
The platform thing isn't so hard.
Mine reads:
12 Aug 12 | 15:10:02 ~
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +30.0°C (crit = +110.0°C)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +28.6°C (high = +70.0°C)
f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V: +3.46 V
in1: +1.35 V
in2: +1.51 V
in3: +0.86 V
in4: +0.00 V
in5: +0.00 V
in6: +0.00 V
3VSB: +3.41 V
Vbat: +2.90 V
fan1: 1997 RPM
fan2: 0 RPM ALARM
fan3: 0 RPM ALARM
temp1: +37.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +255.0°C, hyst = +251.0°C) sensor = transistor
temp2: +34.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +100.0°C, hyst = +96.0°C) sensor = thermistor
temp3: +127.0°C (high = +70.0°C, hyst = +68.0°C) ALARM (CRIT)
(crit = +85.0°C, hyst = +83.0°C) sensor = transistor
12 Aug 12 | 15:10:10 ~
$... and as VastOne explained, acpitz-virtual-0, k10temp-pci-00c3 and f71862fg-isa-0a00 are the keys.
So on yours:
luke@crunchbang:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +54.0°C (crit = +103.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 1: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 2: +54.0°C (high = +84.0°C, crit = +100.0°C)
Core 3: +55.0°C (high = +84.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +70.0°CThe keys are: acpitz-virtual-0, coretemp-isa-0000 and radeon-pci-0100
On mine under: /sys/devices/platform
I see:
/sys/devices/platform/alarmtimer
/sys/devices/platform/f71882fg.2560 <<-- there I am.
/sys/devices/platform/Fixed MDIO bus.0
/sys/devices/platform/i8042
/sys/devices/platform/microcode
/sys/devices/platform/pcspkr
/sys/devices/platform/power
/sys/devices/platform/reg-dummy
/sys/devices/platform/serial8250here's hoping you have:
/sys/devices/platform/coretemp-isa-0000=======================================
Looks like you have an Intel quad core.
Can you run a simple test conky for me:
TEXT
Core 0: ${cpu cpu1}
Core 1: ${cpu cpu2}
Core 2: ${cpu cpu3}
Core 3: ${cpu cpu4}
${hr 1}
Average: ${cpu cpu0}Run it long enough to find out if ${cpu cpu0} reports an average or is a clone of cpu1 as one person insists " CPU0 is NOT an average of all of them. That's been disproved repeatedly by those who have multiple cores." I can not find one instance of "disproved" let alone "disproved repeatedly".
Mine - AMD Athlon(tm) II X3 450 Processor
And with the above eliminating the "Core 3: ${cpu cpu4}" ${cpu cpu0} gives me an average - have to let it run a but to see.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.