see here
http://crunchbanglinux.org/forums/post/245759/#p245759
this is my button script and conkyrc
the conkyrc is like this currently
Code:
template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,text=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${cpu cpu0}
${if_match ${template1}==0}the button is off${else}the button is on${endif}
but could easily control an entire conky display
Code:
template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,text=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${if_match ${template1}==0}${else}
all your conky stuff
${endif}
Bookmarks