SEARCH

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

You are not logged in.

#1876 2012-06-21 02:50:52

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

Re: The New Monster Conky Thread

S11 wrote:

I DID IT!!!!!!!!!!!!!!!!!!!!!

Yohoo mrpeachy

Very nice old chap.. very nice indeed!! big_smile

Offline

Be excellent to each other!

#1877 2012-06-21 12:53:02

dan158
#! Member
Registered: 2012-06-08
Posts: 64

Re: The New Monster Conky Thread

I'm trying to get the NOAA.gov wind speed thing to convert to mph.
here is the line in conky, but it only delivers windspeeds in km/h;

${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_speed}

Is there a way to multiply the output of that by 0.621, (the conversion multiple for mph)?

If your curious here is my .conkyrc, its a simple one but it does everything I want, for now. I transfered it from my laptop (hence the "Connection Quality" I havent removed yet). The " *0.621=mph " is there to remind me to resolve this or I would constantly put it off and never get the answer, lol;

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont HandelGotD:size=8
#xftfont Liberation Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type override
own_window_argb_visual no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 5
maximum_width 220
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 656667
default_shade_color 000000
default_outline_color 828282
alignment top_right
temperature_unit fahrenheit
gap_x 15
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
D A T E  &  T I M E ${hr 2}
${alignc}${time %l;%M%P %a %d %b %Y}

W E A T H E R ${hr}
As Of: $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx last_update}
Temp (f): $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx temperature}
Speed (km/h): $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_speed}*0.621=mph
Dir (from): $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_dir} (${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_dir_DEG}deg)
Humidity: $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx humidity}%
Events: $alignc ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx cloud_cover} $alignr ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx weather}

S Y S T E M    I N F O ${hr}
$nodename: $alignr $sysname $kernel on $machine
#Host: $alignr $nodename
Uptime: $alignr $uptime
#Load: $alignr $loadavg #I have no idea what this is.
RAM: $alignc    $memperc% $alignr $mem / $memmax
${membar}
Swap: $alignc$swapperc% $alignr $swap / $swapmax
${swapbar}
Disk: $alignc    ${fs_free_perc /home}%free $alignr ${fs_used /home} / ${fs_size /home}
${fs_bar /home}
CPU usage: $alignr ${cpu cpu0}%
${cpubar cpu0}
#${cpugraph cpu0} 
Cores: $alignc 1; ${cpu cpu1}% 2; ${cpu cpu2}% 3; ${cpu cpu3}% 4; ${cpu cpu4}%
ACPI Temp: $alignc ${acpitemp}C

#$stippled_hr
T O P  P R O C E S S ${hr}
$alignc ${threads} Running Threads
NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
#${top name 5} $alignr ${top pid 5} ${top cpu 5}
#${top name 6} $alignr ${top pid 6} ${top cpu 6}
#${top name 7} $alignr ${top pid 7} ${top cpu 7}
#${top name 8} $al

C A B L E  E T H E R N E T ${hr}
#wlan0: $alignr ${addr wlan0}  #Shows web address of machine
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
Inbound: ${alignc -24} ${downspeed eth0} kb/s $alignr ${totaldown eth0}
${downspeedgraph eth0}
Outbound: ${alignc -20} ${upspeed eth0} kb/s $alignr ${totalup eth0}
${upspeedgraph eth0}

S H O R T C U T    K E Y S ${hr}
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+Space$alignr Main Menu
Super+Tab$alignr Client Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+x$alignr Logout
PrtSc$alignr Screenshot

Last edited by dan158 (2012-06-21 12:54:10)

Offline

#1878 2012-06-21 13:31:05

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: The New Monster Conky Thread

Edit: attempt to report spam...

Last edited by Tunafish (2012-06-21 13:32:37)


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#1879 2012-06-21 13:44:51

dan158
#! Member
Registered: 2012-06-08
Posts: 64

Re: The New Monster Conky Thread

Ahh, thanks for reporting that guy. I thought he was just a little lost and not understanding his translation prog. till I saw his posts all over the forums.

Last edited by dan158 (2012-06-21 13:57:29)

Offline

#1880 2012-06-21 13:55:52

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: The New Monster Conky Thread

(edit) didn't post fast enough...

Last edited by pidsley (2012-06-21 14:03:09)

Offline

#1881 2012-06-21 14:06:32

dan158
#! Member
Registered: 2012-06-08
Posts: 64

