SEARCH

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

You are not logged in.

#4176 2012-11-30 21:21:56

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

Fedora 18
Xfce 4.10
Conky 1 line System Panel
Conky Gmail/Greader RSS feed
2 Tint2 latest svn build panels... Launchers/Tasks/System Tray

screenshot-11302012-031938pm.php


VSIDO | SolusOS

Words That Build Or Destroy

Offline

Help fund CrunchBang, donate to the project!

#4177 2012-11-30 21:56:30

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,235

Re: The New Monster Conky Thread

Sector11 wrote:

I'm working on a project that would benefit from this too.  big_smile
http://t.imgbox.com/admLO2ut.jpg
Free Image Hosting by imgbox.com

... and imagine having

· 28 · Fri · 02 ·

... and tomorrow:

29 · 31 Sat · 03 ·

for Day #/Names

If no one come to help I'm going to tackle this.  big_smile

Just out of curiosity, have you - or anyone else using these lua clocks - tried to use a jpg/png image for the clock hands? Is that even possible in a lua function?

Last edited by PackRat (2012-11-30 21:57:51)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#4178 2012-11-30 22:09:05

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 132
Website

Re: The New Monster Conky Thread

PackRat wrote:

Just out of curiosity, have you - or anyone else using these lua clocks - tried to use a jpg/png image for the clock hands? Is that even possible in a lua function?

PackRat,

Short answer...Yes. I have one layin' around here somwhere based on someone elses work. I will try to find the original files (and/or my own) and up them here.


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

#4179 2012-11-30 22:13:34

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 132
Website

Re: The New Monster Conky Thread

Sector11 wrote:
DrakarNoir wrote:
Sector11 wrote:

OK, now you have lost me.  Unless .... let's see if I can reword this ...

12 hour clock & 12 months.

so you want to see:  12 01 02 03 04 05 06 07 08 09 10 Nov

And if it was May : 12 01 02 03 04 May 06 07 08 09 10 11

EXACTLY! big_smile

Perhaps one of the LUA sages might help out here!

chompin' at the bit, stompin' me feet ...

I'm working on a project that would benefit from this too.  big_smile
http://t.imgbox.com/admLO2ut.jpg
Free Image Hosting by imgbox.com

... and imagine having

· 28 · Fri · 02 ·

... and tomorrow:

29 · 31 Sat · 03 ·

for Day #/Names

If no one come to help I'm going to tackle this.  big_smile

NOTE TO SELF: Crazy Glue last remaining hairs in place!!  lol

Yup...could use the same function here as I was tryin' to figure out where to put the day names!

PS: Speaking of hair, I thought mine was abandoning me. However, I am now convinced that it just going into my head and coming out other places!!  lol  lol


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

#4180 2012-11-30 22:18:44

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 132
Website

Re: The New Monster Conky Thread

Secctor11,

Here are the relevant parts of the lua that I changed to move the month names outward. After reading Mrpeachy's post (#4175) I am now unsure as to wheter this was the correct approach.

-- OUTER POINTS POSTION FOR -- ### START DIAL C ## TEXT
    local point=(math.pi/180)*((360/12)*(i))

and:

-- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i))

Both from the

-- ### START DIAL C ### Month Names Dial ##################

part of the LUA. One is the name and the other the dot (as I am sure you are aware).


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

#4181 2012-11-30 22:23:22

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

mrpeachy wrote:

the numbers are drawn using a for loop somewhere, like this

for i=1,12 do
calculate position of number
move_to(x,y)
show_text(i)
end

change it to something like this

for i=1,12 do
calculate position of number
  if i==month_number then
  move_to(x,y)
  show_text(month_number)
  else
  move_to(x,y)
  show_text(i)
  end
end

this is not actual code for you to use, just a general idea smile

AWESOME .... my preferred method ... enough to save my hair but have to work for it.
Thnk's mrpeachy!

Last edited by Sector11 (2012-11-30 22:23:47)


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4182 2012-11-30 22:24:31

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

The Teo Weather Clock

Using: 4) Weather.com conky script - all users

It come in two flavours:
aci9ivTD.jpg <-- 12 HR and 24 HR --> abh50Myc.jpg
and is the preferred clock of gauchos in Salta, Argentina!

Get it in the Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4183 2012-11-30 22:46:09

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

PackRat wrote:
Sector11 wrote:

If no one come to help I'm going to tackle this.  big_smile

Just out of curiosity, have you - or anyone else using these lua clocks - tried to use a jpg/png image for the clock hands? Is that even possible in a lua function?

No not me... I have see some clocks that do though.  Not sure were.


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4184 2012-11-30 22:47:33

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

VastOne wrote:

Fedora 18
Xfce 4.10
Conky 1 line System Panel
Conky Gmail/Greader RSS feed
2 Tint2 latest svn build panels... Launchers/Tasks/System Tray

