SEARCH

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

You are not logged in.

#326 2012-07-28 00:11:38

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

Re: interactive conky

Peachy I have been reading, just waiting for the IN DEPTH look at the...

button1=do_button({settings,settings,settings})
if button1==0 then
--do stuff when button is off
elseif button1==1 then
--do stuff if button is on
end--if button1==

do stuff when button is off & on stuff!! big_smile

Offline

Be excellent to each other!

#327 2012-07-28 00:52:44

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

Re: interactive conky

falldown wrote:

Peachy I have been reading, just waiting for the IN DEPTH look at the...
do stuff when button is off & on stuff!! big_smile

just finished part 3!

mrpeachy wrote:

NOTE - i'm not going into any detail about what to do with the output of your buttons, just explaining HOW to get the output big_smile

although maybe i can be convinced otherwise lol

Offline

#328 2012-07-28 02:57:05

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

Re: interactive conky

mrpeachy wrote:

NOTE - i'm not going into any detail about what to do with the output of your buttons, just explaining HOW to get the output big_smile

although maybe i can be convinced otherwise lol

I tend to overlook the NOTE sections of your tuts...
They remind me of my History teacher in high school always leaving little messages on the chalkboard.

NOTE- Please read chapters 15-17 and be prepared for discussion.

lol

I do believe that your Lua How-to thread has a detailed section on calling functions.. I was just being lazy!! big_smile
^I didn't see what I was looking for.

Say that I had a button.. (image of course)
And I wanted that button to call some conky_parse stuff as well as a lua graph or two. (,but I want to call this in lua.. not from the conkyrc)
Thats where I get mixed up at.

Last edited by falldown (2012-07-28 03:12:03)

Offline

#329 2012-07-28 03:49:19

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

Re: interactive conky

getting the allcombined functions to accept settings in the lua script wasn't as straightforward as i thought
but not that bad either

for example the gradient bar drawing function needs some additional line like this:

function conky_gradbar(bartab) -- {x=,y=,v="",vmax=,dn=,dw=,dh=,dg=,bc=,ba=,sc=,sa=,mc=,ma=,ec=,ea=} ################
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

if bartab[1]==nil then --ADDITIONAL LINES NEEDED FOR LUA SETUP
bartab=loadstring("return" .. bartab)() --ADDITIONAL LINES NEEDED FOR LUA SETUP
end --ADDITIONAL LINES NEEDED FOR LUA SETUP

--variable setup
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]
--calculations below
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 ###################################################################################

here is a working weather template that is calling a bar

--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION-
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--#######################################################################
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Sans"--font must be in quotes
default_font_size=10
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE
xpos1=5
xpos2=70
xpos3=40
ypos=405
gap=14

out({c=0xb2b2b2,a=1,f="Sans",fs=10,x=xpos1,y=ypos,txt="Weather for: "..weather_location.." @ "..now["time"]})
out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt="Wind Chill:"})
out({c=0xb2b2b2,a=1,x=xpos2,y=ypos+gap*1,txt=now["wind_chill"].."°F"})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*2,txt="Heat Index:"})
out({c=0xb2b2b2,a=1,x=xpos2,y=ypos+gap*2,txt=now["heat_index"].."°F"})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*3,txt="High / Low:"})
out({c=0xb2b2b2,a=1,x=xpos2,y=ypos+gap*3,txt=high_temp[1].."°F / "..low_temp[1].."°F"})


out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*8,txt="Wind:"})
out({c=0xb2b2b2,a=1,x=xpos2,y=ypos+gap*8,txt=now["wind_km"].." "..now["wind_nesw"].." ("..now["wind_deg"]..")"})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*4,txt="Hum:"})
out({c=0xb2b2b2,a=1,x=xpos3,y=ypos+gap*4,txt=now["humidity"].."%"})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*5,txt="DP:"})
out({c=0xb2b2b2,a=1,x=xpos3,y=ypos+gap*5,txt=now["dew_point"].."°"})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*6,txt="Bar:"})
out({c=0xb2b2b2,a=1,x=xpos3,y=ypos+gap*6,txt=now["pressure_mb"]})

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*7,txt="Vis:"})
out({c=0xb2b2b2,a=1,x=xpos3,y=ypos+gap*7,txt=now["visibility"]})

xpos4=90
xpos5=125
out({c=0xb2b2b2,a=1,x=xpos4,y=ypos+gap*4,txt="Ceil:"})
out({c=0xb2b2b2,a=1,x=xpos5,y=ypos+gap*4,txt=now["ceiling"]})

out({c=0xb2b2b2,a=1,x=xpos4,y=ypos+gap*5,txt="Ppt:"})
out({c=0xb2b2b2,a=1,x=xpos5,y=ypos+gap*5,txt=precipitation[1].."%"})

