You are not logged in.
Nope.. still kicking out the same error message.
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
I have mostly finished the lua script display for my weather script.
You can find the current code for it in the thread I started for the script.
It still needs some configuration options added and a small change to the way button variables are stored before I write setup instructions for it.
Offline
Nope.. still kicking out the same error message.
ah ha... i hope!
change this:
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})to this:
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)Offline
That did it. 
So Peachy what does {} inside of () mean?
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
That did it.
So Peachy what does {} inside of () mean?
() is how you send info to a function
{} is a table
so ({}) is sending information to a function in the form of a table
but i changed the color convert function to take 2 separate variables instead of a table containing the 2 variables
Offline
almost done, just need to write the short version of weather
i thought it was going to be a big pain in the butt to do it all in conkyrc code using if_match, but it was actually quite easy 
i have some improvements to the button script so when i get everything together and sorted out ill post all the code needed for this
Offline
Peachy looks good. I want to check it out when you get it done. 
Here is the latest additions..
closed..
open..
and both open..
I think I will add an alerts button and then I will do a theme.
Also need to tighten it up and get rid of the large gaps.
Last edited by falldown (2012-08-02 00:17:49)
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
while i cant muster the enthusiasm to update the button how to with the changes, i can still post the files 
here is the conkyrc
settings
settings
settings
own_window_title conkysideclick
#setup weather
#lua_load /home/mcdowall/v9000/v9000.lua
#lua_load /home/mcdowall/v9000/smallclick.lua
#lua_draw_hook_post weather
## Set the path to your script here.
lua_load /home/mcdowall/lua/sideclick/sideclick.lua
lua_load /home/mcdowall/lua/sideclick/sidefunctions.lua
lua_draw_hook_pre get_mouse conkysideclick
## lua functions###########################################################################################
## background #############################################################################################
# ${lua draw_bg {r=,x=,y=,w=,h=,dr=,fc=,fa=,lw=,lc=,la=}}
# r=corner radius
# x=x position top left
# y=y position top left
# w=width of background, set 0 to set to conky window width
# h=height of background, set 0 to set to conky window height
# dr=draw type, 1=filled in, 2=outline, 3=fill and outline
# fc=fill color, eg 0xffffff=white, only need for fill type 1 or 3
# fa=fill alpha, eg 1=full opaque, only need for fill type 1 or 3
# lw=line width in, only need for fill type 2 or 3
# lc=line color, eg 0xffffff=white, only need for fill type 2 or 3
# la=line alpha, eg 1=full opaque, only need for fill type 2 or 3
## gradient bars ##########################################################################################
#${lua gradbar {x=,y=,v="",vmax=,dn=,dw=,dh=,dg=,bc=,ba=,sc=,sa=,mc=,ma=,ec=,ea=}}
# x=x position top left
# y=y position top left
# v=conky value to display, eg "${cpu cu0}" or "${memperc}" conky object must be in quotes
# vmax=max value of conky object set above
# dn=number of divisions
# dw=width of divisions
# dh=height of divisions
# dg=gap between divisions
# bd=background color
# ba=background alpha
# sc=start color
# sa=start alpha
# mc=middle color
# ma=middle alpha
# ec=end color
# ea=end alpha
## calendar ###############################################################################################
#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gc=,gt=,gr=,sd=}}
# x=x position top left
# y=y position top left
# tf=title font, eg "mono" must be in quotes
# tfs=title font size
# tc=title color
# ta=title alpha
# bf=body font, eg "mono" must be in quotes
# bfs=body font size
# bc=body color
# ba=body alpha
# hf=highlight font, eg "mono" must be in quotes
# hfs=highlight font size
# hc=highlight color
# ha=highlight alpha
# sp=spacer, eg " " ... 0,1 or 2 spaces can help with positioning of non-monospaced fonts
# gt=gap from title to body
# gh=gap horizontal between columns
# gv=gap vertical between rows
# sd=start day, 0=Sun, 1=Mon
## textured background ####################################################################################
#${lua tex_bg {r=,x=,y=,w=,h=,file=""}}
# r=corner radius
# x=x position top left
# y=y position top left
# w=width of background, set 0 to set to conky window width
# h=height of background, set 0 to set to conky window height
# file=path to texture file, eg "/home/username/image.png", must be in quotes, must be a .png file
## lua draw images ########################################################################################
#${lua luaimage {x=,y=,w=,h=,file=""}}
# x=x position top left
# y=y position top left
# w=image width, set 0 for full image width
# h=image height, set 0 for full image height
# file=path to image file, eg "/home/username/image.png", must be in quotes
## lua draw text ##########################################################################################
#${lua luatext {x=,y=,c=,a=,f="",fs=,txt="",j=""}}
# x=x position top left
# y=y position top left
# c=text color
# a=text alpha
# f=font, eg "mono" , must be in quotes
# fs=font size
# txt=text to show, eg "hello world", must be in quotes
# j=justify can be "r" = right, "c" = center, "l" = left, must be in quotes
############################################################################################################
#${lua draw_bg {10,0,0,0,0,0x000000,0.3}}
template0 ${lua rc_button {btype=1,bname="date",dtype_off=2,blx_off=14.5,bly_off=697.5,blx_on=212.5,bw_off=35,bh_off=14,draw=0,doal_off=0.5}}
template1 ${lua rc_button {btype=1,bname="network",dtype_off=2,blx_off=14.5,bly_off=561.5,blx_on=212.5,bw_off=70,bw_on=30,bh_off=14,draw=0,doal_off=0.5}}
template2 ${lua rc_button {btype=1,bname="weather",dtype_off=2,blx_off=14.5,bly_off=409.5,blx_on=212.5,bw_off=65,bw_on=25,bh_off=14,draw=0,doal_off=0.5}}
template3 ${lua rc_button {btype=1,bname="process",dtype_off=2,blx_off=14.5,bly_off=191.5,blx_on=212.5,bw_off=73,bw_on=33,bh_off=14,draw=0,doal_off=0.5}}
template4 ${lua rc_button {btype=1,bname="system",dtype_off=2,blx_off=14.5,bly_off=18.5,blx_on=212.5,bw_off=60,bw_on=30,bh_off=14,draw=0,doal_off=0.5}}
TEXT
${if_match ${template4}==0}${lua tex_bg {r=20,x=0,y=2,w=260,h=165,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=1,y=3,w=258,h=163,dr=2,lw=2,lc=0x000000,la=1}}${font Sans:bold:size=9}${color4} SYSTEM ${font}
${voffset -3}${font Sans:size=24}${color2} GNU/Linux${font}
${voffset 3}${font Stylebats:size=10}${color1}j${voffset -2}${font}${color2} ${sysname} ${kernel}${alignr}${machine}
${font StyleBats:size=10}${color1}q${voffset -2}${font}${color2} System Uptime${alignr}${uptime_short}
${font StyleBats:size=10}${color1}o${voffset -2}${font}${color2} File System${alignr}${fs_type}
${font Sans:bold:size=9}${color4} HDD${font}
${font StyleBats:size=10}${color1}x${voffset -2}${font}${color2} ROOT${goto 95}${fs_used /}${goto 145}/ ${fs_size /}${alignr}${fs_free_perc /}% Free
${lua gradbar {x=5,y=117,v="${fs_used_perc /}",dn=80,ba=0.25}}
${font StyleBats:size=10}${color1}x${voffset -2}${font}${color2} HOME${goto 95}${fs_used /home}${goto 145}/ ${fs_size /home}${alignr}${fs_free_perc /home}% Free
${lua gradbar {x=5,y=144,v="${fs_used_perc /home}",dn=80,ba=0.25}}${voffset -15}
${else}${lua tex_bg {r=20,x=200,y=2,w=60,h=165,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=201,y=3,w=58,h=163,dr=2,lw=2,lc=0x000000,la=1}}${font Sans:bold:size=9}${color4}${goto 215}SYS${font}
${voffset 4}${goto 207}${font White Rabbit:size=22}${color2}UP
${goto 207}${font White Rabbit:size=16}${execi 60 uptime | awk '{print $3}' | sed 's/.$//'}
${voffset 4}${goto 207}${font White Rabbit:size=22}${color2}/RT
${goto 207}${font White Rabbit:size=16}${fs_used_perc /}
${voffset 4}${goto 207}${font White Rabbit:size=22}${color2}/HM
${goto 207}${font White Rabbit:size=16}${fs_used_perc /home}${voffset -1}${endif}
${if_match ${template3}==0}${lua tex_bg {r=20,x=0,y=172,w=260,h=210,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=1,y=173,w=258,h=208,dr=2,lw=2,lc=0x000000,la=1}}
${voffset 8}${font Sans:bold:size=8}${color4} PROCESSORS${font}
${font StyleBats:size=10}${color1}k${voffset -2}${font}${color2} CPU ${cpu cpu0}% ${lua gradbar {x=85,y=198,v="${cpu cpu0}",dn=50,ba=0.25}}
${font StyleBats:size=10}${color1}m${voffset -2}${font}${color2} TEMP ${hwmon 1 temp 1}°C${lua gradbar {x=85,y=211,v="${hwmon 1 temp 1}",dn=50,ba=0.25}}
${font StyleBats:size=10}${color1}k${voffset -2}${font}${color2} CPU1 ${cpu cpu1}% ${lua gradbar {x=85,y=224,v="${cpu cpu1}",dn=36,ba=0.25}}${goto 200}${freq_g 1} GHz
${font StyleBats:size=10}${color1}k${voffset -2}${font}${color2} CPU2 ${cpu cpu2}% ${lua gradbar {x=85,y=237,v="${cpu cpu2}",dn=36,ba=0.25}}${goto 200}${freq_g 2} GHz
${font StyleBats:size=10}${color1}k${voffset -2}${font}${color2} CPU3 ${cpu cpu3}% ${lua gradbar {x=85,y=250,v="${cpu cpu3}",dn=36,ba=0.25}}${goto 200}${freq_g 3} GHz
${voffset 4}${font Sans:bold:size=9}${color4} MEMORY${font}
${font StyleBats:size=10}${color1}l${voffset -2}${font}${color2} RAM${goto 97}${mem}${goto 145}/ ${memmax}${alignr}${memperc}% Used
${lua gradbar {x=5,y=292,v="${memperc}",dn=80,ba=0.25}}
${font Sans:bold:size=9}${color4} TOP PROCESSES${font}
${font StyleBats:size=10}${color1}l${voffset -2}${font}${color4} RAM${goto 155}${font StyleBats:size=10}${color1}k${voffset -2}${font}${color4} CPU
${color2}${top_mem name 1}${goto 60}${top_mem mem_res 1}${goto 100}${top_mem mem 1}%${goto 155}${top name 1}${goto 210}${top cpu 1}%
${top_mem name 2}${goto 60}${top_mem mem_res 2}${goto 100}${top_mem mem 2}%${goto 155}${top name 2}${goto 210}${top cpu 2}%
${top_mem name 3}${goto 60}${top_mem mem_res 3}${goto 100}${top_mem mem 3}%${goto 155}${top name 3}${goto 210}${top cpu 3}%
${else}${lua tex_bg {r=20,x=200,y=172,w=60,h=210,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=201,y=173,w=58,h=208,dr=2,lw=2,lc=0x000000,la=1}}
${voffset 8}${font Sans:bold:size=8}${color4}${goto 215}PROC${font}
${goto 207}${font White Rabbit:size=22}${color2}CPU
${goto 207}${font White Rabbit:size=22}${color2}${cpu cpu0}
${goto 207}${font White Rabbit:size=22}${color2}TMP
${goto 207}${font White Rabbit:size=22}${color2}${hwmon 1 temp 1}
${goto 207}${font White Rabbit:size=22}${color2}RAM
${goto 207}${font White Rabbit:size=22}${color2}${memperc}
${goto 207}${font White Rabbit:size=22}${color2}RUN
${goto 207}${font White Rabbit:size=22}${color2}${running_processes}${voffset 10}${endif}
${if_match ${template2}==0}${lua tex_bg {r=20,x=0,y=387,w=260,h=151,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=1,y=388,w=258,h=149,dr=2,lw=2,lc=0x000000,la=1}}
${voffset -5}${font Sans:bold:size=9}${color4} WEATHER${font}
${else}${lua tex_bg {r=20,x=200,y=387,w=60,h=151,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=201,y=388,w=58,h=149,dr=2,lw=2,lc=0x000000,la=1}}
${voffset -5}${font Sans:bold:size=9}${color4}${goto 215}WX${font}
${endif}
${if_match ${template1}==0}${lua tex_bg {r=20,x=0,y=543,w=260,h=130,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=1,y=544,w=258,h=128,dr=2,lw=2,lc=0x000000,la=1}}${voffset 12}${font Sans:bold:size=9}${color4} NETWORK${font}
${voffset 4}${color2}Public IP${goto 60}${xexeci 1800 curl ifconfig.me}${goto 160}${font PizzaDudeBullets:size=9.5}${color1}T${font}${color2} Down${goto 210}${downspeed eth0}
Private IP${goto 60}${xaddr eth0}${goto 160}${color4}${upspeedgraph eth0 20,90}
${voffset -18}${font PizzaDude Bullets:size=9.5}${color1}U${font}${color2} Downloaded${goto 100}${totaldown eth0}
${font PizzaDudeBullets:size=9.5}${color1}O${font}${color2} Uploaded${goto 100}${totalup eth0}${goto 160}${font PizzaDudeBullets:size=9.5}${color1}N${font}${color2} Up${goto 210}${upspeed eth0}
${time %B %Y}:${goto 160}${color4}${downspeedgraph eth0 20,90}
${voffset -18}${color2}${execi 1800 vnstat --oneline | awk -F";" '{print "D:"$9 " U:" $10}'}
${else}${lua tex_bg {r=20,x=200,y=543,w=60,h=130,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=201,y=544,w=58,h=128,dr=2,lw=2,lc=0x000000,la=1}}${voffset 12}${font Sans:bold:size=9}${color4}${goto 215}NET${font}
${color2}${font PizzaDudeBullets:size=26}${goto 212}T${font}
${voffset 4}${font White Rabbit:size=18}${goto 207}${downspeed eth0}
${font PizzaDudeBullets:size=26}${goto 212}N${font}
${voffset 4}${font White Rabbit:size=18}${goto 207}${upspeed eth0}${voffset 2}${endif}
${if_match ${template0}==0}${lua tex_bg {r=20,x=0,y=678,w=260,h=190,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=1,y=679,w=258,h=188,dr=2,lw=2,lc=0x000000,la=1}}${voffset -2}${font Sans:bold:size=9}${color4} TIME${font}
${goto 50}${font White Rabbit:size=32}${color2}${time %I:%M %p}${font}
${voffset 4}${font Sans:bold:size=9}${color4} DATE${font}
${lua luacal {x=100,y=755,tc=0x007f7f,bc=0xb2b2b2,hc=0x007f7f}}
${color2}${time %A}
${font Sans:bold:size=18}${color4}${time %d}${font}
${color2}${time %B}
${color2}${time %Y}${voffset -60}
${else}${lua tex_bg {r=20,x=200,y=678,w=60,h=190,file="/home/mcdowall/Pictures/steel.png"}}${lua draw_bg {r=20,x=201,y=679,w=58,h=188,dr=2,lw=2,lc=0x000000,la=1}}${voffset -2}${font Sans:bold:size=9}${color4}${goto 215}TIME${font}
${goto 207}${font White Rabbit:size=32}${color2}${time %I}${font}
${goto 207}${font White Rabbit:size=32}${color2}${time %M}${font}
${font Sans:bold:size=9}${color4}${goto 215}DATE${font}
${goto 207}${font White Rabbit:size=32}${color2}${time %d}${font}
${goto 207}${font White Rabbit:size=32}${color2}${time %m}${font}
${goto 207}${font White Rabbit:size=32}${color2}${time %y}${font}
${endif}the weather lua's are currently disabled till i write the new one
i did discover something IMPORTANT
the own_window_title you give your conky, which xwininfo searches for in the button script MUST be unique to the names of any of the associated files
ie having your conkyrc named conky_name and then having own_window_title conky_name can cause problems with xwininfo matching the wrong window info
these are all the files i used:
https://dl.dropbox.com/u/19008369/sideclick.tar.gz
Offline
i did discover something IMPORTANT
the own_window_title you give your conky, which xwininfo searches for in the button script MUST be unique to the names of any of the associated files
ie having your conkyrc named conky_name and then having own_window_title conky_name can cause problems with xwininfo matching the wrong window info
Was it matching your text editor instead of the conky?
Offline
mrpeachy wrote:i did discover something IMPORTANT
the own_window_title you give your conky, which xwininfo searches for in the button script MUST be unique to the names of any of the associated files
ie having your conkyrc named conky_name and then having own_window_title conky_name can cause problems with xwininfo matching the wrong window infoWas it matching your text editor instead of the conky?
i believe so
Offline
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Peachy I'm stumped on a theme... any suggestions?
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Peachy I'm stumped on a theme... any suggestions?
why not go with the blue cyber-conky theme?
Offline
I was thinking about it.
Very time consuming, but then again I don't have a deadline. 
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
I was thinking about it.
Very time consuming, but then again I don't have a deadline.
and I want it posted on this thread NO LATER than Monday!! 
Offline
and I want it posted on this thread NO LATER than Monday!!