http://www.zimagez.com/miniature/screenshot-11302012-031938pm.php

fe ... fe fe fed ... fedo ... I can't even say it   big_smile

Lookin nice there VastOne.


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4185 2012-11-30 22:53:00

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

OFF TOPIC ALERT!!!

DrakarNoir wrote:

PS: Speaking of hair, I thought mine was abandoning me. However, I am now convinced that it just going into my head and coming out other places!!  lol  lol

lol  lol  I know what you mean.

You know your getting old when the barber trims your ears and nose hairs and your wife mentions hair that wasn't there before and in places the barber does not see.


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4186 2012-11-30 22:58:10

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

DrakarNoir wrote:

Secctor11,

Here are the relevant parts of the lua that I changed to move the month names outward. After reading Mrpeachy's post (#4175) I am now unsure as to wheter this was the correct approach.

-- OUTER POINTS POSTION FOR -- ### START DIAL C ## TEXT
    local point=(math.pi/180)*((360/12)*(i))

and:

-- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i))

Both from the

-- ### START DIAL C ### Month Names Dial ##################

part of the LUA. One is the name and the other the dot (as I am sure you are aware).

No not quite some where around line 209:

  -- INNER POINTS POSITION, radius smaller than text circle
  local radius=32

and...
Line 218

  -- DRAW HAND -- snaps to current month
  local hand_length=28 --radius for this calculation

Play with those...


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4187 2012-12-01 03:06:25

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 191
Website

Re: The New Monster Conky Thread

VastOne wrote:

Fedora 18
Xfce 4.10
Conky 1 line System Panel
Conky Gmail/Greader RSS feed
2 Tint2 latest svn build panels... Launchers/Tasks/System Tray

http://www.zimagez.com/miniature/screenshot-11302012-031938pm.php

Wow VastOne!  That is looking incredible!  I'd looked at Fedora in passing, but maybe I just might have to have a closer look.  Seriously man, it looks great!!!

Offline

#4188 2012-12-01 05:13:16

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

^ Thanks Jed, I do appreciate that!

Having fun right now with 18 but it is a Gold Beta release... you may want to wait a bit as some things are a tad frustrating even to this old distro hopping man...


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#4189 2012-12-01 16:15:59

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 191
Website

Re: The New Monster Conky Thread

VastOne wrote:

Having fun right now with 18 but it is a Gold Beta release... you may want to wait a bit as some things are a tad frustrating even to this old distro hopping man...

Wise words VastOne!  After giving it some thought and reading your post, I'm still really enjoying sid.  Guess I'll stick it out with good ole sid for awhile.  Still learning 'bout all things Conky and maybe a 'couple' things 'bout Lua.  I'll stick to that for now.  Your screen-shot does look nice though... cool

Offline

#4190 2012-12-01 16:19:27

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: The New Monster Conky Thread

^ And by most accounts Fedora requires knowledge extending beyond conky and lua to work acceptably!

Offline

#4191 2012-12-01 17:26:39

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,305
Website

Re: The New Monster Conky Thread

jed wrote:

There's chrono's everywhere!  Another mix and match!  This one kind of reminds me of an old pocket watch.  (well, with a few updates!)
Here's a screen-capture of it;  grey-chrono
And here's a shockwave flash video of it in action if you want to see the rings doing their thing!  If you have a slow connection, here's your "heads-up"...  It's a 1.6 mb file, so it may take a minute or three to load!  grey-chrono-flash

Hey Jed ... did you ever post the conky and LUA files for this beauty?


To #! or not to #! that is the question!
#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#4192 2012-12-01 17:48:41

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

Re: The New Monster Conky Thread

because i want to use the new text-features of the weather script i need a good pixel font. it should display italic letters.

Offline

#4193 2012-12-01 18:02:02

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

jed wrote:
VastOne wrote:

Having fun right now with 18 but it is a Gold Beta release... you may want to wait a bit as some things are a tad frustrating even to this old distro hopping man...

Wise words VastOne!  After giving it some thought and reading your post, I'm still really enjoying sid.  Guess I'll stick it out with good ole sid for awhile.  Still learning 'bout all things Conky and maybe a 'couple' things 'bout Lua.  I'll stick to that for now.  Your screen-shot does look nice though... cool

Thank you Jed! 

Here is the thing though..  my current debian sid install

screenshot-12012012-115518am.php

Look at it and the one from Fedora... The only difference will be the kernel in the top conky panel.  This is the reason I help the Fedora bunch test.. to make sure everything I use on debian does work and play together as good on their new release.

As dura said, it is a totally different tool set and quite different than what you are used to now and not one I would recommend for a while. 

It does help keep my old brain from going blank though. big_smile


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#4194 2012-12-01 18:32:54

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,235

Re: The New Monster Conky Thread

lionhead wrote:

because i want to use the new text-features of the weather script i need a good pixel font. it should display italic letters.

