SEARCH

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

You are not logged in.

#3351 2012-10-18 17:18:01

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

McLovin wrote:

Hey mrpeachy, I was looking at your iso graph lua, and its giving me an idea, I was wondering if maybe there was a way to use the direct conky variable calls that you're using in it on other types of lua scripts, such as a ring.lua? I've been trying to get a diskio call to work in a lua script for a little while, and have tried everything I can think of, conky_parse, exec, and anything else I could think of, and just cannot seem to get it to work, but the way you're calling on the conky variable in your iso script, I think it would work with no issues, wondering what your thought on it are.

which script are you trying to use?
and which command in particular?

Offline

Be excellent to each other!

#3352 2012-10-18 18:09:45

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

ok, as promised, here is the entire conky set-up in an archive, and ready to be downloaded, this is the link for the download http://dl.dropbox.com/u/124517/mcrings-1.tar.gz
I edited it slightly, just make the temps a bit clearer, and easier to see, so here is an updated screenshot
abqDF63Y.jpg

Edit: had to change the download link

Last edited by McLovin (2012-10-18 20:20:11)


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3353 2012-10-18 18:28:12

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

Re: Conky v1.9 Thread

^ Thanks McLovin...

It would appear that a script is missing according to this in the conky

${texeci 60 perl ~/mcrings-1/scripts/gmail.pl n} new gmail(s).

There is not a gmail.pl in the archive.


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#3354 2012-10-18 18:37:21

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

McLovin wrote:

ok, as promised, here is the entire conky set-up in an archive, and ready to be downloaded, this is the link for the download http://thelinuxtweaker.com/downloads/co … s-1.tar.gz
I edited it slightly, just make the temps a bit clearer, and easier to see, so here is an updated screenshot
abqDF63Y.jpg

you are correct, i apologize, that line should read

${texeci 60 perl ~/mcrings-1/scripts/mod-gmail.pl n} new gmail(s).

sorry about that, and I will fix that and upload a new archive
Edit: ok, file fixed, and new archive uploaded, same name, same link, so no need to worry about anything, if anyone finds any more issues, please let me know

Last edited by McLovin (2012-10-18 18:39:47)


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3355 2012-10-18 23:03:28

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Conky v1.9 Thread

McLovin Killer setup!!
I really like the bargraphs!

Nice Work!! big_smile

Offline

#3356 2012-10-18 23:12:43

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

falldown wrote:

McLovin Killer setup!!
I really like the bargraphs!

Nice Work!! big_smile

Thank you, I get alot of ideas from ConkyPitStop, and wanted to see if maybe I could make something close to that level,as I look at the ones there from people like you, mrpeachy, and sector11, and try to get my stuff to that level.
Also, thank you for the weather icons, lol. I decided to edit the stock conkyForecast script to use those instead.

Last edited by McLovin (2012-10-18 23:14:38)


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3357 2012-10-18 23:44:10

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

Re: Conky v1.9 Thread

McLovin wrote:
falldown wrote:

McLovin Killer setup!!
I really like the bargraphs!

Nice Work!! big_smile

Thank you, I get alot of ideas from ConkyPitStop, and wanted to see if maybe I could make something close to that level,as I look at the ones there from people like you, mrpeachy, and sector11, and try to get my stuff to that level.
Also, thank you for the weather icons, lol. I decided to edit the stock conkyForecast script to use those instead.

Well, I would say you have more than succeeded in attaining your goal - - - BIG TIME!

Beautiful and unique!

This I know you use;

  • conkyforecast

... but one quick question; do you all of this as well?

  • conkybanshee

  • conkyclementine

  • conkyemail

  • conkyexaile

  • conkygooglecalendar

  • conkygooglereader

  • conkyguayadeque

  • conkykeyring

  • conkymisc

  • conkypidgin

  • conkyrhythmbox

  • conkytransmission

Really really nice work!


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

Offline

#3358 2012-10-18 23:55:05

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

Re: Conky v1.9 Thread

PackRat wrote:

@Sector11

Found the script here; there are some directions/solutions for non-USA useage:

https://bbs.archlinux.org/viewtopic.php?id=37381

Great!  Thank you!  Just grabbed it!  Appreciate it.

There is another faster easier way to get today's weather though:

TEXT

=== The conky weather command ===

${color7}Temperature: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE temperature}°C
${color7}Cloud Cover: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE cloud_cover}
${color7}Pressure ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE pressure} millbar
${color7}Wind Speed: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_speed} km/h
${color7}Wind Direction: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_dir} @ ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_dir_DEG}${color}°
${color7}Humidity: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE humidity}%
${color7}Last Update UTC:: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE last_update}

adqArq7l.jpg

EDIT Tried my code ("SAM|AR|AR007|BUENOS AIRES") it didn't work.

Last edited by Sector11 (2012-10-18 23:58:31)


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

Offline