Re: The New Monster Conky Thread

thankyou Pidsley, I'll be sure to use that thread from now on. smile I would just move my question there now, but, I don't know how to delete this thread... it's turning into a disfunctional morning here anyways so maybe I shouldn't mess with to much stuff at the moment, lol.

Offline

#1882 2012-06-22 01:12:35

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

Re: The New Monster Conky Thread

dan158 wrote:

I'm trying to get the NOAA.gov wind speed thing to convert to mph.
here is the line in conky, but it only delivers windspeeds in km/h;

${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_speed}

Is there a way to multiply the output of that by 0.621, (the conversion multiple for mph)?

Yes but you will have to use a script of some kind to do it.
A lua script would probably be the easiest way to do it.
Here is a small lua script that would do that for you.

require 'cairo'
color0_R,color0_G,color0_B,color0_A = (101/255),(102/255),(103/255),1 --#
font = "HandelGotD"
fsize = 8 --# produces different size than in .conkyrc, adjust this until font size matches

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)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    if updates>5 then
        windspd_mph = tonumber(conky_parse('${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_speed}'))*0.621
        cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
        cairo_set_font_size (cr, fsize)
        cairo_set_source_rgba (cr,color0_R,color0_G,color0_B,color0_A)
        cairo_move_to (cr,xposition,yposition)
        cairo_show_text (cr,tostring(windspd_mph))
        cairo_stroke (cr)
    end --# if updates>5 then
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    return ""
end --# function function conky_main()

The font size (fsize), xposition, and yposition need to be changed to match your conky setup.
To use the lua script paste the code into a text editor and save it as a file with a .lua extension.
Then add this to the end of the section above TEXT in your .conkyrc

lua_load path_to_lua_file/luafile.lua
lua_draw_hook_pre main

Make sure to change "path_to_lua_file/luafile.lua" to point to the .lua file you saved before.

lua only uses floating point numbers so you may find that that number has way more decimal places than you want.
If that happens I will try to figure out how to adjust that.

Offline

#1883 2012-06-22 01:18:22

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

Re: The New Monster Conky Thread

^ in a script like that you dont need to parse conky updates or wait for updates to be greater than 5

    local updates=tonumber(conky_parse('${updates}'))
    if updates>5 then
--stuff
    end --# if updates>5 then

this is only necessary when you are parsing cpu numbers in the lua script

not that it will make much difference, only to maximise efficiency smile

Offline

#1884 2012-06-22 01:33:27

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

Re: The New Monster Conky Thread

^ Yes I know that.
But you never know what someone else might add to a script and it won't hurt anything by being there.

Offline

#1885 2012-06-22 03:42:09

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

dan158 wrote:

I'm trying to get the NOAA.gov wind speed thing to convert to mph.
here is the line in conky, but it only delivers windspeeds in km/h;

${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ xxxx wind_speed}

Interesting they give wind speed in MPH on their website for me:
aagO86LE.jpg

but it's converted to kmh with the conky line...
aahcxtSG.jpg
hmmmmmmmm ...
There has to be a way.

Last edited by Sector11 (2012-06-22 03:47:36)

Offline

#1886 2012-06-22 03:49:37

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

arclance wrote:

^ Yes I know that.
But you never know what someone else might add to a script and it won't hurt anything by being there.

It does if one has a high update interval:

update_interval 1800

Offline

#1887 2012-06-22 03:55:20

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

Re: The New Monster Conky Thread

^ Your right, but he is using an update interval of 1 so it won't cause problems.
It can always be removed if he does not want it in there.

Sector11 wrote:

hmmmmmmmm ...
There has to be a way.

Did you miss my answer?

Offline

#1888 2012-06-22 04:02:13

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

arclance wrote:

^ Your right, but he is using an update interval of 1 so it won't cause problems.
It can always be removed if he does not want it in there.

Sector11 wrote:

hmmmmmmmm ...
There has to be a way.

Did you miss my answer?

Late ... tired ... been at the screen all day.
I'm sure there is a way around that without need of a script, it is a nice touch though ... I have a couple of conkys here that use that ... if I recall correctly they are in both F/C ... I'll look tomorrow.

Last edited by Sector11 (2012-06-22 04:03:12)

Offline

#1889 2012-06-22 20:42:54

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

It's done. just like an expensive watch:
Black background:
ec902d197789222.jpg

Lighter, you can see the draw-bk.lua script running as well:
14081d197789257.jpg