take a look at these programer's fonts.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#4195 2012-12-01 23:06:40

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 191
Website

Re: The New Monster Conky Thread

Sector11 wrote:
jed wrote:

There's chrono's everywhere!  Another mix and match!  This one kind of reminds me of an old pocket watch.  (well, with a few updates!)
Here's a screen-capture of it;  grey-chrono
And here's a shockwave flash video of it in action if you want to see the rings doing their thing!  If you have a slow connection, here's your "heads-up"...  It's a 1.6 mb file, so it may take a minute or three to load!  grey-chrono-flash

Hey Jed ... did you ever post the conky and LUA files for this beauty?

Nahhh.  Just an old chrono with mrpeachy's v9000 weather script integrated.  I don't even remember where I found it.  It is kinda cool though, and I'd love to give credit where credit is due!  Abu Yahya maybe (cupsnsaucers)?  Not sure...  It had been pretty 'stripped' of anything that would point to a creator...

Here it is;
greyclock_conkyrc

# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0


# — Window specifications — #
own_window_type override
own_window_class Conky
own_window yes
#own_window_type conky
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 600 700
maximum_width 600

alignment tl

gap_x 30
gap_y 30



# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont LCDMono2:size=10.1
xftalpha 1.0

default_color 227992 ##dark red A84C47 ##opaque white FFFFFF

uppercase no
use_spacer right

# — Lua Load — #
lua_load ~/conky/greyclock/greyclock.lua
lua_draw_hook_post main
lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load ~/conky/greyclock/chrono-full.template.lua


TEXT
${voffset 305}${goto 290}${font LCDMono2:size=23.1}${time %l:%M}${font}
${voffset 2}${goto 292}${time %a %d %b}  

The template for the weather;
chrono-full.template.lua

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbang.org/forums/viewtopic.php?id=16100

 the file:
 http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbang.org/forums/viewtopic.php?id=17246
]]
_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="Arial"--font must be in quotes
default_font_size=14
default_color=0xffffff	--white
default_alpha=1		--fully opaque
default_image_width=50
default_image_height=50
-- ## New Options ###
default_face="bold"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE

-- forecast
datay=375
datayy=15 --datay+(datayy*1)

datafx1=20

imgx=35
imgy=500
imgyy=60 -- imgy+(imgyy*1)
-- =============================================================================
-- Sun & Moon Rise -------------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=10,y=35,txt="Sunrise"})
      out({c=0xFAFAEC,a=1,x=20,y=50,txt=sun_rise_time[1]})
   out({c=0xC0C0C0,a=1,x=382,y=40,txt="Moonrise"})
      out({c=0xC0C0C0,a=1,x=389,y=55,txt=moon_rise_time[1]})
-- Sun & Moon Set --------------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=10,y=392,txt="Sunset"})
      out({c=0xFAFAEC,a=1,x=15,y=407,txt=sun_set_time[1]})
   out({c=0xC0C0C0,a=1,x=382,y=412,txt="Moonset"})
      out({c=0xC0C0C0,a=1,x=389,y=427,txt=moon_set_time[1]})
-- Moon Phase - Top Center Circle ----------------------------------------------
   out({c=0x227992,a=1,x=180,y=270,txt=moon_phase[1]})
   image({x=203,y=202,w=55,h=55,file=moon_icon[1]})
-- image({x=148,y=67,w=55,h=55,file="/media/5/Conky/images/red_1.png"})

-- Forecast for Today - see Day# Circle - Left ---------------------------------
   out({c=0xFF8C00,fs=14,a=1,x=280,y=160,txt=high_temp[1]})
   image({x=246,y=150,w=80,h=80,file=weather_icon[1]})
-- image({x=70,y=150,w=50,h=50,file="/media/5/Conky/images/red_1.png"})
   out({c=0x00BFFF,fs=14,a=1,x=280,y=230,txt=low_temp[1]})

-- Above the Month Circle on the Right -----------------------------------------
-- Humidity
   out({c=0xFAFAEC,a=1,x=285,y=120,txt="Hum:"})
      out({c=0x227992,a=1,x=323,y=120,txt=now["humidity"].."%"})
-- Chance of Rain
   out({c=0xFAFAEC,a=1,x=300,y=140,txt="Rain:"})
      out({c=0x227992,a=1,x=340,y=140,txt=precipitation[1].."%"})
-- Wind Info - See Months Circle & below ---------------------------------------
   image({x=310,y=205,w=75,h=75,file=now["wind_icon"]})
-- image({x=235,y=150,w=50,h=50,file="/media/5/Conky/images/red_1.png"})
   out({c=0x227992,a=1,x=285,y=295,txt=now["wind_mph"]})
-- out({c=0x48D1CC,a=1,x=240,y=260,txt=now["wind_nesw"]})
   out({c=0xFAFAEC,a=1,x=333,y=295,txt="@"})
      out({c=0x227992,a=1,x=355,y=295,txt=now["wind_deg"]})