Well.. I will try. 
I was also playing around with something along the lines of this..
closed..
opened..
Just a rough design.
I would need a brighter color scheme for the fonts and graphs.
Last edited by falldown (2012-08-02 19:19:31)
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
^ go with that then. very classy 
Offline



I agree Peachy.
It does have a classy look to it.
I might have to use the code to move each button up/down depending on which windows are open.
EDIT:
Much better looking. 
Last edited by falldown (2012-08-02 20:47:54)
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Peachy
Will commands like this..
If onebutton==0 and twobutton==1 then
threebuttonx="#"
end
--more stuff here--
if onebutton==1 and twobutton==0 then
threebuttonx="#"
endwork?
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
^ If your script is all lua it should work.
I did something like that in my weather script.
There is a link to it in my sig if you want to look at the code as an example.
Offline
Yep its all lua. (99.9% Peachy with a .1% of my gibberish)
I will take a look at your link arclance.
Last edited by falldown (2012-08-02 21:58:56)
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
^ Okay good, the script is kind of big so look around line 347 there is one example there.
if ((buttons["daily_hourly"] == 0) and (buttons["rad/sat_toggle"] == 0)) then
cr = fiveDay_Weather(cr, extents, wuAPI_Parsed, weatherData, blx, bly, localx, localy, localnowx, localnowy)
end --#There are a few more in other places if you want more examples.
Offline
Thanks for the help arclance.
This is working..
if calbutton==0 and timbutton==0 then
wthb=200
endI have some more to write and see if I can keep it all lined up. 
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Peachy's v9000 / Conky PitStop / My DA Page / VSIDO
Make it so....
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.