out({c=0xb2b2b2,a=1,x=xpos4,y=ypos+gap*6,txt="Cloud:"})
out({c=0xb2b2b2,a=1,x=xpos5,y=ypos+gap*6,txt=cloud_cover[1].."%"})

out({c=0xb2b2b2,a=1,x=xpos4,y=ypos+gap*7,txt="UV:"})
out({c=0xb2b2b2,a=1,x=xpos5,y=ypos+gap*7,txt=uv_index_num[1].." ("..uv_index_txt[1]..")"})

out({c=0x007f7f,a=1,fs=18,x=110,y=425,txt=now["conditions"]})
image({x=165,y=430,w=60,h=60,file=now["weather_icon"]})
image({x=210,y=480,w=40,h=40,file=now["wind_icon"]})
--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
--gradient bars
local val=conky_parse("${cpu cpu0}")
conky_gradbar({90,108,val,100,50,2,10,1,0xffffff,0.25,0x00ff00,1,0xffff00,1,0xff0000,1})
end--of weather_display function do not edit this line ##################
--#######################################################################

function rgb_to_r_g_b(col,alp) -- ONLY NEED ONE COPY OF THIS FUNCTION
return ((col / 0x10000) % 0x100) / 255, ((col / 0x100) % 0x100) / 255, (col % 0x100) / 255, alp
end

function conky_gradbar(bartab) -- {x=,y=,v="",vmax=,dn=,dw=,dh=,dg=,bc=,ba=,sc=,sa=,mc=,ma=,ec=,ea=} ################
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
if bartab[1]==nil then
bartab=loadstring("return" .. bartab)()
end
--variable setup
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]
--calculations below
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 ###################################################################################

you can adapt all the functions from allcombined.lua in the same way, paste them at the bottom of the weather script and activate them within the template
then in conkyrc you no longer need to load allcombined.lua

does that make sense?

Offline

#330 2012-07-28 04:32:07

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

Re: interactive conky

UPDATED easyclick.lua and additional files

been working on eliminating error messages and improving conkyrc restart

get new files here http://crunchbanglinux.org/forums/post/245759/#p245759

there was a problem where, if the cdonky rc was restarted, easyclick.lua had to be resaved in order for the buttons to start working
that has been fixed

the error messages in the terminal when setting up buttons in the conkyrc have been eliminated

I have included a new bash script called conky_restart.sh
unfortunately I'm not the greatest bash coder smile
so I'm sure (although short) it is badly written

#!/bin/bash

shpid="$(pgrep -nf 'conky_start.sh')"
xpid="$(pgrep -nf 'xdotool search --sync --classname conky')"
cpid="$(pgrep -nf 'conky -c /home/mcdowall/Desktop/conky/conky_start')"

kill -9 $shpid &
kill -9 $cpid &
kill -9 $xpid &
conky -c /home/mcdowall/Desktop/conky/conky_start &
sleep 2 &&
xdotool search --sync --classname conky behave %@ mouse-click getmouselocation >> /tmp/xdo

its important to make sure everything matches in terms of conky title and paths

the main point is to be able to restart the conkyrc so that buttons are responsive on the restart, and it does that

Last edited by mrpeachy (2012-07-28 04:41:24)

Offline

#331 2012-07-28 04:49:58

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: interactive conky

^ About your bash script...

You can use pkill with the same options as your pgrep lines instead of using both pgrep and kill.

pkill -9nf 'conky_start.sh'

Also you can use a lua script like this run with "lua_startup_hook" to reset anything that needs to be restarted when a conky is restarted.

function conky_start_xdotool()
    os.execute("pkill -f \"xdotool search --sync --classname conky behave %@ mouse-click getmouselocation\"")
    os.execute("xdotool search --sync --classname 'conky' behave %@ mouse-click getmouselocation 2> /dev/null >> /tmp/xdo &")
end --# function conky_start_xdotool()

I did mention the need to restart xdotool when you restart a conky a few days ago.
It might have got lost in the "window id" discussion.

Last edited by arclance (2012-07-28 04:58:03)

Offline

#332 2012-07-28 05:14:38

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

Re: interactive conky

@ arclance... i thought i could do that, but i wasn't sure, but i think that i might want to use the generated strings in if statements to test if i need to run the kill commands...at least with killing "conky_start.sh" which may not be running

or i could just have the one script that starts and restarts... still thinking about that one... but the restart script is working well so far

i was thinking about the startup_hook... but i want to keep the xdotool logging part out of the hands of the lua script
as it seems that part is quite fickle! ... but that may just be being paranoid smile

Offline

#333 2012-07-28 05:37:59

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

Re: interactive conky