-- Dew Point -------------------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=145,y=355,txt="DP:"})
      out({c=0x227992,a=1,x=175,y=355,txt=now["dew_point"].."°"})

-- Above Day# Circle on left ---------------------------------------------------
-- Cloud Cover
   out({c=0xFAFAEC,a=1,x=320,y=160,txt="CC:"})
      out({c=0x227992,a=1,x=350,y=160,txt=cloud_cover[1].."%"})
-- Ceiling
   out({c=0xFAFAEC,a=1,x=330,y=180,txt="Ceil:"})
      out({c=0x227992,a=1,x=360,y=180,txt=now["ceiling"]})
-- Current for Today - Day# Circle ---------------------------------------------
   out({c=0xFAFAEC,a=1,x=215,y=300,txt="T:"})
      out({c=0xFF8C00,fs=14,a=1,x=230,y=300,txt=now["temp"].."°"})
   image({x=205,y=303,w=55,h=55,file=now["weather_icon"]})
-- image({x=132,y=218,w=85,h=85,file="/media/5/Conky/images/red_1.png"})
   out({c=0xFAFAEC,a=1,x=215,y=375,txt="F:"})
      out({c=0x00BFFF,fs=14,a=1,x=230,y=375,txt=now["feels_like"].."°"})
-- Below day# Circle on left ---------------------------------------------------
-- Barometric Pressure
out({c=0xFAFAEC,a=1,x=85,y=315,txt=" BP:"})
	out({c=0x227992,a=1,x=115,y=315,txt=now["pressure_mb"]})
-- UV
out({c=0xFAFAEC,a=1,x=115,y=335,txt="UV:"})
   out({c=0x227992,a=1,x=142,y=335,txt=uv_index_num[1]})
      out({c=0x227992,a=1,x=155,y=335,txt=uv_index_txt[1]})

-- Forecast for the next 3 hours -----------------------------------------------
-- image({x=5,y=353,w=340,h=2,file="/media/5/Conky/images/LightSlateGrey_1.png"})
out({c=0x227992,a=1,f="Arial",fs=16,x=33,y=448,txt="Next 3"})
out({c=0x227992,a=1,f="Arial",fs=16,x=35,y=463,txt="Hours"})
-- 1st hour
out({c=0xFF9600,x=98,y=470,txt=now["fc_hour1_time"]..":00"})
image({w=60,h=60,x=80,y=475,file=now["fc_hour1_wicon"]}) -- image({w=30,h=30,x=223,y=55,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=95,y=550,txt=now["fc_hour1_temp"] .."°"})
-- 2nd hour
out({c=0xFF9600,x=205,y=470,txt=now["fc_hour2_time"]..":00"})
image({w=60,h=60,x=190,y=475,file=now["fc_hour2_wicon"]}) -- image({w=30,h=30,x=223,y=130,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=205,y=550,txt=now["fc_hour2_temp"] .."°"})
-- 3rd hour
out({c=0xFF9600,x=317,y=470,txt=now["fc_hour3_time"]..":00"})
image({w=60,h=60,x=295,y=475,file=now["fc_hour3_wicon"]}) -- image({w=30,h=30,x=223,y=215,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=315,y=550,txt=now["fc_hour3_temp"] .."°"})

-- =============================================================================
-- FORECAST for the next 9 days
-- Forecast day 2 -- x = l|r  y = u|d

--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################

And finally the greyclock.lua

