<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[CrunchBang Linux Forums - My Conky Config]]></title>
		<link>http://crunchbanglinux.org/forums/topic/59/my-conky-config/</link>
		<description><![CDATA[The most recent posts in My Conky Config.]]></description>
		<lastBuildDate>Fri, 12 Aug 2011 11:35:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137607/#p137607</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>Please now post your conky configs in the monthly conky threads :)</p>]]></description>
			<author><![CDATA[dummy@example.com (MarvinSuggs)]]></author>
			<pubDate>Fri, 12 Aug 2011 11:35:22 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137607/#p137607</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137494/#p137494</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>Sector11 wrote:</cite><blockquote><div class="quotebox"><cite>xeNULL wrote:</cite><blockquote><p>A base conky for you guys to use =D</p><p>You will need the Terminus and Humanoid fonts.</p><p><span class="postimg"><img src="http://img847.imageshack.us/img847/4835/minconky.png" alt="http://img847.imageshack.us/img847/4835/minconky.png" /></span></p></blockquote></div><p>Look nice.&nbsp; Or change the fonts&nbsp; :D</p></blockquote></div><p>Or that lol</p>]]></description>
			<author><![CDATA[dummy@example.com (xeNULL)]]></author>
			<pubDate>Thu, 11 Aug 2011 22:40:22 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137494/#p137494</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137492/#p137492</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>ackernan wrote:</cite><blockquote><p>I use a lua script to create my conky background.&nbsp; Occasionally for no reason the background will disappear for few seconds, nothing else does.&nbsp; How can I fix this?&nbsp; It&#039;s nothing major, just annoying.</p><p><a href="http://dl.dropbox.com/u/23122621/Selection_055.png">http://dl.dropbox.com/u/23122621/Selection_055.png</a></p></blockquote></div><p>Try to run your conky in a terminal :<br /></p><div class="codebox"><pre><code>killall conky
conky -c /path/to/your/conkyrc</code></pre></div><p>I guess you will get some errors when the background disappear, post them please .</p>]]></description>
			<author><![CDATA[dummy@example.com (wlourf)]]></author>
			<pubDate>Thu, 11 Aug 2011 22:16:00 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137492/#p137492</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137482/#p137482</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>xeNULL wrote:</cite><blockquote><p>A base conky for you guys to use =D</p><p>You will need the Terminus and Humanoid fonts.</p><p><span class="postimg"><img src="http://img847.imageshack.us/img847/4835/minconky.png" alt="http://img847.imageshack.us/img847/4835/minconky.png" /></span></p></blockquote></div><p>Look nice.&nbsp; Or change the fonts&nbsp; :D</p>]]></description>
			<author><![CDATA[dummy@example.com (Sector11)]]></author>
			<pubDate>Thu, 11 Aug 2011 20:54:47 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137482/#p137482</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137481/#p137481</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>ackernan wrote:</cite><blockquote><p>I use a lua script to create my conky background.&nbsp; Occasionally for no reason the background will disappear for few seconds, nothing else does.&nbsp; How can I fix this?&nbsp; It&#039;s nothing major, just annoying.</p></blockquote></div><p>I&#039;m at a loss on this, maybe mrpeachy or wlourf can help - unless there are other LUA gurus in the house.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sector11)]]></author>
			<pubDate>Thu, 11 Aug 2011 20:51:58 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137481/#p137481</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137474/#p137474</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>A base conky for you guys to use =D</p><p>You will need the Terminus and Humanoid fonts.</p><p><span class="postimg"><img src="http://img847.imageshack.us/img847/4835/minconky.png" alt="http://img847.imageshack.us/img847/4835/minconky.png" /></span></p><div class="codebox"><pre><code>#==============================================================================
#  MinHXR
#
#  Date    : 11/08/2011
#  author  : xeNULL
#  version : v0.1
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
short_units yes

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 0
gap_y 10

minimum_size 500 35
maximum_width 500
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tm

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

default_bar_size 115 30