here is a simple implementation of an interactive conky all set up through the conkyrc
Screenshot_at_2012_07_28_00_34_51.jpg
http://www.youtube.com/watch?v=RNzt6Rb3 … e=youtu.be

here is the conkyrc

lua_load /home/mcdowall/Desktop/conky/easyclick.lua
lua_draw_hook_pre get_mouse #so that click location is only generated once per cycle rather than one per button per cycle
#lua_draw_hook_post lua_button

template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=205,blx_on=5,bly_off=35,bw_off=10,bh_off=30,draw=1,text=1,fcol_off={0x000000},txt_off={"<","<"},font_off={"Sans"},fs_off={12},fxadj_off={1},fyadj_off={-17,-2},txt_on={">",">"}}}
template2 ${lua rc_button {btype=1,bname="conkybutton2",blx_off=205,blx_on=5,bly_off=75,bw_off=10,bh_off=30,draw=1,text=1,fcol_off={0x000000},txt_off={"<","<"},font_off={"Sans"},fs_off={12},fxadj_off={1},fyadj_off={-17,-2},txt_on={">",">"}}}

TEXT
${if_match ${template1}==0}${goto 220}${font sans:size=22}CPU: ${cpu cpu0}%${font}${else}${goto 20}${font sans:size=22}CPU: ${cpu cpu0}%${font}${voffset -14}${goto 160}CORE1: ${cpu cpu0}% ${goto 240}CORE2: ${cpu cpu2}%
${goto 160}CORE3: ${cpu cpu3}% ${goto 240}TEMP: ${hwmon 1 temp 1}°C${endif}

${if_match ${template2}==0}${goto 220}${font sans:size=22}MEM: ${memperc}%${font}${else}${goto 20}${font sans:size=22}MEM: ${memperc}%${font}${voffset -14}${goto 160}USED: ${mem} ${goto 250}${voffset -2}${memgraph 25,80}
${goto 160}${voffset -20}FREE: ${memfree}${endif}

Offline

#334 2012-07-28 17:42:40

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

Re: interactive conky

mrpeachy wrote:

here is a simple implementation of an interactive conky all set up through the conkyrc
Screenshot_at_2012_07_28_00_34_51.jpg
http://www.youtube.com/watch?v=RNzt6Rb3 … e=youtu.be

I see.. ,but what happened to the smoothness of interactive v9000?

Offline

#335 2012-07-28 17:51:33

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

Re: interactive conky

peachy wrote:

getting the allcombined functions to accept settings in the lua script wasn't as straightforward as i thought
but not that bad either
you can adapt all the functions from allcombined.lua in the same way, paste them at the bottom of the weather script and activate them within the template
then in conkyrc you no longer need to load allcombined.lua

does that make sense?

That makes sense Sir!
I shall start fudging around with it.
Your v9000 is just such a masterpiece that unfortunately it has raised my standards on what conky should look like.. shame on you Peachy!! big_smile

###AFTER FUDGING WITH IT###
Perfect Peachy!!
I will throw some buttons in it and some more info.. Thank you my friend!

Peachy can conky_parse be called as text as well as value?
something like so...

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse"${cpu cpu0}")

Last edited by falldown (2012-07-28 19:00:15)

Offline

#336 2012-07-28 19:02:24

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

Re: interactive conky

falldown wrote:

can conky_parse be called as text as well as value?
something like so...

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse"${cpu cpu0}")

yes, that should work

Offline

#337 2012-07-28 19:05:52

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

Re: interactive conky

falldown wrote:

I see.. ,but what happened to the smoothness of interactive v9000?

the buttons lag a little when set up in the conkyrc (and that conky had an update interval of 1 second which slows things down)

making update interval smaller makes the buttons more responsive

and setting buttons up in the lua makes them much snappier

however, no knowledge of lua scriptwriting is required to use the buttons

Last edited by mrpeachy (2012-07-28 19:27:09)

Offline

#338 2012-07-28 19:29:20

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: interactive conky

mrpeachy wrote:

i was thinking about the startup_hook... but i want to keep the xdotool logging part out of the hands of the lua script
as it seems that part is quite fickle! ... but that may just be being paranoid smile

startup_hook is no different from a bash script if you use os.execute() since the process will not be attached to the conky process.

Processes that are started with os.execute() will keep running normally if conky stops for any reason.
It is like running the command in separate terminal window.

Processes that are started with io.popen() are attached to the conky process and should stop if conky stops.

Using startup_hook just allows you to automate when the commands are run instead of having to run a bash script manually every time you restart the conky.

_________________________________________________________________________________________________

mrpeachy wrote:

there was a problem where, if the cdonky rc was restarted, easyclick.lua had to be resaved in order for the buttons to start working
that has been fixed

The way my lua scripts are written I have to restart conky any time I change my .conkyrc because I only create most global variables at the first update so that changing the lua script does not overwrite them.