#3359 2012-10-18 23:55:05

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

I dont use all of them, but I included them as there are things you can change that you may require them.
That said, the ones that are being used in the scripts,
1: conkyTransmission
2: conkyForecast
3: conkyBanshee
4: conkyRhythmbox
5: conkyClementine
6: conkyTransmission
7: conkyGoogleCalendar


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3360 2012-10-19 00:02:12

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

Re: Conky v1.9 Thread

McLovin wrote:

I dont use all of them, but I included them as there are things you can change that you may require them.
That said, the ones that are being used in the scripts,
1: conkyTransmission
2: conkyForecast
3: conkyBanshee
4: conkyRhythmbox
5: conkyClementine
6: conkyTransmission
7: conkyGoogleCalendar

Perfect - thanks!


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

Offline

#3361 2012-10-19 00:10:25

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

just so you know, if you only use one media player, you can remove the ones for the rest of them, I just tend to use different media players depending on what it is I want to use at that moment, I'm very indecisive lol.
so if you only use rhythmbox, you can remove the other ones, and the same for the other media player scripts.


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3362 2012-10-19 05:30:34

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

So Im trying to add an image behind my conky but Im having a problem (big surprise I know) .
I can add one like this

 ${image /path/to/image.png -p 0,0 -s 100x100}

But I wanted to insert it using mrpeachys allcombined.lua.
So I add this

 ${lua luaimage {x_position,y_position,310,175,"/home/luke/images/wallpapers/black.jpg"}}

to my conky and I get this error

Conky: llua_do_call: function conky_luaimage execution failed: /home/luke/conky/allcombined.lua:289: error in function 'imlib_render_image_on_drawable'.
     argument #1 is 'nil'; 'number' expected.

Conky: llua_do_call: function conky_luaimage execution failed: /home/luke/conky/allcombined.lua:289: error in function 'imlib_render_image_on_drawable'.
     argument #1 is 'nil'; 'number' expected.

My guess is Im forgetting something.

Heres the

allcombined.lua