override_utf8_locale no
use_xft yes
xftfont Terminus:size=7
xftalpha 1.0
uppercase no

default_color FFFFFF ## white
color1 999999 ## Medium Grey
color2 510000 ## Dark Red


TEXT
${color2}${font Humanoid:size=9}o${font}${color} cpu 1 ${goto 50}${cpubar cpu0 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}  disk ${goto 200}${fs_bar 5,80 /}  ${color2}${font Humanoid:size=9}o${font}${color}  ip ${goto 350}${addr wlan0}  ${offset 7}${color2}${font Humanoid:size=9}o${font}${color}
${color2}${font Humanoid:size=9}o${font}${color} cpu 2 ${goto 50}${cpubar cpu1 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}  home ${goto 200}${fs_bar 5,80 /home/xn}  ${color2}${font Humanoid:size=9}o${font}${color}  up ${goto 350}${upspeedgraph wlan0 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}
${color2}${font Humanoid:size=9}o${font}${color} mem ${goto 50}${membar 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}  ehd  ${goto 200}${fs_bar 5,80 /media/XEHD}  ${color2}${font Humanoid:size=9}o${font}${color}  down ${goto 350}${upspeedgraph wlan0 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}
${color2}${font Humanoid:size=9}o${font}${color} vol ${goto 50}${mixerbar &#039;PCM&#039; 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}  r/w  ${goto 200}${diskiograph 5,80}  ${color2}${font Humanoid:size=9}o${font}${color}  qual ${goto 350}${wireless_link_bar 5,80 wlan0}  ${color2}${font Humanoid:size=9}o${font}${color}

${if_running mocp}${alignc}${font sans:size=8}${exec mocp -Q %song}  ${color2}${font Humanoid:size=9}o${font}${color} ${exec mocp -Q %artist} ${color2}${font Humanoid:size=9}o${font}${color} ${exec mocp -Q %album}${font}${else}${endif}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xeNULL)]]></author>
			<pubDate>Thu, 11 Aug 2011 20:23:21 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137474/#p137474</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/137364/#p137364</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>I use a lua script to create my conky background.&nbsp; Occasionally for no reason the background will disappear for few seconds, nothing else does.&nbsp; How can I fix this?&nbsp; It&#039;s nothing major, just annoying.</p><p><a href="http://dl.dropbox.com/u/23122621/Selection_055.png">http://dl.dropbox.com/u/23122621/Selection_055.png</a></p><br /><div class="codebox"><pre><code>######################
# - Conky settings - #
######################
background yes
update_interval 1
 
cpu_avg_samples 2
net_avg_samples 2
 
override_utf8_locale yes
 
double_buffer yes
no_buffers yes
 
text_buffer_size 10240
#imlib_cache_size 0
 
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 
border_inner_margin 0
border_outer_margin 0
 
minimum_size 290 730
maximum_width 300
 
alignment tr
gap_x 10
gap_y 5
 
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
 
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Santana:size=9:style=bold
xftalpha 0.8
 
uppercase no
 
default_color FFFFFF

temperature_unit fahrenheit
if_up_strictness address


####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/.conky/new/bg.lua