require 'cairo'
--------------------------------------------------------------------------------
----Adjustable Settings 
coffee_table = {
    {
    name='time',                   arg='%I.%M',                    max_value=12,
    x=230,                         y=230,
    cup_radius=112, --hour-hand
    cup_wall_thickness=90,
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_length=70,              handle_circ=5,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    graduation_radius=184,
    graduation_thickness=8,        graduation_mark_circ=1.5,
    graduation_mark_angle=30,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    saucer_thickness=6,            thick_saucer_circ=11/12,    
    saucer_radius=195,             thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3, 
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    inner_saucer=true, 
    txt_weight=0,                  txt_size=8.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
   {
    name='time',                   arg='%H',                    max_value=12,
    x=230,                         y=230,
    cup_radius=2,
    cup_wall_thickness=3,
    cup_bg_clr=0xffffff,           cup_bg_alpha=1.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=1.0,
    handle_length=40,              handle_circ=4,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    graduation_radius=187,
    graduation_thickness=1,        graduation_mark_circ=0.5,
    graduation_mark_angle=3,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    saucer_thickness=6,            thick_saucer_circ=11/12,    
    saucer_radius=195,             thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.0, 
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    inner_saucer=true, 
    txt_weight=0,                  txt_size=8.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
    {
    name='time',                   arg='%M',                    max_value=60,
    x=230,                         y=230,
    cup_radius=118,
    cup_wall_thickness=120,
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    graduation_radius=183,
    graduation_thickness=10,       graduation_mark_circ=2.5,
    graduation_mark_angle=90,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    handle_length=110,              handle_circ=3,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    saucer_thickness=6,            thick_saucer_circ=11/12,
    saucer_radius=220,             thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
    {
    name='time',                   arg='%S',                    max_value=60,
    x=230,                         y=230,
    cup_radius=120,
    cup_wall_thickness=120,
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,      	   cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    handle_length=118,              handle_circ=1,
    graduation_radius=185,
    graduation_thickness=6,        graduation_mark_circ=0.5,
    graduation_mark_angle=6,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    saucer_thickness=5,		   thick_saucer_circ=1,
    saucer_radius=205,             thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.4,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.4,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
},

    {
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=230,                         y=105,
    cup_radius=20,
    cup_wall_thickness=40,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-20,			   ytxt= -12,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='CPU ',               caption2=' %',
    graduation_radius=35,
    graduation_thickness=3,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.6,
    saucer_thickness=6,            thick_saucer_circ=0.85,
    saucer_radius=40,              thin_saucer_circ=0.85,
    saucer_fg_clr=0xFFFFFF,	   saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
    },
    {
    name='freq_g',                 arg='/',                  max_value=5,
    x=230,                         y=105,
    cup_radius=12,
    cup_wall_thickness=23,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-20,			   ytxt= 0,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='',		   caption2=' GHz',
    graduation_radius=25,
    graduation_thickness=6,        graduation_mark_circ=4,
    graduation_mark_angle=30,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=6,            thick_saucer_circ=0.75,
    saucer_radius=45,              thin_saucer_circ=0.75,
    saucer_fg_clr=0xFFFFFF,	   saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
},
{
    name='hwmon',                arg='temp 1',                      max_value=100,
    x=230,                         y=105,
    cup_radius=12,
    cup_wall_thickness=23,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,			   ytxt= 12,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='',      	   caption2=' ºC',
    graduation_radius=35,
    graduation_thickness=6,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.6,
    saucer_thickness=6,		   thick_saucer_circ=0.85,
    saucer_radius=40,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
},   
---------------1/2
{
    name='memperc',                arg='/',                      max_value=100,
    x=135,                         y=150,
    cup_radius=12,
    cup_wall_thickness=23,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-25,			   ytxt=0,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='RAM ',      	   caption2=' %',
    graduation_radius=35,
    graduation_thickness=6,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.6,
    saucer_thickness=6,		   thick_saucer_circ=0.85,
    saucer_radius=40,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
},   
------------------2/3    
{
    name='fs_used_perc',           arg='/home',                      max_value=100,
    x=105,                         y=240,
    cup_radius=12,
    cup_wall_thickness=27,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-30,			   ytxt= 12,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption=' FS H: ',      	   caption2=' %',
    graduation_radius=35,
    graduation_thickness=6,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.6,    
    saucer_thickness=6,            thick_saucer_circ=0.85,
    saucer_radius=40,              thin_saucer_circ=0.85,     
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
},
{
    name='fs_used_perc',           arg='/',                      max_value=100,
    x=105,                         y=240,
    cup_radius=12,
    cup_wall_thickness=27,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-30,			   ytxt= -5,
    txt_weight=0,                  txt_size=10.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption=' FS /: ',      	   caption2=' %',
    graduation_radius=25,
    graduation_thickness=4,        graduation_mark_circ=4,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=6,            thick_saucer_circ=0.85,
    saucer_radius=45,              thin_saucer_circ=0.85,     
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
},
}
  
--Fixed code -do not edit unless you know what you are doing------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- converts color in hexa to decimal
function rgb_to_r_g_b(clr, alpha)
    return ((clr / 0x10000) % 0x100) / 255., ((clr / 0x100) % 0x100) / 255., (clr % 0x100) / 255., alpha
end
-------------------------------------------------------------------------------
------------------------------------------------------------------------
local function draw_coffee_table(display, data, value) 
     max_value = data['max_value']
     x, y = data['x'], data['y']
     if x==nil then x=conky_window.width/2 end
     if y==nil then y=conky_window.height/2 end	
     cup_radius = data['cup_radius']    
     if cup_radius==nil then cup_radius=conky_window.width/4 end	
     cup_wall_thickness = data['cup_wall_thickness']
     if cup_wall_thickness==nil then cup_wall_thickness=20 end
     handle_length, handle_circ = data['handle_length'], data['handle_circ']
     if handle_length==nil then handle_length=20 end
     if handle_circ==nil then handle_circ=1 end
     cup_start_angle = data['cup_start_angle']
     if cup_start_angle == nil then cup_start_angle =0 end
     total_angle = data['total_angle']
     if total_angle == nil then total_angle=360 end
     cup_sector_angle = (math.abs(total_angle))/max_value  
     cup_end_angle = total_angle + cup_start_angle
     cup_bg_clr, cup_bg_alpha = data['cup_bg_clr'], data['cup_bg_alpha']
     if cup_bg_clr==nil then cup_bg_clr =0xffffff end
     cup_fg_clr, cup_fg_alpha = data['cup_fg_clr'], data['cup_fg_alpha']
     if cup_fg_clr==nil then cup_fg_clr =0xffffff end
     if cup_fg_alpha==nil then cup_fg_alpha=0 end
     handle_fg_clr, handle_fg_alpha = data['handle_fg_clr'], data['handle_fg_alpha']  
     if handle_fg_clr==nil then handle_fg_clr = 0xffffff end
     if handle_fg_alpha==nil then handle_fg_alpha=0 end
     
     saucer_radius = data['saucer_radius']
     if saucer_radius==nil then saucer_radius=conky_window.width/2 end 
     total_saucer_angle=data['total_saucer_angle']
     if total_saucer_angle==nil then total_saucer_angle=360 end 
     saucer_sector_angle=(math.abs(total_saucer_angle))/max_value  
     saucer_thickness = data['saucer_thickness']
     if saucer_thickness==nil then saucer_thickness=6 end
     saucer_fg_clr = data['saucer_fg_clr']
     if saucer_fg_clr ==nil then saucer_fg_clr=0 end
     saucer_fg_alpha = data['saucer_fg_alpha']
     if saucer_fg_alpha ==nil then saucer_fg_alpha=0 end
     
     saucer_mark_fg_alpha = data['saucer_mark_fg_alpha']
     if saucer_mark_fg_alpha ==nil then saucer_mark_fg_alpha=0 end
     saucer_mark_fg_clr = data['saucer_mark_fg_clr']
     if saucer_mark_fg_clr ==nil then saucer_mark_fg_clr=0xffffff end
     thick_saucer_circ = data['thick_saucer_circ']
     if thick_saucer_circ==nil then thick_saucer_circ =0.9 end
     thin_saucer_circ = data['thin_saucer_circ']
     if thin_saucer_circ==nil then thin_saucer_circ =0.9 end
     inner_saucer = data['inner_saucer']
     
     graduation_radius = data['graduation_radius']
     if graduation_radius ==nil then graduation_radius = conky_window.width/3 end
     graduation_thickness, graduation_mark_circ = data['graduation_thickness'], data['graduation_mark_circ']
     if graduation_thickness ==nil then graduation_thickness = 2 end
     if graduation_mark_circ ==nil then graduation_mark_circ = 1 end
     graduation_mark_angle = data['graduation_mark_angle']
     if graduation_mark_angle == nil then graduation_mark_angle = total_angle/10 end
     graduation_fg_clr, graduation_fg_alpha = data['graduation_fg_clr'], data['graduation_fg_alpha']
     if graduation_fg_clr ==nil then graduation_fg_clr= 0xffffff end
     if graduation_fg_alpha==nil then graduation_fg_alpha =0 end
     
     
     txt_weight, txt_size = data['txt_weight'], data['txt_size']
     if txt_weight == nil then txt_weight=1 end
     if txt_size == nil then txt_size=8 end
     txt_fg_clr, txt_fg_alpha = data['txt_fg_clr'], data['txt_fg_alpha']
     if txt_fg_clr ==nil then txt_fg_clr= 0xffffff end
     if txt_fg_alpha==nil then txt_fg_alpha =0 end
     caption = data['caption']
     if caption==nil then caption='' end
     caption2 = data['caption2']
     if caption2==nil then caption2='' end
     xtxt, ytxt= data ['xtxt'], data['ytxt']
     if xtxt ==nil then xtxt=0 end
     if ytxt ==nil then ytxt=0 end

--convert degree to rad and rotate (0 degree is top/north)
    function angle_to_position(start_angle, current_angle)    
      if total_angle < 0 then 
        local pos = start_angle - current_angle
        return ( ( pos * (math.pi / 180) ) - (math.pi / 2) )
      else 
        local pos = current_angle + start_angle 
        return ( ( pos * (math.pi / 180) ) - (math.pi / 2) ) 
      end   
    end
--cup centre background    
  if cup_bg_alpha >0   then
    if total_angle < 0 then
      cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_end_angle, 0))
    else
      cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, cup_end_angle))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(cup_bg_clr, cup_bg_alpha))
    cairo_set_line_width(display, cup_wall_thickness)
    cairo_stroke(display)
  end 