This is not a problem for me anymore because my TEXT section is empty.
All my conkys are controlled completely in their lua scripts.

It sounds like you were having something similar happen when you changed your .conkyrc.
What caused the problem for you?

_________________________________________________________________________________________________

@ falldown

mrpeachy is right, the buttons that are fully lua are pretty responsive.

I have some that are not so responsive but that is because clicking them does not take effect until the next update.
That happens because they change a global variable that affects code that comes before the button press code so it has a delayed effect.
That allows for things like having the button be in different places depending on if it is pressed or not.

Last edited by arclance (2012-07-28 19:31:52)

Offline

#339 2012-07-28 20:18:34

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

Re: interactive conky

Got the button and click function set up easy peasy..
Now..

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse"$cpu cpu0"})

gives me the cpu0 usage plus cpu0 in text.. like so

3 cpu0

I probably have the wrong brackets or something.

Offline

#340 2012-07-28 20:23:49

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

Re: interactive conky

falldown wrote:

Got the button and click function set up easy peasy..
Now..

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse"$cpu cpu0"})

gives me the cpu0 usage plus cpu0 in text.. like so

3 cpu0

I probably have the wrong brackets or something.

just missing some brackets

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse("${cpu cpu0}")})

it can get tricky!

Offline

#341 2012-07-28 20:30:23

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

Re: interactive conky

peachy wrote:

just missing some brackets

out({c=0xb2b2b2,a=1,x=xpos1,y=ypos+gap*1,txt=conky_parse("${cpu cpu0}")})

it can get tricky!

That did it Sir!
This is coming together nicely!! big_smile
I love the out function.

Offline

#342 2012-07-28 23:32:04

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

Re: interactive conky

Just the start of a template..
http://youtu.be/zvNW7gkbPFg

Offline

#343 2012-07-29 00:15:10

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

Re: interactive conky

^ Nice....  Can't wait to see the end results.

FYI, two patches to Liquorix since your last update... 3.4.0-6 is available and I have seen improvements...


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#344 2012-07-29 01:44:57

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

Re: interactive conky

falldown wrote:

Just the start of a template..
http://youtu.be/zvNW7gkbPFg

looking good!

ive been thinking of interactivizing (the technical term for making a conky interactive) my all-in-one right side conky
in a similar way to the conky i posted above

have the boxes thin on the right containing basic info, then click them, they get wider with extended info

Offline

#345 2012-07-29 01:58:30

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

Re: interactive conky

peachy wrote:

ive been thinking of interactivizing (the technical term for making a conky interactive) my all-in-one right side conky
in a similar way to the conky i posted above
have the boxes thin on the right containing basic info, then click them, they get wider with extended info

Thats kinda of what I have in mind.. I just want to get a rough template going first.
Then add all the goodies.

I do think that lua is the way to go..  the conkyrc just seemed sluggish. big_smile
By no means do I mean that as an insult. smile

Last edited by falldown (2012-07-29 02:00:58)

Offline

#346 2012-07-29 02:02:40

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

Re: interactive conky

VastOne wrote:

^ Nice....  Can't wait to see the end results.

FYI, two patches to Liquorix since your last update... 3.4.0-6 is available and I have seen improvements...

Thank you and I will checkout the new kernel VsidO

Offline

#347 2012-07-29 02:57:03

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

Re: interactive conky

falldown wrote:

I do think that lua is the way to go..  the conkyrc just seemed sluggish. big_smile
By no means do I mean that as an insult. smile

yikes yikes yikes yikes ... big_smile

i agree that if you can write your setups in lua then that is the way to go
but i think that is a small minority of conky users however.

Offline

#348 2012-07-30 18:14:03

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

Re: interactive conky

Here is a partial sistem_info Peachy.
http://youtu.be/u2jDUu-jLu4
I like the ideal of using icons.

Offline

#349 2012-07-30 18:24:49

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

Re: interactive conky

Coming along nicely... when do we get the animation effects?? big_smile

Ive been thinking about putting in am image option into the button script
i think it would be quite easy to implement
just specify an image and it would take the size of the button

just finished off the tutorial (for now)
http://crunchbanglinux.org/forums/post/245759/#p245759

any additional things anyone would like to know, then just ask!

Offline

Be excellent to each other!

#350 2012-07-30 18:45:32

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

Re: interactive conky

I think that setting up a buttons position, width and height is simple enough Sir... Just get your image set how you want it and base the button off of it.
Although from a first timers viewpoint it could be handy. big_smile

I will throw some images in later after I get all the info setup.
I think that I will do a separate calendar, date, time with a small v-9000 display.
What I have setup so far is each button functions on its own.. so that it and all that it displays can be moved around to the users liking.

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