TEXT
${lua conky_draw_bg 20 0 0 290 725 0x000000 0.4}
#
# System info
#
${image ~/.conky/images/tux_graduate.png -p 5,5 -s 48x48}
${voffset -30}${goto 60} ${nodename}
${goto 60} ${sysname} ${kernel} on ${machine}
${goto 60} Uptime:  ${uptime}
${goto 60} ${execpi 300 lsb_release -d | cut -c 14-50}
#
# Time
#
${voffset -15}${goto 60}${font FFF Tusj:size=60}${time %H:}${font}
${voffset -65}${goto 200}${font FFF Tusj:size=25}${color DFEC88}${time %S}${font}${color}
${voffset -10}${goto 140}${font FFF Tusj:size=60}${time %M}${font}
#
# Processor info
#
${image ~/.conky/images/processor.png -p 5,200 -s 48x48}
${goto 60}${freq}MHz   Load: ${color 88ECE0}${loadavg}${color}
${goto 60}Core 1 Usage: ${color DFEC88}${cpu cpu1}% ${color} ${alignr 5}${cpubar cpu1 6,115}
${goto 60}Core 2 Usage: ${color DFEC88}${cpu cpu2}% ${color} ${alignr 5}${cpubar cpu2 6,115}
${goto 60}Core 3 Usage: ${color DFEC88}${cpu cpu3}% ${color} ${alignr 5}${cpubar cpu3 6,115}
${goto 60}Core 4 Usage: ${color DFEC88}${cpu cpu4}% ${color} ${alignr 5}${cpubar cpu4 6,115}
${goto 60}CPU Temp: ${color 88ECE0}${acpitemp}° F${color}
#
# Memory info
#
${image ~/.conky/images/memory.png -p 5,262 -s 48x48}
${voffset -10}${goto 60}RAM:   ${memperc}% ${alignr 5}${membar 6,155} 
${goto 60}Swap:  ${swapperc}%   ${alignr 5}${swapbar 6,155} 
#
# Disk info
#
${image ~/.conky/images/hdd.png -p 5,320 -s 48x48}
${voffset -10}${goto 60}Root:   ${fs_size /} ${alignr 5}${fs_free /} free
${goto 60}Home:  ${fs_size /home} ${alignr 5}${fs_free /home} free
${goto 60}${if_existing /media/Linux}Linux:  ${fs_size /media/Linux} ${alignr 5}${fs_free /media/Linux} free${else}Linux:  Not Mounted${endif}
${goto 60}${if_existing /media/Stuff}Stuff:  ${fs_size /media/Stuff} ${alignr 5}${fs_free /media/Stuff} free${else}Stuff:   Not mounted${endif}
${goto 60}Disk temp: ${color 88ECE0}${execpi 300 hddtemp -u f /dev/sda | cut -c 35-40}${color}
#
# Network info
#
${if_up eth1}${image ~/.conky/images/wireless.png -p 5,405 -s 48x48}
${voffset -10}${goto 60}${font size=12}Wireless${font}
${goto 60}Internal IP: ${addr eth1}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e &#039;s/.*Current IP Address: //&#039; -e &#039;s/&lt;.*$//&#039;}
${goto 60}${downspeedgraph eth1 25,112 110000 520000 -t} ${upspeedgraph eth1 25,112 001100 005200 -t}
${voffset -40}${font size=12}${goto 85}${downspeed eth1}${goto 200}${upspeed eth1}${font}
${goto 60}Down${goto 125}${totaldown eth1}${goto 178}UP ${alignr 5}${totalup eth1}
#
# Weather info
#
${execpi 1800 conkyForecast -i --template=~/.conky/new/conkyForecast.template}
#
# If you&#039;re on ethernet
#
${else}${if_up eth0}${image ~/.conky/images/network-ethernet-connected.png -p 5,405 -s 48x48}
${voffset -10}${goto 60}${font size=12}Ethernet${font}
${goto 60}Internal IP: ${addr eth0}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e &#039;s/.*Current IP Address: //&#039; -e &#039;s/&lt;.*$//&#039;}
${goto 60}${downspeedgraph eth0 25,112 110000 520000 -t} ${upspeedgraph eth0 25,112 001100 005200 -t}
${voffset -40}${font size=12}${goto 85}${downspeed eth0}${goto 200}${upspeed eth0}${font}
${goto 60}Down${goto 125}${totaldown eth0}${goto 180}UP ${alignr 5}${totalup eth0}
#
# Weather info
#
${execpi 1800 conkyForecast -i --template=~/.conky/new/conkyForecast.template}
# This is if you have no network interace up
${else}${voffset 35}${image ~/.conky/images/network-error-2.png -p 5,405 -s 48x48}
${goto 60}${font size=12}No Network Connection${font}${endif}${endif}</code></pre></div><br /><div class="codebox"><pre><code>--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