The day count on the left will change with each month, and Feb 29 is in there too.

The 12 hour clock on the bottom can have either 01 to 12 or 13 to 00 by changing to a different line:

-- TABLE OF TEXT -- in order
--text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
-- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}

S11_Chronograph.conky

# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/S11_Chronograph.conky &
# A million and one thank yous to mrpeachy

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal #override
own_window_transparent yes #no
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour gray
own_window_class Conky
own_window_title Chronograph

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 340 350  ##420 420   ## width, height
maximum_width 340     ##420       ## width, usually a good idea to equal minimum width

gap_x 10 #15        ### left &right
gap_y 10        ### up & down

alignment tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Anonymous Pro:bold:size=8
xftfont CorporateMonoExtraBold:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
#default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 ffe595 #Teo Gold
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.3}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 30 0 0 0 0 0x000000 0.5
# lua_draw_hook_pre draw-bg 15 60 0 190 250 0x000000 0.1
# lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01
#
############## 12-24 Hour Clock #######################
lua_load ~/Conky/LUA/Chronograph.lua
lua_draw_hook_post main
#######################################################  End LUA Settings  ###
update_interval 1

TEXT
  1: ${if_match ${cpu cpu1} < 10}00${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100}0${cpu cpu1}\
${else}${cpu cpu1}\
${endif}${endif}%\
${alignr 10}2: ${if_match ${cpu cpu2} < 10}00${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100}0${cpu cpu2}\
${else}${cpu cpu2}\
${endif}${endif}%
  CPU  ${hwmon 2 temp 1}°${alignr 10}MB  ${hwmon 1 temp 1}°



















  3: ${if_match ${cpu cpu3} < 10}00${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100}0${cpu cpu3}\
${else}${cpu cpu3}\
${endif}${endif}%\
${alignr 5}A: ${if_match ${cpu cpu0} < 10}00${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100}0${cpu cpu0}\
${else}${cpu cpu0}\
${endif}${endif}%
  SDA  ${execi 15 hddtemp -n /dev/sda}°${alignr 5}GPU  ${nvidia temp}°

Chronograph.lua

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
 21 Jun 2012 - Chronograph modifications by Sector11
 22 Jun 2012 - again with mrpeachy's help day names. numbers and month names

use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT


-- INDEX (use find with):

-- ###### 12 OR 24 CLOCK FACE
-- SET BORDER OPTIONS ######  ALL CLOCKS

-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
-- CLOCK A HOUR HAND
-- CLOCK A MINUTE HAND SETUP
-- CLOCK A SECOND HAND SETUP
-- CLOCK A ###### 24 HR TIME

-- ### START DIAL B ### Week Day Names Dial
-- ### START DIAL C ### Month Names Dial
-- ### START DIAL D ### Day Numbers Dial

-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
-- CLOCK E HOUR HAND
-- CLOCK E MINUTE HAND SETUP
-- CLOCK E SECOND HAND SETUP
-- CLOCK E ###### 12 HR TIME

]]

require 'cairo'

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)
cr = cairo_create(cs)
-- ########################################################
-- SETTINGS AREA
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")

-- ###### 12 OR 24 CLOCK FACE #############################
local clock_type_A=24 -- Large Main 24 HR Clock
local clock_type_E=12 -- Bottom - 12 HR Clock

-- ###### CLOCK SETTINGS ##################################
-- SET BORDER OPTIONS FOR "CLOCKS" ########################
local clock_border_width=0
-- set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  -- full opaque white
-- gap from clock border to minute marks
local b_to_m=1

-- ########################################################
-- ### START CLOCK A ######################################
-- SET MARKS ##############################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=24
-- set mark length
local m_length_A=0
-- set mark width
local m_width_A=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK A HOUR HAND
-- set length of hour hand
hh_length_A=130
-- set hour hand width
hh_width_A=3
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,1,1-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK A MINUTE HAND SETUP
-- set length of minute hand
mh_length_A=145
-- set minute hand width
mh_width_A=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,1,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK A SECOND HAND SETUP
-- set length of seconds hand
sh_length_A=160
-- set hour hand width
sh_width_A=1
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK A ###### 24 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=200
clock_centerx=175
clock_centery=175
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A
-- set line cap type
cairo_set_line_cap  (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_A)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
-- HOUR MARKS
-- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds just as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
--[[ DRAW SECOND HAND
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_A)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr) ]]