--[[ 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 function

conky_net

background no
update_interval .2
total_run_times 0
 
double_buffer yes
#no_buffers yes
 
text_buffer_size 10240
imlib_cache_size 10240
format_human_readable yes

minimum_size 330 175
maximum_width 350

gap_x 10
gap_y 10
use_xft yes
xftfont Sans:size=10
xftalpha .8
 
uppercase no

# Text alignment, other possible values are commented
#alignment middle_left
#alignment middle_middle
#alignment middle_right
#alignment top_middle
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
#alignment bottom_middle

#############################
# - Window specifications - #
#############################
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
draw_graph_borders no
show_graph_scale yes
show_graph_range no
short_units yes
temperature_unit fahrenheit

## Set the path to your script here.
lua_load /home/luke/conky/allcombined.luA

## lua funcions
## background ##################################################################
#${lua draw_bg {corner_radius,x_position,y_position,width,height,color,alpha}}
#note for background: set width=0 - width will be conky window width, set height=0 - height will be conky window height
## gradient bars ###############################################################
#${lua gradbar {x_position,y_position,"conky_object",object_max_value,number_of_divisions,division_width,division_height,division_gap,bg_color,bg_alpha,start_color,start_alpha,mid_color,mid_alpha,end_color,end_alpha}}
## calendar ###############################################################
#${lua luacal {x_position,y_position,"title_font",title_fontsize,title_color,title_alpha,"dates_font",dates_fontsize,dates_color,dates_alpha,"highlight_font",highlight_fontsize,highlight_color,highlight_alpha,"spacer",colum_gap,title_gap,row_gap,start_day}
#note for calendar: start day... 0=sunday, 1=monday ... "spacer" can help align calendar with non fix width fonts
## textured background ###############################################################
#${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}
## lua draw images ###############################################################
#${lua luaimage {x_position,y_position,width,height,"/path/to/image"}}
#note for images: set width=0 - width will be image width, set height=0 - height will be image height
## lua draw text ###############################################################
#${lua luatext {x_position,y_position,color,alpha,"font",fontsize,"justify"}}
# not for text: justify can be "r" = right, "c" = center, "l" = left
TEXT
${lua luaimage {x_position,y_position,310,175,"/home/luke/images/wallpapers/black.jpg"}}
#${lua draw_bg 20 0 0 0 0 0x000000 0.5}
 Router IP:${alignr 5}${gw_ip}
 Local IP:${alignr 5}${addr wlan0}
 Public IP: ${alignr 5}${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
 Connection type: ${alignr 5}${gw_iface}
 SSID:${alignr 5}${wireless_essid wlan0}
 Speed: ${alignr 5} ${wireless_bitrate wlan0}
 Connection quality:${alignr -56}${wireless_link_qual_perc wlan0}%            
 Upload Speed:${alignr 5} ${upspeed wlan0}
 Download Speed:${alignr 5}${downspeed wlan0}

Also How would I round the edges of a conky with an image? Thanks for the help


EDIT:

Ok I must be in need of coffee cuz I totally missed setting the x and y positions when calling the image roll

So now I guess the only issue Im having is rounding the edges of the conky (hope Im explaining good enough)

Last edited by lwfitz (2012-10-19 05:42:35)

Offline

#3363 2012-10-19 05:52:47

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

@lwfitz
try using the  conky_tex_bg function

${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}

convert the jpg to png first

Offline

#3364 2012-10-19 06:00:44

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

mrpeachy wrote:

@lwfitz
try using the  conky_tex_bg function

${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}

convert the jpg to png first

Oh crap......... *note to self* read all other options next time.................. Sorry about that hmm

Thanks mrpeachy

Last edited by lwfitz (2012-10-19 06:08:06)

Offline

#3365 2012-10-19 06:36:01

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

I seem to be taking from just about everyones configs for this one

tZnhvbg



@mrpeachy
I had an idea about the the isometric bars........... What if the color changed as the bar got higher kinda like the allcombined.lua does? Is that just crazy talk? If so it was Sector11's idea cool

Last edited by lwfitz (2012-10-19 06:52:54)

Offline

#3366 2012-10-19 06:39:19

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

Re: Conky v1.9 Thread

^ That looks awesome...   I've got to know, is the moon a part of the wall or part of the weather script?

Nicely done lwfitz! cool


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#3367 2012-10-19 06:40:58

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

VastOne wrote:

^ That looks awesome...   I've got to know, is the moon a part of the wall or part of the weather script?

Nicely done lwfitz! cool


Thanks buddy cool

The moon is from Teo's accuweather script. I just made it larger

Offline

#3368 2012-10-19 06:42:18

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

Re: Conky v1.9 Thread

^ I thought it might be... nice artistic touch to the wall and theme, I like it!


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#3369 2012-10-19 06:46:52

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

VastOne wrote:

^ I thought it might be... nice artistic touch to the wall and theme, I like it!

Funny thing is I didnt even realize how perfect the moon looked there until you mentioned it........... I mean............ It was on purpose........... yeah big_smile

Offline

#3370 2012-10-19 08:28:26

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

lwfitz wrote:

I seem to be taking from just about everyones configs for this one

tZnhvbg
@mrpeachy
I had an idea about the the isometric bars........... What if the color changed as the bar got higher kinda like the allcombined.lua does? Is that just crazy talk? If so it was Sector11's idea cool

well the answer is yes, entirely possible
if you can think it up then it can probanly be done with a lua script big_smile

Offline

#3371 2012-10-19 09:27:49

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

Re: Conky v1.9 Thread

i've updated the isometric bars a bit:

vZnhvbA

i wish that my screen resoultion is a bit bigger smile

Offline

#3372 2012-10-19 13:00:00

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

Re: Conky v1.9 Thread

@ lwfitz

Hey ... looking really nice there.  Love the black-n-white thing you have going.

Looks like it's been a busy night, doesn't anyone sleep?  big_smile


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

Offline

#3373 2012-10-19 15:22:02

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

@ lwfitz
I like that, I need to give the iso bars things a try, and Taos accuweather script. I love the way the moon looks in the corner. I also have to admit, it's a little strange to see something from one of my "conkie"? "conkys"? (I don't know, what's the plural for conky?) in another one lol.

Sector11 wrote:

@ lwfitz

Hey ... looking really nice there.  Love the black-n-white thing you have going.

Looks like it's been a busy night, doesn't anyone sleep?  big_smile

Sleep? what's sleep? We don't need no stinkin sleep! (That's the sleep deprivation talking)


8o Got /? | The first GUI, and "on-line" system was created in 1968 by Douglas Engelbart, the system included modern day innovations such as video conferencing, and on-line file sharing.

Offline

#3374 2012-10-19 15:40:45

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

Re: Conky v1.9 Thread

@ lionhead and Sector11... 

I think the most overlooked part of that epic layout is the KFC script and icon setup and used...

My favorite part!  I may have to borrow that for  my tint2 schemes... wink


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

Help fund CrunchBang, donate to the project!

#3375 2012-10-19 16:21:38

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

mrpeachy wrote:

well the answer is yes, entirely possible
if you can think it up then it can probanly be done with a lua script big_smile

Whew........ In that case it was my idea tongue
Itll give me something to work on, break and then ask you how to fix big_smile

@Sector11

Thanks buddy! The black and white desktops seem to be a trend with me......... Im gonna surprise you all and do a bright orange one one day.
And no........ who needs sleep when theres conky.......... I might have a problem.

@mclovin
Thanks! Haha yeah I can see how that might be a bit odd. That clock fit right in, I didnt change any of it.

@VastOne
Borrow away buddy. Im glad you like it cool

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