the conky bits that matter (sample):
_ _ _ _ _ _ _ _ _ _
lua_load ~/lua/background.lua

TEXT
${lua conky_draw_bg 10 100 100 100 100 0x000000 0.2}
${lua conky_draw_bg 10 200 200 100 100 0x000000 0.2}
${lua conky_draw_bg 10 100 300 100 100 0x000000 0.2}

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

${execpi 1800 conkyForecast --template=~/lua/test.template}
_ _ _ _ _ _ _ _ _ _
test template:
_ _ _ _ _ _ _ _ _ _
${image [--datatype=WI --startday=1]  -p 100,100 -s 90x90}
${image [--datatype=WI --startday=2]  -p 200,200 -s 90x90}
${image [--datatype=WI --startday=3]  -p 100,300 -s 90x90}
${image [--datatype=WI --startday=4]  -p 200,400 -s 90x90}
_ _ _ _ _ _ _ _ _ _

or you can have one background over the whole window
and others to highlight parts of the conky
_ _ _ _ _ _ _ _ _ _
TEXT
${lua conky_draw_bg 50 0 0 400 800 0x000000 0.2} # whole background
${lua conky_draw_bg 20 100 100 100 100 0x000000 0.2} # dark shade
${lua conky_draw_bg 0 200 200 100 100 0xffffff 0.2} # light square
${lua conky_draw_bg 50 100 300 100 100 0xff0000 0.2} # red circle
_ _ _ _ _ _ _ _ _ _

]]

require &#039;cairo&#039;
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)
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 &quot;&quot;
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ackernan)]]></author>
			<pubDate>Thu, 11 Aug 2011 11:01:40 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/137364/#p137364</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136846/#p136846</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>I gotta say ... regarding the rant&nbsp; :D</p><p>I&#039;m like Tom Clancy: I know I&#039;m paranoid, but am I paranoid enough!&nbsp; :lol:</p><p>And I use Google, they track me, I don&#039;t care, but I&#039;d still like to keep my stuff mine as much as possible.&nbsp; :)</p>]]></description>
			<author><![CDATA[dummy@example.com (Sector11)]]></author>
			<pubDate>Tue, 09 Aug 2011 16:49:07 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136846/#p136846</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136836/#p136836</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>kbmonkey wrote:</cite><blockquote><div class="quotebox"><cite>Sector11 wrote:</cite><blockquote><p>Yea, pure genius that was... Are you going to show us the conky?</p></blockquote></div><p>Sure :)</p><p><a href="http://ompldr.org/vOXRrdA">http://ompldr.org/vOXRrdA</a></p><p>(the ompload bash script doesn&#039;t make thumbs)</p></blockquote></div><p>It does for me:<br /><a href="http://ompldr.org/vOXRwMA"><span class="postimg"><img src="http://ompldr.org/tOXRwMA" alt="http://ompldr.org/tOXRwMA" /></span></a></p><p><a href="http://ompldr.org/vOXRwMg"><span class="postimg"><img src="http://ompldr.org/tOXRwMg" alt="http://ompldr.org/tOXRwMg" /></span></a></p><p><strong>I stand corrected...</strong> I didn&#039;t see the <em>&quot;bash script&quot;</em> part:</p><p>if you could to a &quot;rename&quot; in the bash script:</p><p><a href="http://ompldr.org/vOXRrdA"><span class="postimg"><img src="http://ompldr.org/tOXRrdA" alt="http://ompldr.org/tOXRrdA" /></span></a></p><p>Changing this part: </p><div class="codebox"><pre><code>.org/v</code></pre></div><p>to this: </p><div class="codebox"><pre><code>.org/t</code></pre></div><p>as seen here:<br /></p><div class="codebox"><pre><code>[url=http://ompldr.org/vOXRrdA][img]http://ompldr.org/tOXRrdA[/img][/url]</code></pre></div><p>you&#039;d have it.&nbsp; That <strong>.org/t</strong> gives you the thumb.</p><p>Thanks for the code.&nbsp; :D</p><p>What bash script?</p>]]></description>
			<author><![CDATA[dummy@example.com (Sector11)]]></author>
			<pubDate>Tue, 09 Aug 2011 16:00:54 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136836/#p136836</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136802/#p136802</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>dlm955 wrote:</cite><blockquote><p>Well SECTOR 11 here it is click on pic to get it larger</p><p><a href="http://imgur.com/dcKqJ"><span class="postimg"><img src="http://i.imgur.com/dcKqJ.png" alt="http://i.imgur.com/dcKqJ.png" /></span></a> That should be a link to a pic of my desktop.</p><p> The cruncbang symbols on top by clock I made with gimp they have a black background so they only blend with one.</p></blockquote></div><p>OK, I did it .. late but it&#039;s there:&nbsp; dlm955 <a href="http://conky.pitstop.free.fr/wiki/index.php5?title=Featured">Featured</a> on Conky Pitstop and in the <a href="http://conky.pitstop.free.fr/wiki/index.php5?title=Gallery_2011_%282%29">Gallery!</a>.</p><p>There&#039;s actually a few more more I am going to put up but life and been sidetracked with other stuff has caused a delay&nbsp; :D.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sector11)]]></author>
			<pubDate>Tue, 09 Aug 2011 13:48:42 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136802/#p136802</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136774/#p136774</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>Sector11 wrote:</cite><blockquote><p>Yea, pure genius that was... Are you going to show us the conky?</p></blockquote></div><p>Sure :)</p><p><a href="http://ompldr.org/vOXRrdA">http://ompldr.org/vOXRrdA</a></p><p>(the ompload bash script doesn&#039;t make thumbs)</p><div class="codebox"><pre><code># minfo conky -- for the minimalist!