-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=160
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 10)
cairo_set_source_rgba (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,24 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=150
for i=1,24 do
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end

-- ### END CLOCK A ########################################

-- ########################################################
-- ### START DIAL B ### Left - Week Day Names Dial ########
-- DIAL POSITION FOR TEXT
local center_x=175
local center_y=95
local radius=50
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 10)
cairo_set_source_rgba (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"SUN","MON","TUE","WED","THR","FRI","SAT",}
for i=1,7 do
-- work out points
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=35
for i=1,7 do
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current day of week
local hand_length=35
local day_number=tonumber(os.date("%w"))
local point=(math.pi/180)*((360/7)*(day_number))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
local hand_width=2
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END DIAL B #########################################

-- ########################################################
-- ### START DIAL C ### Left - Month Names Dial ############
-- DIAL POSITION FOR TEXT
local center_x=260
local center_y=175
local radius=45
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 10)
cairo_set_source_rgba (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current month
local this_month=tonumber(os.date("%m"))
local hand_length=32 --radius for this calculation
local point=(math.pi/180)*((360/12)*(this_month-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)

-- ### END CLOCK C ########################################

-- ########################################################
-- ### START CLOCK D ### -- Left Day Numbers Dial
-- GET NUMBER OF DAYS IN CURRENT MONTH
-- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00,min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00,min=0,sec=0});
febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
-- MONTH TABLE
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
-- TEXT positioning
local center_x=95
local center_y=175
local radius=50
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 8)
cairo_set_source_rgba (cr,1,1,1,1)
for i=1,number_days do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=i
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=40
for i=1,number_days do
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current DAY
local this_day=tonumber(os.date("%d"))
local hand_length=40--radius for this calculation
local point=(math.pi/180)*((360/number_days)*(this_day-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END CLOCK D ########################################

-- ########################################################
-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
local number_marks_E=12
-- set mark length
local m_length_E=0
-- set mark width
local m_width_E=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,0,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK E HOUR HAND
-- set length of hour hand
hh_length_E=25
-- set hour hand width
hh_width_E=2
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,0,1-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK E MINUTE HAND SETUP
-- set length of minute hand
mh_length_E=35
-- set minute hand width
mh_width_E=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,0,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK E SECOND HAND SETUP
-- set length of seconds hand
sh_length_E=32
-- set hour hand width
sh_width_E=1
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK E ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=45
clock_centerx=175
clock_centery=260
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_E
-- set line cap type
cairo_set_line_cap  (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_E)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR SECOND MARKS
for i=1,number_marks_E do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
-- TIME CALCULATIONS CLOCK E
if clock_type_E==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_E==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds and draw it
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_E))-- use equation ~ 360/43200 gives results with decimals
-- set radius to calculate hand points
radius=hh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_E)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds just as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_E)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_E)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)


-- DIAL POSITION FOR TEXT
local center_x=175
local center_y=260
local radius=45
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 10)
cairo_set_source_rgba (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
--text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
-- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end

-- ### END CLOCK E ########################################

-- ########################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

draw-bk.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT - requires a composite manager or it blinks.

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}

OR Both above TEXT (No composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
  See below:        1  2 3 4 5 6        7 

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position
3 = 0             y_position
3 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) 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)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end

Thank you mrpeachy! - not possible without your samples and tips.

Last edited by Sector11 (2012-06-23 12:46:36)

Offline

#1890 2012-06-22 20:45:50

dan158
#! Member
Registered: 2012-06-08
Posts: 64

Re: The New Monster Conky Thread

arclance wrote:
dan158 wrote:

I'm trying to get the NOAA.gov wind speed thing to convert to mph.
.....
Is there a way to multiply the output of that by 0.621, (the conversion multiple for mph)?

Yes but you will have to use a script of some kind to do it.
A lua script would ......
Make sure to change "path_to_lua_file/luafile.lua" to point to the .lua file you saved before.

lua only uses floating point numbers so you may find that that number has way more decimal places than you want.
If that happens I will try to figure out how to adjust that.

Thank you folks, the above script works ... well, for 0 wind speed anyways. I'll have to wait on the weather here to see if it gives a huge decimal or something reasonable. smile I'll post again if it gives a problem.

Thank You also to whomever moved my dangling thread to in here, out of the cold.

Offline

#1891 2012-06-22 20:48:23

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

Re: The New Monster Conky Thread