--cup wall fg    
  if cup_fg_alpha > 0 then 
   local fg_stop_arc = (cup_sector_angle * value)
    if total_angle < 0 then
	cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, fg_stop_arc))
    else
	cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, fg_stop_arc))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(cup_fg_clr, cup_fg_alpha))
    cairo_set_line_width(display, cup_wall_thickness)
    cairo_stroke(display)
  end
-- cup handle
  if handle_fg_alpha>0 then 
    local start_handle = (cup_sector_angle * value) - (handle_circ*0.5)
    local stop_handle = (cup_sector_angle * value) +  (handle_circ*0.5)
    if total_angle < 0 then
	cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, start_handle), angle_to_position(cup_start_angle, stop_handle))
    else
	cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, start_handle), angle_to_position(cup_start_angle, stop_handle))
    end
    cairo_set_line_width(display, handle_length)    
    cairo_set_source_rgba(display, rgb_to_r_g_b(handle_fg_clr, handle_fg_alpha))
    cairo_stroke(display)
  end
--saucers   
---thick saucer     
    if saucer_fg_alpha > 0 and (thin_saucer_circ >0 or thick_saucer_circ > 0)
      then 
	if value < (max_value/2) 
        then j = value + ((max_value*total_saucer_angle)/720)
        else j = value - ((max_value*total_saucer_angle)/720)
	end
	
    local start_saucer = (saucer_sector_angle * j) - (value*saucer_sector_angle*0.5*thick_saucer_circ)
    local stop_saucer = (saucer_sector_angle * j) + (value*saucer_sector_angle*0.5*thick_saucer_circ)
    if total_angle < 0 then
	cairo_arc_negative(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_saucer), angle_to_position(cup_start_angle, stop_saucer))
    else
	cairo_arc(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_saucer), angle_to_position(cup_start_angle, stop_saucer))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_fg_clr, saucer_fg_alpha))
    cairo_set_line_width(display, saucer_thickness)
    cairo_stroke(display)
    --thin saucer
      if inner_saucer == true 
      then rt = (saucer_radius - 0.5) + (0.5 * saucer_thickness)
      else rt = (saucer_radius + 0.5) - (0.5 * saucer_thickness)  
      end
    local start_thin_saucer = (saucer_sector_angle * j) - (max_value *0.5*saucer_sector_angle*thin_saucer_circ)
    local stop_thin_saucer = (saucer_sector_angle * j) + (max_value *0.5*saucer_sector_angle*thin_saucer_circ)
    if total_angle < 0 then
	cairo_arc_negative(display, x, y, rt, angle_to_position(cup_start_angle, start_thin_saucer), angle_to_position(cup_start_angle, stop_thin_saucer))
    else
	cairo_arc(display, x, y, rt, angle_to_position(cup_start_angle, start_thin_saucer), angle_to_position(cup_start_angle, stop_thin_saucer))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_fg_clr, saucer_fg_alpha))
    cairo_set_line_width(display, 1)
    cairo_stroke(display)
   end