# 
# minimalist conky is a horizontal style config.
# configure your desktop margins so conky is always visible.
# 
# made from scratch using the conky wiki as reference.
# 
# features:
#  * the usual system infos, includes top 2 procs cpu%
#  * now playing, todo items and weather
# 
# notes:
#  * includes examples for now playing via deadbeef, mpd and moc
#  * todo item from plain text file ~/todo, first two lines sed&#039;d into one
#  * see bottom for examples and notes
# 
# feel free to tweak :)
# 
# ~ kbmonkey
# 
# # # # # # # # # # # # # #

alignment                   top_left
use_xft                     yes
xftfont                     Monospace:size=9
xftalpha                    1
out_to_console              no
update_interval             3
draw_shades                 no
own_window                  yes
own_window_type             override
own_window_transparent      no
double_buffer               yes
#own_window_type             normal
stippled_borders            1
border_width                1
draw_borders                no
gap_x                       6
gap_y                       0
use_spacer                  yes

# colors
# # # # # # # # # # # # # #
default_color               ffff00  # the border and pipes between outputs
own_window_colour           000000  # background
color1                      7e9ee0  # processing
color2                      88cc88  # networking
color3                      9999cc  # disks
color4                      d3c76e  # top
color5                      dddd00  # irc
color6                      b09ce8  # weather
color7                      e0af7e  # todo
color8                      88aaff  # now playing
color9                      d3c76e  # infos
 
# [first line] # # # # # # # # # # # # #