^^ Awesome work Sector11, I see why you have had your head down working so hard for the last couple of days...  That is really cool.

^ my pleasure dan158m, glad you got it resolved.


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#1892 2012-06-22 22:22:04

ElderV.LaCoste
#! Die Hard
From: Equarico
Registered: 2010-07-15
Posts: 817

Re: The New Monster Conky Thread

@ S11 - That is one of the coolest things I've ever seen!


Things are not as they seem, nor are they otherwise.
- Lankavatara Sutra

Offline

#1893 2012-06-22 22:39:44

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

^ & ^^ Thanks guys. That's been on the back burner forever, thinking I'd need 5 different conkys displaying them on the five points of a pentagram.  And then, mrpeachy, responded to a question and the 4 clock LUA was created.

That did it ... this:
aaiHZipC.jpg
became a reality.  It took a few days - really really slow, error prone typing doesn't help.

I got stuck, asked mrpeachy for help and he came through with flying colours.  Enough to get me going without doing it all for me.  I'm going to build a whole conky around that.  big_smile

Take a bow mrpeachy, you made it possible, I'm just a layout guy.
And I must admit, that's one cool layout!

BTW: The code has some extra stuff in it that I'm going to trim out.  When that happens I'll post it.  This works though.
I think that need to be on CPS.

Last edited by Sector11 (2012-06-22 22:43:47)

Offline

#1894 2012-06-22 22:44:16

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

Re: The New Monster Conky Thread

@ Sector11 - you are welcome!  Looks great big_smile

Offline

#1895 2012-06-23 01:58:46

shengchieh
#! Die Hard
Registered: 2009-01-07
Posts: 617

Re: The New Monster Conky Thread

Conky: Cool System Monitor, Clunky Setup
http://www.technewsworld.com/story/Conk … 75421.html

Sheng-Chieh

Offline

#1896 2012-06-23 02:03:55

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

Re: The New Monster Conky Thread

You do know about this thread Sheng-Chieh?  Now that you do, check out an incredible resource.


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#1897 2012-06-23 02:27:27

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

Re: The New Monster Conky Thread

shengchieh wrote:

Conky: Cool System Monitor, Clunky Setup
http://www.technewsworld.com/story/Conk … 75421.html

Sheng-Chieh

i glanced through the text ... that author is horribly misinformed
for example

Conky will not work properly, if at all, unless you grab and install the sensor packages.

Offline

#1898 2012-06-23 02:35:37

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

Tried various things and adding too much distracts from it so the S11_Chronograph, as I call it, stays almost unchanged.  I did add some stuff to the corners, but took it away from my vertical conky and all changes are in the conky not the LUA.  I think it looks nice. The conky code has been updated in my previous post.

So this is my new look:
aadakCRf.jpg

The changes:

  • the corners have 'cpu %' (3 + an average) and 4 temperatures

  • I reconfigured the layout of my tint2 bar and changed the position

  • vertical conky is shorter as some info has been moved to S11_Chronograph

  • raidotray conky moved down to the bottom of the screen

  • GMusicBrowser move down with the radiotray (not shown)

OH - the LUA code.  I decided to leave it.  I may want to make changes in the future.
However: I'll need my wife's approval as she likes it.

OK, that's that - what's next?

Offline

#1899 2012-06-23 03:31:20

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,408
Website

Re: The New Monster Conky Thread

mrpeachy wrote:

i glanced through the text ... that author is horribly misinformed
for example

Conky will not work properly, if at all, unless you grab and install the sensor packages.

I looked at that and was about to quote the same thing, but since you did....

But it is cranky to set up.

YEA!  Right ...

sudo apt-get install conky
conky

That's it, nothing else! How cranky is that.
aaipAsEw.jpg
UGLY, but there it is - a default conky.

Tweaking and customizing it can make one cranky!  That I'll buy but it's addictive fun!

... and the holes in that article keep getting bigger and bigger!

The ending paragraph is to laugh or cry over ... I'm not sure:

Conky's developers need to keep pace with newer Linux distros to make the app easier to install. Ideally, Conky should be a completely contained package that installs with one click from the distro's software center. And a bundled and improved setup GUI would be a welcomed enhancement.

software center - now we know.

Offline

Be excellent to each other!

#1900 2012-06-23 13:43:48

mmesantos1
#! CrunchBanger
From: VA. USA
Registered: 2012-06-10
Posts: 132
Website

Re: The New Monster Conky Thread


mmesantos1

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