--saucer mark
    if saucer_mark_fg_alpha > 0 then 
	local start_cm = (saucer_sector_angle * value) - (handle_circ *0.5 )
	local stop_cm = (saucer_sector_angle * value) + (handle_circ *0.5 )
	if total_angle < 0 then
	  cairo_arc_negative(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_cm), angle_to_position(cup_start_angle, stop_cm))
	else
	  cairo_arc(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_cm), angle_to_position(cup_start_angle, stop_cm))
	end
	cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_mark_fg_clr, saucer_mark_fg_alpha))
        cairo_set_line_width(display, saucer_thickness)
        cairo_stroke(display)
    end 
--graduation mark 
     if graduation_radius > 0 and graduation_thickness > 0 and graduation_mark_angle > 0 then
        number_graduation = (math.abs(total_angle) +1)/ graduation_mark_angle
        local start_arc_grad = 0
        local stop_arc_grad = 0
	local i = 0
        while i < number_graduation do            
            local start_arc_grad = (graduation_mark_angle * (i)) - (graduation_mark_circ *0.5)
            local stop_arc_grad = (graduation_mark_angle * (i)) + (graduation_mark_circ *0.5)
            if total_angle < 0 then
	      cairo_arc_negative(display, x, y, graduation_radius, angle_to_position(cup_start_angle, start_arc_grad), angle_to_position(cup_start_angle, stop_arc_grad))
	    else
	      cairo_arc(display, x, y, graduation_radius, angle_to_position(cup_start_angle, start_arc_grad), angle_to_position(cup_start_angle, stop_arc_grad))
	    end
	    cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_clr,graduation_fg_alpha))
            cairo_set_line_width(display, graduation_thickness)
	    cairo_stroke(display)            
            i = i + 1
        end
    end   
-- text
  if txt_fg_alpha>0 then 
    cairo_select_font_face (display, "hooge 05_53", CAIRO_FONT_SLANT_NORMAL, txt_weight);
    cairo_set_font_size (display,txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_clr, txt_fg_alpha))
    cairo_move_to (display,x+xtxt,y+ytxt)
    cairo_show_text (display, caption ) cairo_show_text (display,value)cairo_show_text (display, caption2 )
    cairo_stroke (display)
  end