TEXT
${color9}$nodename resurrected ${uptime_short} ago ${color}☼${color6} ${execi 300 ~/.conky/configs/weather.sh &quot;AFR|ZA|SF005|DURBAN&quot;} ${color}≡${color1} [cpu ${cpubar 10,60} [ram ${membar 10,60} [swap ${color1}${swapbar 10,60} ${color}≡${color2} [ra0 ${downspeed ra0} ${downspeedgraph ra0 10,60 006600 00ff00 -l} ${color}≡${color3} [/ ${fs_bar 10,60 /} [/home ${fs_bar 10,60 /home} [/data ${fs_bar 10,60 /mnt/data} ${color}≡${alignr}${color4} [${top name 1} ${top cpu 1}%][${top name 2} ${top cpu 2}%]
#
# [uplink ${upspeed ra0} ${upspeedgraph ra0 10,60 006600 00ff00} ${color}≡${color3} 
# 
# [second line] # # # # # # # # # # # # #
${color7}TODO: ${exec cat todo | head -n2 | sed &#039;N;s/\n/ /;&#039;}  ${alignc}${color5} ${exec cat .conky-im | tail -2 | sed &#039;N;s/\n/ \| /;s/\t/\ /g;&#039;} ${alignr} ${color8} ${if_running mpd} ♫ ${exec ncmpcpp --now-playing &quot;{{%t by %a}|{%f}}&quot;}${endif}
#
#
#
# [notes]
# # # # # # # # # # # # # #
#
# now playing codes:
#  * moc = ${color8}${if_running mocp}${exec mocp -Q %title}${endif}
#
#  * deadbeef = ${color8}${if_running deadbeef-main}${exec deadbeef --nowplaying &#039;%t, by %a&#039;}${endif}
#
#  * mpd via ncmpcpp = ncmpcpp --now-playing &quot;%t by %a&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kbmonkey)]]></author>
			<pubDate>Tue, 09 Aug 2011 10:59:28 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136774/#p136774</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136757/#p136757</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>@dlm955 that bargraph is uber! I love that look, so LED. Might check out that lua script for it.</p><p>@Sector11, wow some rant! He he. What if Google wanted to rush out the OS so they improvised on the hardware for the meanwhile, hence the Caps keys. That aside, I&#039;m anti Caps lock, it&#039;s just a glorified cruise control for &#039;cool&#039; :cool: xmodmap it to something useful, perhaps xbill is a suitable replacement :lol:</p><p>@xeNULL you have made it so nice!</p>]]></description>
			<author><![CDATA[dummy@example.com (kbmonkey)]]></author>
			<pubDate>Tue, 09 Aug 2011 10:21:20 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136757/#p136757</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136682/#p136682</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>ackernan wrote:</cite><blockquote><p>Looks good. :-)</p></blockquote></div><p>Thanks man =]</p>]]></description>
			<author><![CDATA[dummy@example.com (xeNULL)]]></author>
			<pubDate>Mon, 08 Aug 2011 23:51:27 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136682/#p136682</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136602/#p136602</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<div class="quotebox"><cite>xeNULL wrote:</cite><blockquote><p>It is done...for now</p><p><a href="http://dl.dropbox.com/u/14366320/conky2.png"><span class="postimg"><img src="http://dl.dropbox.com/u/14366320/conky2.png" alt="http://dl.dropbox.com/u/14366320/conky2.png" /></span></a></p></blockquote></div><p>Looks good. :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (ackernan)]]></author>
			<pubDate>Mon, 08 Aug 2011 18:15:16 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136602/#p136602</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/136466/#p136466</link>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 131 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<description><![CDATA[<p>It is done...for now</p><p><a href="http://dl.dropbox.com/u/14366320/conky2.png"><span class="postimg"><img src="http://dl.dropbox.com/u/14366320/conky2.png" alt="http://dl.dropbox.com/u/14366320/conky2.png" /></span></a></p><p>conkyrc:<br /></p><div class="codebox"><pre><code>#==============================================================================
#  ConkyHXR
#
#  Date    : 03/08/2011
#  author  : xeNULL
#  version : v0.1
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
short_units yes

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 25
gap_y 40

minimum_size 180 750
maximum_width 180
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

default_bar_size 150 20

override_utf8_locale yes
use_xft yes
xftfont Pragmata:9
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 FFFFFF

lua_load ~/.scripts/conkyHXR.lua
lua_draw_hook_post main

TEXT
${voffset 25}${font Pragmata:size=9} /// S Y S T E M ///

${voffset 25}${color4}${offset 55}${cpugraph 20,115 999999 ffffff}${color}
${voffset -20}${offset 45}${font Pragmata:size=9}${color}CPU${offset 65}
${offset 55}${font Pragmata:size=8,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 55}${font Pragmata:size=8,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 55}${font Pragmata:size=8,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 55}${font Pragmata:size=8,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 55}${font Pragmata:size=8,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%

${voffset 30}${color4}${offset 55}${memgraph 5,115  999999 ffffff -l}${color}
${voffset -15}${offset 45}${font Pragmata:size=9}${color}MEM
${offset 55}${font Pragmata:size=8,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 55}${font Pragmata:size=8,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 55}${font Pragmata:size=8,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 55}${font Pragmata:size=8,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 55}${font Pragmata:size=8,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%

${voffset 25}${offset 55}${diskiograph 20,115 999999 ffffff}
${voffset -20}${offset 45}${font Pragmata:size=9}${color}DISK
${offset 55}${font Pragmata:size=8,weight:normal${alignr}}${color}/ ${fs_used /} -  ${fs_size /}

${voffset 5}${color4}${offset 10}${upspeedgraph eth0 20,70 999999 ffffff}${alignr}${offset 0}${upspeedgraph wlan0 20,70 999999 ffffff}${color}
${color4}${offset 10}${downspeedgraph eth0 20,70 999999 ffffff}${alignr}${offset 0}${downspeedgraph wlan0 20,70 999999 ffffff}${color}
  ${voffset 8}${offset 10}${font Pragmata:size=9}${color}ETHERNET       WIRELESS
  ${offset 10}${color2}${font Pragmata:size=8,weight:normal}${addr eth0}${alignr}${offset -10}${addr wlan0}

${voffset 42}${offset 45}${font Pragmata:size=9}${color4}MUSIC${color}
${offset 55}${hr}
${font Pragmata:size=8}${offset 55}${color4}Song${color} 
${offset 55}${color3}${exec mocp -Q %song}${color}
${offset 55}${color4}Artist${color} 
${offset 55}${color3}${exec mocp -Q %artist}${color}
${offset 55}${color4}Album${color} 
${offset 55}${color3}${exec mocp -Q %album}${color}
${offset 55}${hr}
${offset 55}${alignr}${color3}${exec mocp -Q %ct} - ${exec mocp -Q %tt}${color}
${voffset -12}${offset 55}${blink ${color4}${exec mocp -Q %state}${color}

${image ~/.scripts/usdesk.png -p 3,0 -s 30x10}${image ~/.scripts/usdesk.png -p 47,0 -s 30x10}${image ~/.scripts/usdesk.png -p 91,0 -s 30x10}${image ~/.scripts/usdesk.png -p 135,0 -s 30x10}${if_match ${desktop}==1}${image ~/.scripts/sdesk.png -p 3,0 -s 30x10}${endif}${if_match ${desktop}==2}${image ~/.scripts/sdesk.png -p 47,0 -s 30x10}${endif}${if_match ${desktop}==3}${image ~/.scripts/sdesk.png -p 91,0 -s 30x10}${endif}${if_match ${desktop}==4}${image ~/.scripts/sdesk.png -p 135,0 -s 30x10}${endif}
${image ~/images/wallpapers/avatar.png -p 3,640 -s 100x100}</code></pre></div><p>lua script [needs mixer variable editing if you use &#039;Master&#039;]:<br /></p><div class="codebox"><pre><code>--==============================================================================
--  ConkyHXR.lua
--
--  Date    : 03/08/2011
--  Author  : xeNULL
--  Version : v0.1
--  License : Distributed under the terms of GNU GPL version 2 or later
--
--==============================================================================

require &#039;cairo&#039;


--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu0&#039;,                  max_value=100,
    x=40,                          y=90,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu1&#039;,                  max_value=100,
    x=40,                          y=90,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;memperc&#039;,                arg=&#039;&#039;,                      max_value=100,
    x=40,                          y=210,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;fs_used_perc&#039;,           arg=&#039;/&#039;,                     max_value=100,
    x=40,                          y=340,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;downspeedf&#039;,           arg=&#039;eth0&#039;,                     max_value=100,
    x=40,                          y=425,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;Down&#039;,
    caption_weight=1,              caption_size=6.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;upspeedf&#039;,           arg=&#039;eth0&#039;,                     max_value=100,
    x=40,                          y=425,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;Up&#039;,
    caption_weight=1,              caption_size=6.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;downspeedf&#039;,           arg=&#039;wlan0&#039;,                     max_value=100,
    x=135,                          y=425,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;Down&#039;,
    caption_weight=1,              caption_size=6.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;upspeedf&#039;,           arg=&#039;wlan0&#039;,                     max_value=100,
    x=135,                          y=425,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;Up&#039;,
    caption_weight=1,              caption_size=6.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;mixer&#039;,                arg=&#039;PCM&#039;,                      max_value=100,
    x=40,                          y=542,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.3,
    graph_fg_colour=0x111111,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFFFFFF,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end


-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data[&#039;max_value&#039;]
    local x, y = data[&#039;x&#039;], data[&#039;y&#039;]
    local graph_radius = data[&#039;graph_radius&#039;]
    local graph_thickness, graph_unit_thickness = data[&#039;graph_thickness&#039;], data[&#039;graph_unit_thickness&#039;]
    local graph_start_angle = data[&#039;graph_start_angle&#039;]
    local graph_unit_angle = data[&#039;graph_unit_angle&#039;]
    local graph_bg_colour, graph_bg_alpha = data[&#039;graph_bg_colour&#039;], data[&#039;graph_bg_alpha&#039;]
    local graph_fg_colour, graph_fg_alpha = data[&#039;graph_fg_colour&#039;], data[&#039;graph_fg_alpha&#039;]
    local hand_fg_colour, hand_fg_alpha = data[&#039;hand_fg_colour&#039;], data[&#039;hand_fg_alpha&#039;]
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i &lt;= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data[&#039;graduation_radius&#039;]
    local graduation_thickness, graduation_mark_thickness = data[&#039;graduation_thickness&#039;], data[&#039;graduation_mark_thickness&#039;]
    local graduation_unit_angle = data[&#039;graduation_unit_angle&#039;]
    local graduation_fg_colour, graduation_fg_alpha = data[&#039;graduation_fg_colour&#039;], data[&#039;graduation_fg_alpha&#039;]
    if graduation_radius &gt; 0 and graduation_thickness &gt; 0 and graduation_unit_angle &gt; 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i &lt; nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data[&#039;txt_radius&#039;]
    local txt_weight, txt_size = data[&#039;txt_weight&#039;], data[&#039;txt_size&#039;]
    local txt_fg_colour, txt_fg_alpha = data[&#039;txt_fg_colour&#039;], data[&#039;txt_fg_alpha&#039;]
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, &quot;ubuntu&quot;, 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_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data[&#039;caption&#039;]
    local caption_weight, caption_size = data[&#039;caption_weight&#039;], data[&#039;caption_size&#039;]
    local caption_fg_colour, caption_fg_alpha = data[&#039;caption_fg_colour&#039;], data[&#039;caption_fg_alpha&#039;]
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, &quot;ubuntu&quot;, CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle &lt; 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end


-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = &#039;&#039;, 0
        str = string.format(&#039;${%s %s}&#039;,data[&#039;name&#039;], data[&#039;arg&#039;])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
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(&#039;${updates}&#039;)
    update_num = tonumber(updates)
    
    if update_num &gt; 5 then
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end</code></pre></div><p>The images used in the conky can be made by you but if you want the ones in the conky ask me =]</p>]]></description>
			<author><![CDATA[dummy@example.com (xeNULL)]]></author>
			<pubDate>Sun, 07 Aug 2011 21:56:05 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/136466/#p136466</guid>
		</item>
	</channel>
</rss>