end
-------------------------------------------------------------------------------
-- loads data and displays table_settings

function display_coffee_table(display)
    local function load_coffee_table(display, data)
        local str, value = '', 0       
	if data['name'] == 'time2' then
	    local max_value = data['max_value']
            str = string.format('${time %s}', data['arg'])
            str = conky_parse(str)
            local value2 = tonumber(str:sub(0,2))
	    if value2 == max_value then value2 = 0 end
	    value = value2 + (tonumber(str:sub(4,5))/60)        	    
	else
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
        end 	
        if value == nil then value = 0 end
        draw_coffee_table(display, data, value)
    end
    for i in pairs(coffee_table) do
        load_coffee_table(display, coffee_table[i])
    end
end
-------------------------------------------------------------------------------
runscheck = 0 -- fix for draw shades running script twice on every update
function conky_main()
    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 display = cairo_create(cs)
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    if update_num > 5 then
      cairo_set_antialias (display, CAIRO_ANTIALIAS_SUBPIXEL)
      display_coffee_table(display)
      cairo_set_antialias (display, CAIRO_ANTIALIAS_DEFAULT)
    end    
    cairo_surface_destroy(cs)
    cairo_destroy(display)
end

Last edited by jed (2012-12-01 23:09:52)

Offline

#4196 2012-12-01 23:07:04

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: The New Monster Conky Thread

Does anyone know if there is a problem with gw_iface in lua? I have it in conky and lua, conky shows wlan0 and lua shows (null)


You can find my work here

Make everything ok button

Offline

#4197 2012-12-02 00:09:14

Deegan
Member
From: Italy Varese
Registered: 2011-11-19
Posts: 36

Re: The New Monster Conky Thread

Hi.... smile

Earthquake conky

Would you know how to tell me, if in the conky a lace can be inserted, that determines a zone of the italy, to see if there has been an earthquake?

My zone::*
45° 49' 48,00'' N
8° 49' 22,80'' E

Thanks

Offline

#4198 2012-12-02 00:32:18

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: The New Monster Conky Thread

Deegan wrote:

Hi.... smile

Earthquake conky

Would you know how to tell me, if in the conky a lace can be inserted, that determines a zone of the italy, to see if there has been an earthquake?

My zone::*
45° 49' 48,00'' N
8° 49' 22,80'' E

Thanks

here is a good place that has that kind of info, I think you can get a RSS feed that would do what you want from there, and there is maps that might make a good addition to the RSS feed. I am not sure how to make all that work but I figured I could throw some info your way


You can find my work here

Make everything ok button

Offline

#4199 2012-12-02 03:29:43

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 191
Website

Re: The New Monster Conky Thread

VastOne wrote:
jed wrote:
VastOne wrote:

Having fun right now with 18 but it is a Gold Beta release... you may want to wait a bit as some things are a tad frustrating even to this old distro hopping man...

Wise words VastOne!  After giving it some thought and reading your post, I'm still really enjoying sid.  Guess I'll stick it out with good ole sid for awhile.  Still learning 'bout all things Conky and maybe a 'couple' things 'bout Lua.  I'll stick to that for now.  Your screen-shot does look nice though... cool

Thank you Jed! 

Here is the thing though..  my current debian sid install

http://www.zimagez.com/miniature/screenshot-12012012-115518am.php

Look at it and the one from Fedora... The only difference will be the kernel in the top conky panel.  This is the reason I help the Fedora bunch test.. to make sure everything I use on debian does work and play together as good on their new release.

As dura said, it is a totally different tool set and quite different than what you are used to now and not one I would recommend for a while. 

It does help keep my old brain from going blank though. big_smile

Wow, that is pretty cool.  They are definitely alike aesthetically!  You 'got skills' for sure!  I did administer a Unix server for a while at UPS, but we quickly after that "upgraded" (cough-cough) to Windows NT 4 Server.  Yeah I'm an old man too!  I've been using it at home as my primary OS since 2009.  Funny, but my 'conky addiction' didn't jump on my back till about 3 months ago.  I truly wish my entire computer career had been with Unix.  A short time at a different employer with administering an AS400 server, but thats a different beast as well.  Linux has been very good to me though and I've no complaints.  Ahhhh off topic, off topic...  Sorry 'bout that.  Sector11 will agree that I can go on.... ops

Offline

Be excellent to each other!

#4200 2012-12-02 07:39:33

antiv0rtex
#! Die Hard
From: Earth
Registered: 2012-10-05
Posts: 574

Re: The New Monster Conky Thread

My current "Conky-figuration" is based on HilltopYodeler's modification of a corenominal config.

http://www.hilltopyodeler.com/scripts/c … ominal.txt

My only changes are to remove the shading and change the text color to black. It really looks very nice on my current desktop big_smile

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.

Debian Logo