<?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>Tue, 09 Mar 2010 13:03:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57886/#p57886</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 already had tint2 on the side but took Iman from Arch&#039;s idea of integrating conky. I went for a minimal looking conky that provides information from colour. </p><p>Top 2 numbers (1:0) are email boxes. </p><p>on AC power (battery meter hidden) some upload and download (blue \\ (download) and // (upload)) CPU2 is a little busy (blue +-) <br /><a href="http://omploader.org/vM3M1dA"><span class="postimg"><img src="http://omploader.org/tM3M1dA" alt="http://omploader.org/tM3M1dA" /></span></a></p><p>CPU now calm but temperature is high<br /><a href="http://omploader.org/vM3M1cg"><span class="postimg"><img src="http://omploader.org/tM3M1cg" alt="http://omploader.org/tM3M1cg" /></span></a></p><p>On battery power (battery bar becomes visible)<br /><a href="http://omploader.org/vM3M1dQ"><span class="postimg"><img src="http://omploader.org/tM3M1dQ" alt="http://omploader.org/tM3M1dQ" /></span></a></p><p>CPU&#039;s both doing a little, On AC but charging (battery a bit visible) <br /><a href="http://omploader.org/vM3M1dg"><span class="postimg"><img src="http://omploader.org/tM3M1dg" alt="http://omploader.org/tM3M1dg" /></span></a></p><p>Integrated into tint2<br /><a href="http://omploader.org/vM3M1dw"><span class="postimg"><img src="http://omploader.org/tM3M1dw" alt="http://omploader.org/tM3M1dw" /></span></a></p><p>conky code<br /></p><div class="codebox"><pre><code># -- Conky settings -- #
background no
update_interval 1
 
cpu_avg_samples 2
net_avg_samples 2
 
override_utf8_locale yes
 
double_buffer yes
no_buffers yes
 
text_buffer_size 2048
imlib_cache_size 0
 
# -- Window specifications -- #

own_window yes
own_window_transparent no
own_window_type desktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 1
border_outer_margin 0
 
minimum_size 42 107
maximum_width 50
 
alignment bottom_left
gap_x 0
gap_y 0
 
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
 
# -- Text settings -- #
use_xft yes
xftfont Radio Space:size=9
xftalpha 0.4
 
uppercase no

# Default colors and also border colors
default_color FFFFDD
#good blue 1994d1
#medium blue 083146
#dark blue 041e2c
color1 303030
color2 1994d1
color3 a90100
color4 808080
color5 151515
#default_shade_color 888888
#default_outline_color 888888
own_window_colour 151515
default_color 808080
border_width 0
#
# -- Lua Load -- #
#lua_load ~/.conky/lua.lua
#lua_draw_hook_pre ring_stats
 
TEXT
${alignc}${if_up wlan0}${execpi 300 python ~/.conky/my-gmail.py emailbox1 password1 1}${else}x${endif}:${if_up wlan0}${execpi 600 python ~/.conky/my-gmail.py emailbox2 password2 1}${else}x${endif}
${alignc}${if_match ${downspeedf wlan0} &gt;= 20}${color2}${else}${if_match ${downspeedf wlan0} &gt;= 2}${color4}${else}${color5}${endif}${endif}\\${color} ${if_match ${upspeedf wlan0} &gt;= 20}${color2}${else}${if_match ${upspeedf wlan0} &gt;= 2}${color4}${else}${color5}${endif}${endif}//${color}
${alignc}${if_match ${cpu cpu1} &gt;= 90}${color3}${else}${if_match ${cpu cpu1} &gt;= 40}${color2}${else}${if_match ${cpu cpu1} &gt;= 10}${color4}${else}${color5}${endif}${endif}${endif}-+${color}${if_match ${acpitemp} &gt;= 70}${color3}${else}${if_match ${acpitemp} &gt;= 60}${color2}${else}${if_match ${acpitemp} &gt;= 50}${color4}${else}${color5}${endif}${endif}${endif}T${color}${if_match ${cpu cpu2} &gt;= 90}${color3}${else}${if_match ${cpu cpu2} &gt;= 40}${color2}${else}${if_match ${cpu cpu2} &gt;= 10}${color4}${else}${color5}${endif}${endif}${endif}+-${color}
${if_up wlan0}${voffset 10}${goto 6}${color cccccc}${font ConkyWeather:size=25}${execi 600 conkyForecast --location=EZXX0002 --datatype=WF}${font}${color}
${font DejaVu Sans Mono:size=6.5}${goto 12}${execi 600 conkyForecast --location=ASXX0112 --datatype=HT}${endif}
${if_match ${battery_percent BAT0} &gt;= 98}${color5}${else}${if_existing /sys/class/power_supply/ACAD/online 0}${color2}${else}${color1}${endif}${endif}${goto 2}${battery_bar 6,40 BAT0}
${if_existing /sys/class/power_supply/ACAD/online 0}${if_match ${battery_percent BAT0} &lt;= 8}${execi 200 ~/mybin/tawan-lowpower-shutdown}${endif}${endif}</code></pre></div><p>tint2 code<br /></p><div class="codebox"><pre><code>#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 0
border_width = 0
background_color = #151515 100
border_color = #ffffff 40

rounded = 5
border_width = 0
background_color = #000000 40
border_color = #ffffff 50

rounded = 5
border_width = 0
background_color = #000000 10
border_color = #ffffff 70

rounded = 5
border_width = 0
background_color = #ffffff 4
border_color = #ffffff 70

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top left vertical
panel_size = 86% 44
panel_margin = 0 0
panel_padding = 2 2 2
font_shadow = 1
panel_background_id = 1
wm_menu = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
#taskbar_mode = single_desktop
taskbar_padding = 2 2 2
taskbar_background_id = 1
taskbar_active_background_id = 4

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_maximum_size = 40 40
task_centered = 1
task_padding = 6 3
task_font = sans 7
task_font_color = #ffffff 70
task_active_font_color = #000000 100
task_background_id = 3
task_active_background_id = 2

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 5
systray_background_id = 1
systray_sort = left2right
systray_icon_size = 16
systray_icon_asb = 100 0 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 8
time2_format = %h.%e
time2_font = sans 6
clock_font_color = #ffffff 76
clock_padding = 4 2
clock_background_id = 1
#clock_lclick_command = xclock
clock_rclick_command = zenity --calendar

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_hide = 98
battery_low_status = 10
battery_low_cmd = notify-send &quot;battery low&quot;
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #ffffff 76
battery_padding = 1 0
battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font_color = #ffffff 80
tooltip_font = sans 10

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tawan)]]></author>
			<pubDate>Tue, 09 Mar 2010 13:03:07 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57886/#p57886</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57866/#p57866</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>mrpeachy wrote:</cite><blockquote><p><a href="http://omploader.org/vM3MybA"><span class="postimg"><img src="http://omploader.org/tM3MybA" alt="http://omploader.org/tM3MybA" /></span></a></p><p>here is the code for the ascii conversion function:</p></blockquote></div><p>ha nice.</p>]]></description>
			<author><![CDATA[dummy@example.com (tawan)]]></author>
			<pubDate>Tue, 09 Mar 2010 07:00:59 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57866/#p57866</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57853/#p57853</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 href="http://omploader.org/vM3MybA"><span class="postimg"><img src="http://omploader.org/tM3MybA" alt="http://omploader.org/tM3MybA" /></span></a></p><p>here is the code for the ascii conversion function:<br />currently it only works with lowercase letters and only outputs one ascii &quot;font&quot; ... the &quot;standard&quot; font from the site tawan posted here:&nbsp; <a href="http://crunchbanglinux.org/forums/post/57581/#p57581">http://crunchbanglinux.org/forums/post/57581/#p57581</a></p><div class="codebox"><pre><code>--[[conky output and text converter to ascii output lua script by mrpeachy (2010)  ]]
require &quot;cairo&quot;
function addzero100(num)
if tonumber(num) &lt; 10 then
return &quot;00&quot; .. num
elseif tonumber(num) &lt;100 then
return &quot;0&quot; .. num
else
return num
end
end

function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end

function texttoascii(text, fontsize, across, down)
cairo_select_font_face (cr, &quot;Mono&quot;, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fontsize);
cairo_set_source_rgba (cr, 0.2, 0.6, 0.2, 1);

textlength=string.len(text)
textcut=string.gsub(text, &quot;.&quot;, &quot;%1|&quot;)
texttable=string.split(textcut, &quot;|&quot;)


for i=1,textlength do
if texttable[i-1]==nil then adjust=0 end
if texttable[i-1]==&quot;0&quot; then adjust=(fontsize*0.4) end
if texttable[i-1]==&quot;1&quot; then adjust=(-1*(fontsize*2)) end
if texttable[i-1]==&quot;4&quot; then adjust=(fontsize*0.5) end

cairo_translate (cr, (across+((i-1)*fontsize*4.3))+adjust, down)
    if texttable[i]==&quot;a&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2)
        cairo_show_text (cr,&quot;  __ _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _` |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__,_|&quot;)        
        
        
        elseif texttable[i]==&quot;b&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _     &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| |__  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_.__/ &quot;)

        
        elseif texttable[i]==&quot;c&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  ___ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / __|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (__ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___|&quot;)
        cairo_translate (cr, -fontsize*0.4, 0)
        
        elseif texttable[i]==&quot;d&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;     _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  __| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _` |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__,_|&quot;)

        
        elseif texttable[i]==&quot;e&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  ___ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _ \\&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;|  __/&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___|&quot;)

        
        elseif texttable[i]==&quot;f&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;  __ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; / _|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| |_ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;|  _|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|  &quot;)
        cairo_translate (cr, -fontsize, 0)

        
        elseif texttable[i]==&quot;g&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  __ _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _` |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__, |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*6) 
        cairo_show_text (cr,&quot; |___/&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*7) 
        cairo_show_text (cr,&quot; &quot;)

        
        elseif texttable[i]==&quot;h&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _     &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| |__  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_| |_|&quot;)

        
        elseif texttable[i]==&quot;i&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;(_)&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|&quot;)
        cairo_translate (cr, -fontsize*2.5, 0)

        elseif texttable[i]==&quot;j&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;   _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  (_)&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;  | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;  | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; _/ |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*6) 
        cairo_show_text (cr,&quot;|__/ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*7) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_translate (cr, -fontsize, 0)
        
        elseif texttable[i]==&quot;k&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _    &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| | __&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| |/ /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;|   &lt; &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|\\_\\&quot;)

        
        elseif texttable[i]==&quot;l&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|&quot;)
        cairo_translate (cr, -fontsize*2, 0)
        
        elseif texttable[i]==&quot;m&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _ __ ___  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ ` _ \\&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| | | | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_| |_| |_|&quot;)
        cairo_translate (cr, fontsize*2.5, 0)
        
        elseif texttable[i]==&quot;n&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _ __  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_| |_|&quot;)

        
        elseif texttable[i]==&quot;o&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  ___  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___/ &quot;)

        
        elseif texttable[i]==&quot;p&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _ __  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;| .__/ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*6) 
        cairo_show_text (cr,&quot;|_|    &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*7) 
        cairo_show_text (cr,&quot;&quot;)
        
        elseif texttable[i]==&quot;q&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;  __ _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _` |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__, |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*6) 
        cairo_show_text (cr,&quot;    |_|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*7) 
        cairo_show_text (cr,&quot;&quot;)
        
        elseif texttable[i]==&quot;r&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _ __ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;__|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |   &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|   &quot;)
        cairo_translate (cr, -fontsize*0.4, 0)

        
        elseif texttable[i]==&quot;s&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; ___ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;/ __|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;\\__ \\&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|___/&quot;)
        cairo_translate (cr, -fontsize*0.7, 0)
        
        elseif texttable[i]==&quot;t&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _   &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| |_ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| __|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__|&quot;)
        cairo_translate (cr, -fontsize*0.7, 0)
        
        elseif texttable[i]==&quot;u&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _   _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__,_|&quot;)
        cairo_translate (cr, fontsize*0.4, 0)

        
        elseif texttable[i]==&quot;v&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;__   __&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;\\ \\ / /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; \\ V / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;  \\_/  &quot;)
        cairo_translate (cr, fontsize*0.7, 0)
        
        elseif texttable[i]==&quot;w&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;__      __&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;\\ \\ /\\ / /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; \\ V  V / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;  \\_/\\_/  &quot;)
        cairo_translate (cr, fontsize*2.5, 0)

        
        elseif texttable[i]==&quot;x&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;__  __&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;\\ \\/ /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; &gt;  &lt; &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;/_/\\_\\&quot;)

        
        elseif texttable[i]==&quot;y&quot; then
        
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _   _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\__, |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*6) 
        cairo_show_text (cr,&quot; |___/ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*7) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_translate (cr, fontsize*0.7, 0)
        
        elseif texttable[i]==&quot;z&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; ____&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;|_  /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; / / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;/___|&quot;)
        cairo_translate (cr, -fontsize*0.6, 0)
        
        elseif texttable[i]==&quot;0&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;  ___  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; / _ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| | | |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |_| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___/ &quot;)
        --cairo_translate (cr, fontsize*0.4, 0)    

        elseif texttable[i]==&quot;1&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;/ |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_|&quot;)
        --cairo_translate (cr, -fontsize*2, 0)
     

        elseif texttable[i]==&quot;2&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; ____  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;|___ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;  __) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; / __/ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|_____|&quot;)      

        elseif texttable[i]==&quot;3&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _____ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;|___ / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;  |_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; ___) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|____/ &quot;)        

        elseif texttable[i]==&quot;4&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _  _   &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| || |  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| || |_ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;|__   _|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;   |_|  &quot;) 
        --cairo_translate (cr, fontsize, 0)
      

        elseif texttable[i]==&quot;5&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; ____  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;| ___| &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;|___ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; ___) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;|____/ &quot;)        

        elseif texttable[i]==&quot;6&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;  __   &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; / /_  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| &#039;_ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___/ &quot;)      

        elseif texttable[i]==&quot;7&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _____ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;|___  |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;   / / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;  / /  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; /_/   &quot;)       

        elseif texttable[i]==&quot;8&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;  ___  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; ( _ ) &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot; / _ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;| (_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot; \\___/ &quot;)       

        elseif texttable[i]==&quot;9&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;  ___  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; / _ \\ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;| (_) |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; \\__, |&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;   /_/ &quot;)  
        
        elseif texttable[i]==&quot;:&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;&quot;)  
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot; _ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;|_|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot;|_|&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;&quot;)
        cairo_translate (cr, -fontsize*2, 0)

        
        elseif texttable[i]==&quot; &quot; then   
        cairo_translate (cr, -fontsize*3, 0)
        
        elseif texttable[i]==&quot;%&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot; _  _ &quot;)  
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;|_|/ /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;  / / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; / /_ &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;/_/|_|&quot;)
        cairo_translate (cr, -fontsize*2, 0)
        
        elseif texttable[i]==&quot;/&quot; then
        cairo_move_to (cr, 0, 0)
        cairo_show_text (cr,&quot;&quot;)
        cairo_move_to (cr, 0, fontsize*1.2) 
        cairo_show_text (cr,&quot;    _ &quot;)  
        cairo_move_to (cr, 0, fontsize*1.2*2) 
        cairo_show_text (cr,&quot;   / /&quot;)
        cairo_move_to (cr, 0, fontsize*1.2*3) 
        cairo_show_text (cr,&quot;  / / &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*4) 
        cairo_show_text (cr,&quot; / /  &quot;)
        cairo_move_to (cr, 0, fontsize*1.2*5) 
        cairo_show_text (cr,&quot;/_/   &quot;)
        cairo_translate (cr, -fontsize, 0)

    end
cairo_translate (cr, -1*((across+((i-1)*fontsize*4.3))+adjust), -down)
end
end--of function


function conky_draw_text()
local updates=conky_parse(&#039;${updates}&#039;)
update_num=tonumber(updates)
if update_num &gt; 5 then
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
--setup for ascii

text=(&quot;time &quot; .. (os.date(&quot;%H : %M : %S&quot;)))
fontsize=8
across=10
down=20
texttoascii(text, fontsize, across, down)

text=(&quot;date &quot; .. (os.date(&quot;%m / %d / %y&quot;)))
fontsize=8
across=168
down=90
texttoascii(text, fontsize, across, down)

text=(&quot;cpu &quot; .. (addzero100(tonumber(conky_parse(&#039;${cpu}&#039;)))) .. &quot; %&quot;)
fontsize=10
across=308
down=160
texttoascii(text, fontsize, across, down)

text=(&quot;mem &quot; .. (addzero100(tonumber(conky_parse(&#039;${memperc}&#039;)))) .. &quot; %&quot;)
fontsize=10
across=388
down=230
texttoascii(text, fontsize, across, down)

text=(&quot;hdd &quot; .. (addzero100(tonumber(conky_parse(&#039;${fs_used_perc /}&#039;)))) .. &quot; %&quot;)
fontsize=10
across=418
down=300
texttoascii(text, fontsize, across, down)


end
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Tue, 09 Mar 2010 05:00:54 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57853/#p57853</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57623/#p57623</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>nothing particularly groundbreaking, but have written a couple of lua functions to convert numbers and dates to text<br />so 19 becomes &quot;nineteen&quot;<br />and 23 (as in 23rd of month) becomes &quot;twenty third&quot;</p><p>UPDATED--------------<br />you can get stuff like this:<br /><a href="http://omploader.org/vM3I5dw"><span class="postimg"><img src="http://omploader.org/tM3I5dw" alt="http://omploader.org/tM3I5dw" /></span></a></p><p>here is the script that made the above: <br />currently the number conversion function only goes up to 999<br />i have made a separate time to words function</p><div class="codebox"><pre><code>--[[numbers to words conversion lua script by mrpeachy (2010)]]
require &quot;cairo&quot;

function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end

function time_to_words(wantsecs)
hours=os.date(&quot;%I&quot;)
minutes=os.date(&quot;%M&quot;)
seconds=os.date(&quot;%S&quot;)
hrcut=string.gsub(hours, &quot;.&quot;, &quot;%1|&quot;)
hrtable=string.split(hrcut, &quot;|&quot;)
mincut=string.gsub(minutes, &quot;.&quot;, &quot;%1|&quot;)
mintable=string.split(mincut, &quot;|&quot;)
seccut=string.gsub(seconds, &quot;.&quot;, &quot;%1|&quot;)
sectable=string.split(seccut, &quot;|&quot;)
    if hours==&quot;01&quot; then
    hr=&quot;one&quot;
    elseif hours==&quot;02&quot; then
    hr=&quot;two&quot;
    elseif hours==&quot;03&quot; then
    hr=&quot;three&quot;
    elseif hours==&quot;04&quot; then
    hr=&quot;four&quot;
    elseif hours==&quot;05&quot; then
    hr=&quot;five&quot;
    elseif hours==&quot;06&quot; then
    hr=&quot;six&quot;
    elseif hours==&quot;07&quot; then
    hr=&quot;seven&quot;
    elseif hours==&quot;08&quot; then
    hr=&quot;eight&quot;
    elseif hours==&quot;09&quot; then
    hr=&quot;nine&quot;
    elseif hours==&quot;10&quot; then
    hr=&quot;ten&quot;
    elseif hours==&quot;11&quot; then
    hr=&quot;eleven&quot;
    elseif hours==&quot;12&quot; then
    hr=&quot;twelve&quot;
    end

   if mintable[1]==&quot;1&quot; then
   mintens=&quot;&quot;
   minspacer=&quot;&quot;
        if mintable[2]==&quot;0&quot; then
        minunits=&quot;ten&quot;
        elseif mintable[2]==&quot;1&quot; then
        minunits=&quot;eleven&quot;
        elseif mintable[2]==&quot;2&quot; then
        minunits=&quot;twelve&quot;
        elseif mintable[2]==&quot;3&quot; then
        minunits=&quot;thirteen&quot;
        elseif mintable[2]==&quot;4&quot; then
        minunits=&quot;fourteen&quot;
        elseif mintable[2]==&quot;5&quot; then
        minunits=&quot;fifteen&quot;
        elseif mintable[2]==&quot;6&quot; then
        minunits=&quot;sixteen&quot;
        elseif mintable[2]==&quot;7&quot; then
        fisrtdigit=&quot;seventeen&quot;
        elseif mintable[2]==&quot;8&quot; then
        minunits=&quot;eighteen&quot;
        elseif mintable[2]==&quot;9&quot; then
        minunits=&quot;nineteen&quot;
        end
    end   
    if mintable[1]==&quot;0&quot; or mintable[1]&gt;&quot;1&quot; then
    if mintable[1]==&quot;0&quot; then minspacer=&quot;&quot; end
    if mintable[1]&gt;&quot;1&quot; then minspacer=&quot; &quot; end      
        if mintable[1]==&quot;2&quot; then
        mintens=&quot;twenty&quot;
        elseif mintable[1]==&quot;3&quot; then
        mintens=&quot;thirty&quot;
        elseif mintable[1]==&quot;4&quot; then
        mintens=&quot;fourty&quot;
        elseif mintable[1]==&quot;5&quot; then
        mintens=&quot;fifty&quot;
        elseif mintable[1]==&quot;0&quot; then
        mintens=&quot;&quot;
        end  
        if mintable[2]==&quot;1&quot; then
        minunits=&quot;one&quot;
        elseif mintable[2]==&quot;2&quot; then
        minunits=&quot;two&quot;
        elseif mintable[2]==&quot;3&quot; then
        minunits=&quot;three&quot;
        elseif mintable[2]==&quot;4&quot; then
        minunits=&quot;four&quot;
        elseif mintable[2]==&quot;5&quot; then
        minunits=&quot;five&quot;
        elseif mintable[2]==&quot;6&quot; then
        minunits=&quot;six&quot;
        elseif mintable[2]==&quot;7&quot; then
        minunits=&quot;seven&quot;
        elseif mintable[2]==&quot;8&quot; then
        minunits=&quot;eight&quot;
        elseif mintable[2]==&quot;9&quot; then
        minunits=&quot;nine&quot;
        elseif mintable[2]==&quot;0&quot; then
        minunits=&quot;&quot;
        minspacer=&quot;&quot;
        end
    end
min=(mintens .. minspacer .. minunits)
    if sectable[1]==&quot;1&quot; then
        if sectable[2]==&quot;0&quot; then
        secunits=&quot;ten&quot;
        elseif sectable[2]==&quot;1&quot; then
        secunits=&quot;eleven&quot;
        elseif sectable[2]==&quot;2&quot; then
        secunits=&quot;twelve&quot;
        elseif sectable[2]==&quot;3&quot; then
        secunits=&quot;thirteen&quot;
        elseif sectable[2]==&quot;4&quot; then
        secunits=&quot;fourteen&quot;
        elseif sectable[2]==&quot;5&quot; then
        secunits=&quot;fifteen&quot;
        elseif sectable[2]==&quot;6&quot; then
        secunits=&quot;sixteen&quot;
        elseif sectable[2]==&quot;7&quot; then
        fisrtdigit=&quot;seventeen&quot;
        elseif sectable[2]==&quot;8&quot; then
        secunits=&quot;eighteen&quot;
        elseif sectable[2]==&quot;9&quot; then
        secunits=&quot;nineteen&quot;
        end
    end   
    if sectable[1]==&quot;0&quot; or sectable[1]&gt;&quot;1&quot; then
    if sectable[1]==&quot;0&quot; then secspacer=&quot;&quot; end
    if sectable[1]&gt;&quot;1&quot; then secspacer=&quot; &quot; end       
        if sectable[1]==&quot;2&quot; then
        sectens=&quot;twenty&quot;
        elseif sectable[1]==&quot;3&quot; then
        sectens=&quot;thirty&quot;
        elseif sectable[1]==&quot;4&quot; then
        sectens=&quot;fourty&quot;
        elseif sectable[1]==&quot;5&quot; then
        sectens=&quot;fifty&quot;
        elseif sectable[1]==&quot;0&quot; then
        sectens=&quot;&quot;
        end  
        if sectable[2]==&quot;1&quot; then
        secunits=&quot;one&quot;
        elseif sectable[2]==&quot;2&quot; then
        secunits=&quot;two&quot;
        elseif sectable[2]==&quot;3&quot; then
        secunits=&quot;three&quot;
        elseif sectable[2]==&quot;4&quot; then
        secunits=&quot;four&quot;
        elseif sectable[2]==&quot;5&quot; then
        secunits=&quot;five&quot;
        elseif sectable[2]==&quot;6&quot; then
        secunits=&quot;six&quot;
        elseif sectable[2]==&quot;7&quot; then
        secunits=&quot;seven&quot;
        elseif sectable[2]==&quot;8&quot; then
        secunits=&quot;eight&quot;
        elseif sectable[2]==&quot;9&quot; then
        secunits=&quot;nine&quot;
        elseif sectable[2]==&quot;0&quot; then
        secunits=&quot;&quot;
        secspacer=&quot;&quot;
        end
    end
sec=(sectens .. secspacer .. secunits)
if wantsecs==&quot;n&quot; then
    if minutes==00 then
    return ((hr) .. &quot; o&#039;clock&quot;)
    elseif minutes==01 then
    return ((min) .. &quot; minute past &quot; .. (hr))
    elseif minutes&gt;01 then
    return ((min) .. &quot; minutes past &quot; .. (hr))
    end
end
if wantsecs==&quot;y&quot; then
    if seconds&gt;&quot;01&quot; then    
        if minutes==&quot;00&quot; then
        return ((sec) .. &quot; seconds past &quot; .. (hr))
        elseif minutes&gt;&quot;00&quot; then
        return ((min) .. &quot; minutes and &quot; .. (sec) .. &quot; seconds past &quot; .. (hr))
        end
    end
    if seconds==&quot;01&quot; then
        if minutes==&quot;00&quot; then
        return ((sec) .. &quot; second past &quot; .. (hr))
        elseif minutes&gt;&quot;00&quot; then
        return ((min) .. &quot; minutes and &quot; .. (sec) .. &quot; second past &quot; .. (hr))
        end
    end
    if seconds==&quot;00&quot; then    
        if minutes==&quot;00&quot; then
        return ((hr) .. &quot; o&#039;clock&quot;)
        elseif minutes&gt;&quot;00&quot; then
        return ((min) .. &quot; minutes past &quot; .. (hr))
        end
    end
end

end--end of function

function date_to_words()------------------------------------------------------------------------------------------
date=os.date(&quot;%d&quot;)
datecut=string.gsub(date, &quot;.&quot;, &quot;%1|&quot;)
datetable=string.split(datecut, &quot;|&quot;)
        
        if datetable[1]==&quot;1&quot; then
            datetens=&quot;&quot;
            datespacer=&quot;&quot;
            if datetable[2]==&quot;0&quot; then
            dateunit=&quot;tenth&quot;
            elseif datetable[2]==&quot;1&quot; then
            dateunit=&quot;eleventh&quot;
            elseif datetable[2]==&quot;2&quot; then
            dateunit=&quot;twelfth&quot;
            elseif datetable[2]==&quot;3&quot; then
            dateunit=&quot;thirteenth&quot;
            elseif datetable[2]==&quot;4&quot; then
            dateunit=&quot;fourteenth&quot;
            elseif datetable[2]==&quot;5&quot; then
            dateunit=&quot;fifteenth&quot;
            elseif datetable[2]==&quot;6&quot; then
            dateunit=&quot;sixteenth&quot;
            elseif datetable[2]==&quot;7&quot; then
            fisrtdigit=&quot;seventeenth&quot;
            elseif datetable[2]==&quot;8&quot; then
            dateunit=&quot;eighteenth&quot;
            elseif datetable[2]==&quot;9&quot; then
            dateunit=&quot;nineteenth&quot;
            end
        end 
          
        if datetable[1]==&quot;0&quot; or datetable[1]&gt;&quot;1&quot; then
            datespacer=&quot; &quot;
            if datetable[1]==&quot;2&quot; then
            datetens=&quot;twenty&quot;
            elseif datetable[1]==&quot;3&quot; then
            datetens=&quot;thirty&quot;
            elseif datetable[1]==&quot;0&quot; then
            datetens=&quot;&quot;
            end 
            if datetable[2]==&quot;1&quot; then
            dateunit=&quot;first&quot;
            elseif datetable[2]==&quot;2&quot; then
            dateunit=&quot;second&quot;
            elseif datetable[2]==&quot;3&quot; then
            dateunit=&quot;third&quot;
            elseif datetable[2]==&quot;4&quot; then
            dateunit=&quot;fourth&quot;
            elseif datetable[2]==&quot;5&quot; then
            dateunit=&quot;fifth&quot;
            elseif datetable[2]==&quot;6&quot; then
            dateunit=&quot;sixth&quot;
            elseif datetable[2]==&quot;7&quot; then
            dateunit=&quot;seventh&quot;
            elseif datetable[2]==&quot;8&quot; then
            dateunit=&quot;eighth&quot;
            elseif datetable[2]==&quot;9&quot; then
            dateunit=&quot;nineth&quot;
            elseif datetable[2]==&quot;0&quot; then
            dateunit=&quot;&quot;
            datespacer=&quot;&quot;
            end
        end
        if datetable[2]==&quot;0&quot; then
            datetens=&quot;&quot;
            datespacer=&quot;&quot;
            if datetable[1]==&quot;2&quot; then
            dateunit=&quot;twentieth&quot;
            elseif datetable[1]==&quot;3&quot; then
            dateunit=&quot;thirtieth&quot;
            end
        end    
    return ((datetens) .. (datespacer) .. (dateunit))
end--end of function--------------------------------------------------------------------------------------

function number_to_words(text)
textlength=string.len(text)
textcut=string.gsub(text, &quot;.&quot;, &quot;%1|&quot;)
texttable=string.split(textcut, &quot;|&quot;)
--for NUMBERS from 1 to 999
--for numbers 1 digit number----------
if textlength==1 then
    if texttable[1]==&quot;1&quot; then
    firstdigit=&quot;one&quot;
    elseif texttable[1]==&quot;2&quot; then
    firstdigit=&quot;two&quot;
    elseif texttable[1]==&quot;3&quot; then
    firstdigit=&quot;three&quot;
    elseif texttable[1]==&quot;4&quot; then
    firstdigit=&quot;four&quot;
    elseif texttable[1]==&quot;5&quot; then
    firstdigit=&quot;five&quot;
    elseif texttable[1]==&quot;6&quot; then
    firstdigit=&quot;six&quot;
    elseif texttable[1]==&quot;7&quot; then
    firstdigit=&quot;seven&quot;
    elseif texttable[1]==&quot;8&quot; then
    firstdigit=&quot;eight&quot;
    elseif texttable[1]==&quot;9&quot; then
    firstdigit=&quot;nine&quot;
    elseif texttable[1]==&quot;0&quot; then
    firstdigit=&quot;zero&quot;
    end
return firstdigit
end
--for 2 digit number------------------
if textlength==2 then
    if texttable[1]==&quot;1&quot; then
        seconddigit=&quot;&quot;
        spacer=&quot;&quot;
        if texttable[2]==&quot;0&quot; then
        firstdigit=&quot;ten&quot;
        elseif texttable[2]==&quot;1&quot; then
        firstdigit=&quot;eleven&quot;
        elseif texttable[2]==&quot;2&quot; then
        firstdigit=&quot;twelve&quot;
        elseif texttable[2]==&quot;3&quot; then
        firstdigit=&quot;thirteen&quot;
        elseif texttable[2]==&quot;4&quot; then
        firstdigit=&quot;fourteen&quot;
        elseif texttable[2]==&quot;5&quot; then
        firstdigit=&quot;fifteen&quot;
        elseif texttable[2]==&quot;6&quot; then
        firstdigit=&quot;sixteen&quot;
        elseif texttable[2]==&quot;7&quot; then
        fisrtdigit=&quot;seventeen&quot;
        elseif texttable[2]==&quot;8&quot; then
        firstdigit=&quot;eighteen&quot;
        elseif texttable[2]==&quot;9&quot; then
        firstdigit=&quot;nineteen&quot;
        end
    end   
    if texttable[1]&gt;&quot;1&quot; then
        spacer=&quot; &quot;
        if texttable[1]==&quot;2&quot; then
        seconddigit=&quot;twenty&quot;
        elseif texttable[1]==&quot;3&quot; then
        seconddigit=&quot;thirty&quot;
        elseif texttable[1]==&quot;4&quot; then
        seconddigit=&quot;fourty&quot;
        elseif texttable[1]==&quot;5&quot; then
        seconddigit=&quot;fifty&quot;
        elseif texttable[1]==&quot;6&quot; then
        seconddigit=&quot;sixty&quot;
        elseif texttable[1]==&quot;7&quot; then
        seconddigit=&quot;seventy&quot;
        elseif texttable[1]==&quot;8&quot; then
        seconddigit=&quot;eighty&quot;
        elseif texttable[1]==&quot;9&quot; then
        seconddigit=&quot;ninety&quot;
        end    
        if texttable[2]==&quot;1&quot; then
        firstdigit=&quot;one&quot;
        elseif texttable[2]==&quot;2&quot; then
        firstdigit=&quot;two&quot;
        elseif texttable[2]==&quot;3&quot; then
        firstdigit=&quot;three&quot;
        elseif texttable[2]==&quot;4&quot; then
        firstdigit=&quot;four&quot;
        elseif texttable[2]==&quot;5&quot; then
        firstdigit=&quot;five&quot;
        elseif texttable[2]==&quot;6&quot; then
        firstdigit=&quot;six&quot;
        elseif texttable[2]==&quot;7&quot; then
        firstdigit=&quot;seven&quot;
        elseif texttable[2]==&quot;8&quot; then
        firstdigit=&quot;eight&quot;
        elseif texttable[2]==&quot;9&quot; then
        firstdigit=&quot;nine&quot;
        elseif texttable[2]==&quot;0&quot; then
        firstdigit=&quot;&quot;
        spacer=&quot;&quot;
        end
     end
return ((seconddigit) .. (spacer) .. (firstdigit))
end
--for 3 digit numbers-----------------------------
if textlength==3 then
    if texttable[2]==&quot;0&quot; and texttable[3]==&quot;0&quot; then space=&quot;&quot; end
    if texttable[2]&gt;&quot;0&quot; or texttable[3]&gt;&quot;0&quot; then space=&quot; and &quot; end
    if texttable[2]==&quot;0&quot; and texttable[3]&gt;&quot;0&quot; then spacer=&quot;&quot; end
    
    if texttable[1]==&quot;1&quot; then
    thirddigit=&quot;one hundred&quot;
    elseif texttable[1]==&quot;2&quot; then
    thirddigit=&quot;two hundred&quot;
    elseif texttable[1]==&quot;3&quot; then
    thirddigit=&quot;three hundred&quot;
    elseif texttable[1]==&quot;4&quot; then
    thirddigit=&quot;four hundred&quot;
    elseif texttable[1]==&quot;5&quot; then
    thirddigit=&quot;five hundred&quot;
    elseif texttable[1]==&quot;6&quot; then
    thirddigit=&quot;six hundred&quot;
    elseif texttable[1]==&quot;7&quot; then
    thirddigit=&quot;seven hundred&quot;
    elseif texttable[1]==&quot;8&quot; then
    thirddigit=&quot;eight hundred&quot;
    elseif texttable[1]==&quot;9&quot; then
    thirddigit=&quot;nine hundred&quot;
    end
    if texttable[2]==&quot;0&quot; or texttable[2]&gt;&quot;1&quot; then
        if texttable[3]==&quot;1&quot; then
        firstdigit=&quot;one&quot;
        elseif texttable[3]==&quot;2&quot; then
        firstdigit=&quot;two&quot;
        elseif texttable[3]==&quot;3&quot; then
        firstdigit=&quot;three&quot;
        elseif texttable[3]==&quot;4&quot; then
        firstdigit=&quot;four&quot;
        elseif texttable[3]==&quot;5&quot; then
        firstdigit=&quot;five&quot;
        elseif texttable[3]==&quot;6&quot; then
        firstdigit=&quot;six&quot;
        elseif texttable[3]==&quot;7&quot; then
        firstdigit=&quot;seven&quot;
        elseif texttable[3]==&quot;8&quot; then
        firstdigit=&quot;eight&quot;
        elseif texttable[3]==&quot;9&quot; then
        firstdigit=&quot;nine&quot;
        elseif texttable[3]==&quot;0&quot; then
        firstdigit=&quot;&quot;
        spacer=&quot;&quot;
        end 
    end
    if texttable[2]==&quot;1&quot; then
        seconddigit=&quot;&quot;
        spacer=&quot;&quot;  
        if texttable[3]==&quot;0&quot; then
        firstdigit=&quot;ten&quot;
        elseif texttable[3]==&quot;1&quot; then
        firstdigit=&quot;eleven&quot;
        elseif texttable[3]==&quot;2&quot; then
        firstdigit=&quot;twelve&quot;
        elseif texttable[3]==&quot;3&quot; then
        firstdigit=&quot;thirteen&quot;
        elseif texttable[3]==&quot;4&quot; then
        firstdigit=&quot;fourteen&quot;
        elseif texttable[3]==&quot;5&quot; then
        firstdigit=&quot;fifteen&quot;
        elseif texttable[3]==&quot;6&quot; then
        firstdigit=&quot;sixteen&quot;
        elseif texttable[3]==&quot;7&quot; then
        firstdigit=&quot;seventeen&quot;
        elseif texttable[3]==&quot;8&quot; then
        firstdigit=&quot;eighteen&quot;
        elseif texttable[3]==&quot;9&quot; then
        firstdigit=&quot;nineteen&quot;
        end
    end
    if texttable[2] &gt;&quot;1&quot; then
        spacer=&quot; &quot;    
        if texttable[2]==&quot;2&quot; then
        seconddigit=&quot;twenty&quot;
        elseif texttable[2]==&quot;3&quot; then
        seconddigit=&quot;thirty&quot;
        elseif texttable[2]==&quot;4&quot; then
        seconddigit=&quot;fourty&quot;
        elseif texttable[2]==&quot;5&quot; then
        seconddigit=&quot;fifty&quot;
        elseif texttable[2]==&quot;6&quot; then
        seconddigit=&quot;sixty&quot;
        elseif texttable[2]==&quot;7&quot; then
        seconddigit=&quot;seventy&quot;
        elseif texttable[2]==&quot;8&quot; then
        seconddigit=&quot;eighty&quot;
        elseif texttable[2]==&quot;9&quot; then
        seconddigit=&quot;ninety&quot;
        elseif texttable[2]==&quot;0&quot; then
        seconddigit=&quot;&quot;
        end
    end
return ((thirddigit) .. (space) .. (seconddigit) .. (spacer) .. (firstdigit))
end
end--of function

function conky_draw_text()
local updates=conky_parse(&#039;${updates}&#039;)
update_num=tonumber(updates)
if update_num &gt; 5 then
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
--set font, font size and color
cairo_select_font_face (cr, &quot;Sans&quot;, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 18);
cairo_set_source_rgba (cr, 1, 1, 1, 1);

cairo_move_to (cr, 100, 200);
dayname=string.lower(os.date(&quot;%A&quot;))
month=string.lower(os.date(&quot;%B&quot;))
--when using date_to_words you must add empty brackets after the function name
cairo_show_text (cr, &quot;today is &quot; .. (dayname) .. &quot; the &quot; .. (date_to_words()) .. &quot; of &quot; .. (month))

cairo_move_to (cr, 100, 240);
--when using time_to_words, enter &quot;y&quot; if you want seconds or &quot;n&quot; if you do not
cairo_show_text (cr, &quot;the time is &quot; .. (time_to_words(&quot;y&quot;)))

cairo_move_to (cr, 100, 280);
--when using number_to_words you muct put the number you want converted in brackets after the function name
cairo_show_text (cr,&quot;the central processing unit is running at &quot; .. (number_to_words(tonumber(conky_parse(&#039;${cpu}&#039;)))) .. &quot; percent capacity&quot;)

end
end</code></pre></div><p>combine with some simple circlewriting and:<br /><a href="http://omploader.org/vM3JhZA"><span class="postimg"><img src="http://omploader.org/tM3JhZA" alt="http://omploader.org/tM3JhZA" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Sat, 06 Mar 2010 22:43:01 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57623/#p57623</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57489/#p57489</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>Herewith mine on my Ubuntu box, will be making some adjustments to the standard Conky in #! when I install this weekend</p><p><a href="http://img35.imageshack.us/my.php?image=conkya.jpg"><span class="postimg"><img src="http://img35.imageshack.us/img35/6818/conkya.th.jpg" alt="http://img35.imageshack.us/img35/6818/conkya.th.jpg" /></span></a></p><div class="quotebox"><blockquote><p># .conkyrc - Edited from various examples across the &#039;net<br /># with thanks to everyone in particular HypeEst &amp; Craig Watson</p><p># --- Window Layout &amp; Options --- #<br />own_window yes<br />own_window_transparent yes<br />own_window_type override<br />own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager<br />double_buffer yes<br />use_spacer none<br />use_xft yes<br />text_buffer_size 2048<br />alignment top_left<br />gap_x 10<br />gap_y 20</p><p># --- Colours, Sizes, Fonts &amp; Margins --- #<br />update_interval 3.0<br />minimum_size 210 5<br />maximum_size 215<br />stippled_borders 3<br />border_margin 9<br />border_width 10<br />default_color white</p><p># --- Text --- #<br />draw_outline no<br />draw_borders no<br />xftfont free sanes:size=8<br />xftalpha 0.8<br />uppercase no<br />draw_shades yes</p><p># --- Other --- #<br />total_run_times 0<br />cpu_avg_samples 2</p><br /><br /><p>TEXT</p><p>${font Zekton:size=9}${color C2E078}SYSTEM: ${hr 2}$color${font}<br />${color white}O.S: ${alignr 2}${font}Ubuntu ${sysname}<br />${color white}Kernel: ${alignr 2}${kernel}<br />${color white}Uptime: ${alignr 2}${uptime}<br />${color white}CPU 1: ${alignr 2}${cpu cpu0}%&nbsp; &nbsp;${cpubar cpu0 8,80}<br />${color white}CPU 2: ${alignr 2}${cpu cpu1}%&nbsp; &nbsp;${cpubar cpu1 8,80}<br />${color white}RAM: ${goto 100}$mem / $memmax ${alignr 2}$memperc%<br />${color white}Swap: ${goto 100}$swap / $swapmax ${alignr 2}$swapperc%<br />${color white}Root: ${goto 100}Used: ${fs_used /} / ${fs_size /} ${alignr 2}Free: ${fs_free_perc /}%<br />${color white}Thug: ${goto 100}Used: ${fs_used /home} / ${fs_size /home} ${alignr 2}Free: ${fs_free_perc /home}%<br />${color white}Battery: ${alignr 2} ${battery_percent BAT0}%<br />${color white}Temp:&nbsp; CPU: ${color white}${acpitemp}C ${alignr 2}HDD: ${execi 300 hddtemp /dev/sda | cut -b30-39}</p><p>${font Zekton:size=9}${color C2E078}PROCESSES: ${hr 2}$color${font}<br />${color C2E078}Name :${color} ${goto 145}PID${goto 210}CPU%${alignr 2}MEM%<br />${color white}${top name 1} ${goto 145}${top pid 1}${goto 210}${top cpu 1}${alignr 2}${top mem 1}<br />${color white}${top name 2} ${goto 145}${top pid 2}${goto 210}${top cpu 2}${alignr 2}${top mem 2}<br />${color white}${top name 3} ${goto 145}${top pid 3}${goto 210}${top cpu 3}${alignr 2}${top mem 3}<br />${color C2E078}Memory :${color}<br />${color white}${top_mem name 1} ${goto 145}${top_mem pid 1}${goto 210}${top_mem cpu 1}${alignr 2}${top_mem mem 1}<br />${color white}${top_mem name 2} ${goto 145}${top_mem pid 2}${goto 210}${top_mem cpu 2}${alignr 2}${top_mem mem 2}<br />${color white}${top_mem name 3} ${goto 145}${top_mem pid 3}${goto 210}${top_mem cpu 3}${alignr 2}${top_mem mem 3}</p><p>${font Zekton:size=9}${color C2E078}3G CARD: ${addr ppp0} ${hr 2}$color${font}<br />${font PizzaDude Bullets:size=20}S${font}${voffset -9}&nbsp; &nbsp;${goto 150}${font PizzaDude Bullets:size=20}M${font}${voffset -9}<br />${voffset 10}${color white}Today:$color${goto 70}${execi 300 vnstat | grep &quot;today&quot; | awk &#039;{print $2 $3}&#039;}${goto 150}${color white}Today:$color${alignr 2}${execi 300 vnstat | grep &quot;today&quot; | awk &#039;{print $5 $6}&#039;}$font <br />${color white}Week:$color${goto 70}${execi 300 vnstat -w | grep &quot;current week&quot; | awk &#039;{print $3 $4}&#039;}${goto 150}${color white}Week:$color${alignr 2}${execi 300 vnstat -w | grep &quot;current week&quot; | awk &#039;{print $6 $7}&#039;}$font<br />${color white}Month:$color${goto 70}${execi 300 vnstat -m | grep &quot;`date +&quot;%b &#039;%y&quot;`&quot; | awk &#039;{print $3 $4}&#039;}${goto 150}${color white}Month:$color${alignr 2}${execi 300 vnstat -m | grep &quot;`date +&quot;%b &#039;%y&quot;`&quot; | awk &#039;{print $6 $7}&#039;}$font</p><p>${font Zekton:size=9}${color C2E078}WEATHER: ${hr 2}$color${font}</p><p>${execpi 1800 conkyForecast --location=SFXX0023 --template=/home/thug/Conky/conkyForecast.template}</p></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Peace9r)]]></author>
			<pubDate>Fri, 05 Mar 2010 06:33:49 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57489/#p57489</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57457/#p57457</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>mrpeachy wrote:</cite><blockquote><p>@ wassm<br />i dont think there is a way.. the fix i thought i saw was really a trick to get a hr like line --- this is where i saw it<br /><a href="http://conky.linux-hardcore.com/?page_id=2962">http://conky.linux-hardcore.com/?page_id=2962</a></p></blockquote></div><br /><p>Here is workaround:<br /><a href="http://conky.linux-hardcore.com/?page_id=302">http://conky.linux-hardcore.com/?page_id=302</a></p><p>And this is my line:</p><div class="quotebox"><blockquote><p>${voffset 2}MAIL${voffset 3}${alignr 10}${cpubar cpu1 0,135}${voffset -7} ${font OpenSymbol:size=12}${font}</p></blockquote></div><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (wassm.)]]></author>
			<pubDate>Thu, 04 Mar 2010 22:54:39 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57457/#p57457</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57455/#p57455</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>mrpeachy wrote:</cite><blockquote><div class="quotebox"><cite>Digit wrote:</cite><blockquote><p>just a delayed after thought.</p><p>how about somehow having it remain in use in a faster piece of the computer.&nbsp; like if its in hd, put it in swap, if in swap put it in ram, if in ram, make it just run constantly in the processor.&nbsp; hehe.&nbsp; mount the stuff it needs to run, in ramfs for example, and reduce the resource/graphical overhead of the frames.</p></blockquote></div><p>the problem is more with the reporting of the cpu usage... a faster cycle rate on conky makes the reported cpu use more &quot;erratic&quot;<br />so at 1 second it might be..<br />12%......25%......28%......13%<br />but at 0,5 second cycle it would be<br />12%15%25%30%28%10%13%</p><p>thats what i meant by the jumpy....</p><p>i would need a way to record cpu usage at time a, then record cpu usage at time b.. then work out the difference between b and a<br />then have some way of having the frames &quot;progress&quot; from a to b rather than just jump from a to b.</p><p>might be possible in a lua script if conky cycle was set high say 4 times per second... then cpu could be recorded every second which would give you 3 frames to get from a to b (if you see what i mean) ...but then the animation would always be just slightly behind the actual cpu usage number...</p></blockquote></div><p>I think you should have a look to the code of the audio spectrum I <a href="http://ubuntuforums.org/showpost.php?p=8861782&amp;postcount=175">posted</a> on ubuntu forums : the peak bars have a smooth effect when moving (search peak_value in the code). It&#039;s what you&#039;re looking for if I understood you well. It works for decreasings values but it should be possible to use it for increasing values</p>]]></description>
			<author><![CDATA[dummy@example.com (wlourf)]]></author>
			<pubDate>Thu, 04 Mar 2010 22:36:33 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57455/#p57455</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57428/#p57428</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>@ wassm<br />i dont think there is a way.. the fix i thought i saw was really a trick to get a hr like line --- this is where i saw it<br /><a href="http://conky.linux-hardcore.com/?page_id=2962">http://conky.linux-hardcore.com/?page_id=2962</a></p>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Thu, 04 Mar 2010 20:08:13 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57428/#p57428</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57407/#p57407</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>mrpeachy wrote:</cite><blockquote><div class="quotebox"><cite>wassm. wrote:</cite><blockquote><p>Hi!<br />I have one question: is it possible to add one icon/symbol after ${hr 1} line. E.g. see my mail icon or butterfly:</p></blockquote></div><p>i think you need something line:<br />${alignr 50}${hr1}whatever</p><p>the 50 after the alignr shouls stop the line 50 pixels from the right of the conky window....<br />foget that, just tried it and itdoesnt work... but im sure i saw a fix somewhere!</p></blockquote></div><br /><p>Thanks. i also tried that-almost every versions</p>]]></description>
			<author><![CDATA[dummy@example.com (wassm.)]]></author>
			<pubDate>Thu, 04 Mar 2010 17:19:56 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57407/#p57407</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57404/#p57404</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>wassm. wrote:</cite><blockquote><p>Hi!<br />I have one question: is it possible to add one icon/symbol after ${hr 1} line. E.g. see my mail icon or butterfly:</p></blockquote></div><p>i think you need something line:<br />${alignr 50}${hr1}whatever</p><p>the 50 after the alignr shouls stop the line 50 pixels from the right of the conky window....<br />foget that, just tried it and itdoesnt work... but im sure i saw a fix somewhere!</p>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Thu, 04 Mar 2010 16:44:25 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57404/#p57404</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57398/#p57398</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>Hi!<br />I have one question: is it possible to add one icon/symbol after ${hr 1} line. E.g. see my mail icon or butterfly:<br /></p><div class="quotebox"><blockquote><p>background yes<br />use_xft yes<br />xftfont DejaVu Sans:size=7<br />xftalpha 0.5<br />update_interval 1.0<br />total_run_times 0<br />own_window yes<br />own_window_transparent yes<br />own_window_type override<br />#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager<br />double_buffer yes<br />minimum_size 180 5<br />maximum_width 180<br />draw_shades no<br />draw_outline no<br />draw_borders no<br />draw_graph_borders no<br />default_color grey<br />default_shade_color red<br />default_outline_color green<br />alignment top_right<br />gap_x 3<br />gap_y 23<br />no_buffers yes<br />uppercase no<br />cpu_avg_samples_2<br />override_utf8_locale yes<br />text_buffer_size 2048</p><p>TEXT<br />${font Trebuchet MS:size=29}${alignc}${time %H:%M:%S}${font}<br />${voffset 4}${font Trebuchet MS:size=8}${alignc}${time %A - %d - %B - %Y}${font}<br />${hr 1}<br />${voffset 0}${font andale mono:size=7}${color ffffff}${execpi 600 DJS=`date +%_d`; cal | sed &#039;1d&#039; | sed &#039;/./!d&#039; | sed &#039;s/$/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/&#039; | fold -w 21 | sed -n &#039;/^.\{21\}/p&#039; | sed &#039;s/^/${alignc -10} /&#039; | sed /&quot; $DJS &quot;/s/&quot; $DJS &quot;/&quot; &quot;&#039;${color red}&#039;&quot;$DJS&quot;&#039;${color ffffff}&#039;&quot; &quot;/}${font}<br />${voffset -15}${font OpenSymbol:size=14}${font}${voffset 0}&nbsp; SYSTEM&nbsp; &nbsp; ${hr 1}<br />kernel: ${alignr}$kernel<br />uptime: ${alignr}$uptime<br />${color #3E3E3E}${cpugraph 000000 ffffff}${color}<br />${voffset -6}cpu: ${cpu}% ${alignr 1} ${alignr}${freq}MHz&nbsp; &nbsp;${acpitemp}°C<br />${voffset 0}hd:&nbsp; $fs_free_perc%&nbsp; ${voffset 0}${fs_free /home}/${fs_size /home} ${alignr}${hddtemp /dev/sda localhost 7634}°C<br />${voffset 0}ram: $memperc% ${alignc} $mem${alignr 7} ${membar 6,50}<br />${voffset 2}${alignc -40}CPU%&nbsp; &nbsp; ${alignr}MEM%<br />${voffset 2}${top_mem name 1}${alignr}${top_mem cpu 1}&nbsp; &nbsp;${top_mem mem 1}<br />${voffset 0}${top_mem name 2}${alignr}${top_mem cpu 2}&nbsp; &nbsp;${top_mem mem 2}<br />${voffset 0}${top_mem name 3}${alignr}${top_mem cpu 3}&nbsp; &nbsp;${top_mem mem 3}<br />${voffset 0}${top_mem name 4}${alignr}${top_mem cpu 4}&nbsp; &nbsp;${top_mem mem 4}<br />${voffset 5}upload: ${alignr}${upspeedf eth2} KB/s<br />${voffset 0}download: ${alignr}${downspeedf eth2} KB/s<br />${voffset 2}${font OpenSymbol:size=12}${font}${voffset -1}&nbsp; MAIL&nbsp; &nbsp; ${hr 1}</p></blockquote></div><p>I tried to put something after ${hr 1} - but nothing-just the line till the end of margin.</p><p><a href="http://img11.imageshack.us/img11/2329/bildschirmfotoax.png">http://img11.imageshack.us/img11/2329/b &#133; fotoax.png</a><br /><a href="http://img11.imageshack.us/i/bildschirmfotoax.png/"><span class="postimg"><img src="http://img11.imageshack.us/img11/2329/bildschirmfotoax.png" alt="http://img11.imageshack.us/img11/2329/bildschirmfotoax.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (wassm.)]]></author>
			<pubDate>Thu, 04 Mar 2010 15:33:38 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57398/#p57398</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57210/#p57210</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>Digit wrote:</cite><blockquote><p>just a delayed after thought.</p><p>how about somehow having it remain in use in a faster piece of the computer.&nbsp; like if its in hd, put it in swap, if in swap put it in ram, if in ram, make it just run constantly in the processor.&nbsp; hehe.&nbsp; mount the stuff it needs to run, in ramfs for example, and reduce the resource/graphical overhead of the frames.</p></blockquote></div><p>the problem is more with the reporting of the cpu usage... a faster cycle rate on conky makes the reported cpu use more &quot;erratic&quot;<br />so at 1 second it might be..<br />12%......25%......28%......13%<br />but at 0,5 second cycle it would be<br />12%15%25%30%28%10%13%</p><p>thats what i meant by the jumpy....</p><p>i would need a way to record cpu usage at time a, then record cpu usage at time b.. then work out the difference between b and a<br />then have some way of having the frames &quot;progress&quot; from a to b rather than just jump from a to b.</p><p>might be possible in a lua script if conky cycle was set high say 4 times per second... then cpu could be recorded every second which would give you 3 frames to get from a to b (if you see what i mean) ...but then the animation would always be just slightly behind the actual cpu usage number...</p>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Tue, 02 Mar 2010 22:06:52 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57210/#p57210</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57209/#p57209</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>whoops double post...see below</p>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Tue, 02 Mar 2010 22:05:06 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57209/#p57209</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57204/#p57204</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>mrpeachy wrote:</cite><blockquote><div class="quotebox"><cite>Digit wrote:</cite><blockquote><p>and mpreachy&#039;s hulk.&nbsp; &nbsp; inspirational!&nbsp; &nbsp; ps.&nbsp; would faster refresh rates help smooth it out?</p></blockquote></div><p>Thanks Digit :) ...but unfortunately no... higher refresh rates make it even more jumpy.</p></blockquote></div><p>just a delayed after thought.</p><p>how about somehow having it remain in use in a faster piece of the computer.&nbsp; like if its in hd, put it in swap, if in swap put it in ram, if in ram, make it just run constantly in the processor.&nbsp; hehe.&nbsp; mount the stuff it needs to run, in ramfs for example, and reduce the resource/graphical overhead of the frames.</p>]]></description>
			<author><![CDATA[dummy@example.com (Digit)]]></author>
			<pubDate>Tue, 02 Mar 2010 21:48:33 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57204/#p57204</guid>
		</item>
		<item>
			<title><![CDATA[Re: My Conky Config]]></title>
			<link>http://crunchbanglinux.org/forums/post/57196/#p57196</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>here is a configurable version of the perspective bars lua script<br /><a href="http://omploader.org/vM3BzMA"><span class="postimg"><img src="http://omploader.org/tM3BzMA" alt="http://omploader.org/tM3BzMA" /></span></a><a href="http://omploader.org/vM3BzcA"><span class="postimg"><img src="http://omploader.org/tM3BzcA" alt="http://omploader.org/tM3BzcA" /></span></a><br />Currently the bars have no bottoms, thats why they look extra white in the transparent version... i&#039;ll add those later<br />i need to work on getting titles onto the bars.&nbsp; I want to be able to twist the text to match the angles of the bars and i think this is possible using a matrix in cairo... but I have yet to look into exactly how to do this! </p><p>here is a clip of it working which also shows how the figure can be altered through the settings.<br /><a href="http://blip.tv/file/3290847">http://blip.tv/file/3290847</a></p><p>I have posted a video on my blog that better shows how the settings can affect the look of the bars:<br /><a href="http://thepeachyblog.blogspot.com/2010/03/i-have-also-been-thinking-more-about.html">http://thepeachyblog.blogspot.com/2010/ &#133; about.html</a></p><br /><div class="codebox"><pre><code>--[[perspective bars by mrpeachy (2010]]
require &#039;cairo&#039;
function perspective(num1, num2, num3, num4, num5, num6, across, down, width, rad, radback, topangle, bottomangle, backta, backba,red1,green1,blue1,alpha1,red2,green2,blue2,alpha2,red3,green3,blue3,alpha3,red4,green4,blue4,alpha4,barnumber,gridlines,glred,glgreen,glblue,glaplha)
cairo_translate (cr, across, down)
lwidth=1
cairo_set_line_width (cr, lwidth)

--rad=500
--angle=20
top=270+topangle
bottom=270-bottomangle

--radback=540
--backangle=15
backtop=270+backta
backbottom=270-backba
cairo_move_to (cr, 0, 0)

--backtop line
text_arc=((2*math.pi/360)*backtop)
tx3=0+radback*(math.sin(text_arc))
ty3=0-radback*(math.cos(text_arc))

--backbottom line
text_arc=((2*math.pi/360)*backbottom)
tx4=0+radback*(math.sin(text_arc))
ty4=0-radback*(math.cos(text_arc))

--1st line
linea=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radback)
--width of first column horizontal
wideah=math.cos(((backbottom-backtop)/2)*(math.pi/180))*width
--width of fisrt column along backangle
wideaa=width
--2nd line
radiusa=radback-wideaa
lineb=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiusa)
--width of second column
widebh=(wideah/linea)*lineb
--width of second column along backangle
wideba=widebh/math.cos(((backbottom-backtop)/2)*(math.pi/180))
--3nd line
radiusb=radiusa-wideba
linec=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiusb)
--width of second column
widech=(widebh/lineb)*linec
--width of second column along backangle
wideca=widech/math.cos(((backbottom-backtop)/2)*(math.pi/180))
--4nd line
radiusc=radiusb-wideca
lined=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiusc)
--width of second column
widedh=(widech/linec)*lined
--width of second column along backangle
wideda=widedh/math.cos(((backbottom-backtop)/2)*(math.pi/180))
--5nd line
radiusd=radiusc-wideda
linee=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiusd)
--width of second column
wideeh=(widedh/lined)*linee
--width of second column along backangle
wideea=wideeh/math.cos(((backbottom-backtop)/2)*(math.pi/180))
--6nd line
radiuse=radiusd-wideea
linef=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiuse)
--width of second column
widefh=(wideeh/linee)*linef
--width of second column along backangle
widefa=widefh/math.cos(((backbottom-backtop)/2)*(math.pi/180))
--7nd line
radiusf=radiuse-widefa
lineg=math.sin(((backbottom-backtop)/2)*(math.pi/180))*(radiusf)
--width of second column
widegh=(widefh/linef)*lineg
--width of second column along backangle
widega=widegh/math.cos(((backbottom-backtop)/2)*(math.pi/180))

xa=tx4
xb=xa+wideah
xc=xb+widebh
xd=xc+widech
xe=xd+widedh
xf=xe+wideeh
xg=xf+widefh
ya=ty4
yb=ya-(lineb-linea)
yc=yb-(linec-lineb)
yd=yc-(lined-linec)
ye=yd-(linee-lined)
yf=ye-(linef-linee)
yg=yf-(lineg-linef)

cairo_move_to (cr, 0, 0)
--top line
text_arc=((2*math.pi/360)*top)
tx1=0+rad*(math.sin(text_arc))
ty1=0-rad*(math.cos(text_arc))
--bottom line
text_arc=((2*math.pi/360)*bottom)
tx2=0+rad*(math.sin(text_arc))
ty2=0-rad*(math.cos(text_arc))

--1st line
line1=math.sin(((bottom-top)/2)*(math.pi/180))*(rad)
--width of first column horizontal
wide1h=math.cos(((bottom-top)/2)*(math.pi/180))*width
--width of fisrt column along angle
wide1a=width
--2nd line
radius1=rad-wide1a
line2=math.sin(((bottom-top)/2)*(math.pi/180))*(radius1)
--width of second column
wide2h=(wide1h/line1)*line2
--width of second column along angle
wide2a=wide2h/math.cos(((bottom-top)/2)*(math.pi/180))
--3nd line
radius2=radius1-wide2a
line3=math.sin(((bottom-top)/2)*(math.pi/180))*(radius2)
--width of second column
wide3h=(wide2h/line2)*line3
--width of second column along angle
wide3a=wide3h/math.cos(((bottom-top)/2)*(math.pi/180))
--4nd line
radius3=radius2-wide3a
line4=math.sin(((bottom-top)/2)*(math.pi/180))*(radius3)
--width of second column
wide4h=(wide3h/line3)*line4
--width of second column along angle
wide4a=wide4h/math.cos(((bottom-top)/2)*(math.pi/180))
--5nd line
radius4=radius3-wide4a
line5=math.sin(((bottom-top)/2)*(math.pi/180))*(radius4)
--width of second column
wide5h=(wide4h/line4)*line5
--width of second column along angle
wide5a=wide5h/math.cos(((bottom-top)/2)*(math.pi/180))
--6nd line
radius5=radius4-wide5a
line6=math.sin(((bottom-top)/2)*(math.pi/180))*(radius5)
--width of second column
wide6h=(wide5h/line5)*line6
--width of second column along angle
wide6a=wide6h/math.cos(((bottom-top)/2)*(math.pi/180))
--7nd line
radius6=radius5-wide6a
line7=math.sin(((bottom-top)/2)*(math.pi/180))*(radius6)
--width of second column
wide7h=(wide6h/line6)*line7
--width of second column along angle
wide7a=wide7h/math.cos(((bottom-top)/2)*(math.pi/180))

x1=tx2
x2=x1+wide1h
x3=x2+wide2h
x4=x3+wide3h
x5=x4+wide4h
x6=x5+wide5h
x7=x6+wide6h
y1=ty2
y2=y1-(line2-line1)
y3=y2-(line3-line2)
y4=y3-(line4-line3)
y5=y4-(line5-line4)
y6=y5-(line6-line5)
y7=y6-(line7-line6)

--back indicator line
if gridlines==1 then
cairo_set_source_rgba (cr, glred,glgreen,glblue,glaplha)
if barnumber==1 then
xpos=xb
ypos=yb
line=lineb
xposf=x2
yposf=y2
linef=line2
elseif barnumber==2 then
xpos=xc
ypos=yc
line=linec
xposf=x3
yposf=y3
linef=line3
elseif barnumber==3 then
xpos=xd
ypos=yd
line=lined
xposf=x4
yposf=y4
linef=line4
elseif barnumber==4 then
xpos=xe
ypos=ye
line=linee
xposf=x5
yposf=y5
linef=line5
elseif barnumber==5 then
xpos=xf
ypos=yf
line=linef
xposf=x6
yposf=y6
linef=line6
elseif barnumber==6 then
xpos=xg
ypos=yg
line=lineg
xposf=x7
yposf=y7
linef=line7
end
cairo_move_to (cr, tx4, ty4)
cairo_rel_line_to (cr, 0, linea*2)
cairo_line_to (cr, xpos, ypos+line*2)
cairo_rel_line_to (cr, 0, -line*2)
cairo_stroke (cr)
cairo_move_to (cr, xpos, ypos+line*2)
cairo_line_to (cr, xposf, yposf+linef*2)
cairo_stroke (cr)
end

--BAR 6
var6=line6*2*(num6/100)
var7=line7*2*(num6/100)
varf=linef*2*(num6/100)
varg=lineg*2*(num6/100)
--back left face6
cairo_set_source_rgba (cr,red6*0.8,green6*0.8,blue6*0.8,alpha6)
cairo_move_to (cr, xf,yf)
cairo_rel_line_to (cr, 0, varf)
cairo_line_to (cr, xg, yg+varg)
cairo_rel_line_to (cr, 0, -varg)
cairo_close_path (cr)
cairo_fill (cr)
--back right face6
cairo_set_source_rgba (cr,red6*0.8,green6*0.8,blue6*0.8,alpha6)
cairo_move_to (cr, xg,yg)
cairo_rel_line_to (cr, 0, varg)
cairo_line_to (cr, x7, y7+var7)
cairo_rel_line_to (cr, 0, -var7)
cairo_close_path (cr)
cairo_fill (cr)
--top 6
cairo_set_source_rgba (cr,red6*0.8,green6*0.8,blue6*0.8,alpha6)
cairo_move_to (cr, x6, y6+var6)
cairo_line_to (cr, x7, y7+var7)
cairo_line_to (cr, xg, yg+varg)
cairo_line_to (cr, xf, yf+varf)
cairo_close_path (cr)
cairo_fill (cr)
--front left face6
cairo_set_source_rgba (cr,red6*1,green6*1,blue6*1,alpha6)
cairo_move_to (cr, xf,yf)
cairo_rel_line_to (cr, 0, varf)
cairo_line_to (cr, x6, y6+var6)
cairo_rel_line_to (cr, 0, -var6)
cairo_close_path (cr)
cairo_fill (cr)
--front right face6
cairo_set_source_rgba (cr,red6*0.7,green6*0.7,blue6*0.7,alpha6)
cairo_move_to (cr, x6,y6)
cairo_rel_line_to (cr, 0, var6)
cairo_line_to (cr, x7, y7+var7)
cairo_rel_line_to (cr, 0, -var7)
cairo_close_path (cr)
cairo_fill (cr)

--BAR 5
var5=line5*2*(num5/100)
var6=line6*2*(num5/100)
vare=linee*2*(num5/100)
varf=linef*2*(num5/100)
--back left face5
cairo_set_source_rgba (cr,red5*0.8,green5*0.8,blue5*0.8,alpha5)
cairo_move_to (cr, xe,ye)
cairo_rel_line_to (cr, 0, vare)
cairo_line_to (cr, xf, yf+varf)
cairo_rel_line_to (cr, 0, -varf)
cairo_close_path (cr)
cairo_fill (cr)
--back right face5
cairo_set_source_rgba (cr,red5*0.8,green5*0.8,blue5*0.8,alpha5)
cairo_move_to (cr, xf,yf)
cairo_rel_line_to (cr, 0, varf)
cairo_line_to (cr, x6, y6+var6)
cairo_rel_line_to (cr, 0, -var6)
cairo_close_path (cr)
cairo_fill (cr)
--top 5
cairo_set_source_rgba (cr,red5*0.8,green5*0.8,blue5*0.8,alpha5)
cairo_move_to (cr, x5, y5+var5)
cairo_line_to (cr, x6, y6+var6)
cairo_line_to (cr, xf, yf+varf)
cairo_line_to (cr, xe, ye+vare)
cairo_close_path (cr)
cairo_fill (cr)
--front left face5
cairo_set_source_rgba (cr,red5*1,green5*1,blue5*1,alpha5)
cairo_move_to (cr, xe,ye)
cairo_rel_line_to (cr, 0, vare)
cairo_line_to (cr, x5, y5+var5)
cairo_rel_line_to (cr, 0, -var5)
cairo_close_path (cr)
cairo_fill (cr)
--front right face5
cairo_set_source_rgba (cr,red5*0.7,green5*0.7,blue5*0.7,alpha5)
cairo_move_to (cr, x5,y5)
cairo_rel_line_to (cr, 0, var5)
cairo_line_to (cr, x6, y6+var6)
cairo_rel_line_to (cr, 0, -var6)
cairo_close_path (cr)
cairo_fill (cr)

--BAR 4
var4=line4*2*(num4/100)
var5=line5*2*(num4/100)
vard=lined*2*(num4/100)
vare=linee*2*(num4/100)
--back left face4
cairo_set_source_rgba (cr,red4*0.8,green4*0.8,blue4*0.8,alpha4)
cairo_move_to (cr, xd,yd)
cairo_rel_line_to (cr, 0, vard)
cairo_line_to (cr, xe, ye+vare)
cairo_rel_line_to (cr, 0, -vare)
cairo_close_path (cr)
cairo_fill (cr)
--back right face2
cairo_set_source_rgba (cr,red4*0.8,green4*0.8,blue4*0.8,alpha4)
cairo_move_to (cr, xe,ye)
cairo_rel_line_to (cr, 0, vare)
cairo_line_to (cr, x5, y5+var5)
cairo_rel_line_to (cr, 0, -var5)
cairo_close_path (cr)
cairo_fill (cr)
--top 4
cairo_set_source_rgba (cr,red4*0.8,green4*0.8,blue4*0.8,alpha4)
cairo_move_to (cr, x4, y4+var4)
cairo_line_to (cr, x5, y5+var5)
cairo_line_to (cr, xe, ye+vare)
cairo_line_to (cr, xd, yd+vard)
cairo_close_path (cr)
cairo_fill (cr)
--front left face4
cairo_set_source_rgba (cr,red4*1,green4*1,blue4*1,alpha4)
cairo_move_to (cr, xd,yd)
cairo_rel_line_to (cr, 0, vard)
cairo_line_to (cr, x4, y4+var4)
cairo_rel_line_to (cr, 0, -var4)
cairo_close_path (cr)
cairo_fill (cr)
--front right face4
cairo_set_source_rgba (cr,red4*0.7,green4*0.7,blue4*0.7,alpha4)
cairo_move_to (cr, x4,y4)
cairo_rel_line_to (cr, 0, var4)
cairo_line_to (cr, x5, y5+var5)
cairo_rel_line_to (cr, 0, -var5)
cairo_close_path (cr)
cairo_fill (cr)

--BAR 3
var3=line3*2*(num3/100)
var4=line4*2*(num3/100)
varc=linec*2*(num3/100)
vard=lined*2*(num3/100)
--back left face3
cairo_set_source_rgba (cr,red3*8,green3*8,blue3*8,alpha3)
cairo_move_to (cr, xc,yc)
cairo_rel_line_to (cr, 0, varc)
cairo_line_to (cr, xd, yd+vard)
cairo_rel_line_to (cr, 0, -vard)
cairo_close_path (cr)
cairo_fill (cr)
--back right face3
cairo_set_source_rgba (cr,red3*8,green3*8,blue3*8,alpha3)
cairo_move_to (cr, xd,yd)
cairo_rel_line_to (cr, 0, vard)
cairo_line_to (cr, x4, y4+var4)
cairo_rel_line_to (cr, 0, -var4)
cairo_close_path (cr)
cairo_fill (cr)
--top3
cairo_set_source_rgba (cr,red3*8,green3*8,blue3*8,alpha3)
cairo_move_to (cr, x3, y3+var3)
cairo_line_to (cr, x4, y4+var4)
cairo_line_to (cr, xd, yd+vard)
cairo_line_to (cr, xc, yc+varc)
cairo_close_path (cr)
cairo_fill (cr)
--front left face3
cairo_set_source_rgba (cr,red3*1,green3*1,blue3*1,alpha3)
cairo_move_to (cr, xc,yc)
cairo_rel_line_to (cr, 0, varc)
cairo_line_to (cr, x3, y3+var3)
cairo_rel_line_to (cr, 0, -var3)
cairo_close_path (cr)
cairo_fill (cr)
--front right face3
cairo_set_source_rgba (cr,red3*0.7,green3*0.7,blue3*0.7,alpha3)
cairo_move_to (cr, x3,y3)
cairo_rel_line_to (cr, 0, var3)
cairo_line_to (cr, x4, y4+var4)
cairo_rel_line_to (cr, 0, -var4)
cairo_close_path (cr)
cairo_fill (cr)

--BAR 2
var2=line2*2*(num2/100)
var3=line3*2*(num2/100)
varb=lineb*2*(num2/100)
varc=linec*2*(num2/100)
--back left face2
cairo_set_source_rgba (cr,red2*0.8,green2*0.8,blue2*0.8,alpha2)
cairo_move_to (cr, xb,yb)
cairo_rel_line_to (cr, 0, varb)
cairo_line_to (cr, xc, yc+varc)
cairo_rel_line_to (cr, 0, -varc)
cairo_close_path (cr)
cairo_fill (cr)
--back right face2
cairo_set_source_rgba (cr,red2*0.8,green2*0.8,blue2*0.8,alpha2)
cairo_move_to (cr, xc,yc)
cairo_rel_line_to (cr, 0, varc)
cairo_line_to (cr, x3, y3+var3)
cairo_rel_line_to (cr, 0, -var3)
cairo_close_path (cr)
cairo_fill (cr)
--top2
cairo_set_source_rgba (cr,red2*0.8,green2*0.8,blue2*0.8,alpha2)
cairo_move_to (cr, x2, y2+var2)
cairo_line_to (cr, x3, y3+var3)
cairo_line_to (cr, xc, yc+varc)
cairo_line_to (cr, xb, yb+varb)
cairo_close_path (cr)
cairo_fill (cr)
--front left face2
cairo_set_source_rgba (cr,red2*1,green2*1,blue2*1,alpha2)
cairo_move_to (cr, xb,yb)
cairo_rel_line_to (cr, 0, varb)
cairo_line_to (cr, x2, y2+var2)
cairo_rel_line_to (cr, 0, -var2)
cairo_close_path (cr)
cairo_fill (cr)
--front right face2
cairo_set_source_rgba (cr,red2*0.7,green2*0.7,blue2*0.7,alpha2)
cairo_move_to (cr, x2,y2)
cairo_rel_line_to (cr, 0, var2)
cairo_line_to (cr, x3, y3+var3)
cairo_rel_line_to (cr, 0, -var3)
cairo_close_path (cr)
cairo_fill (cr)

--BAR 1 num1, num2, num3, num4, num5, num6
var1=line1*2*(num1/100)
var2=line2*2*(num1/100)
vara=linea*2*(num1/100)
varb=lineb*2*(num1/100)
--back left face1
cairo_set_source_rgba (cr,red1*0.8,green1*0.8,blue1*0.8,alpha1)
cairo_move_to (cr, xa,ya)
cairo_rel_line_to (cr, 0, vara)
cairo_line_to (cr, xb, yb+varb)
cairo_rel_line_to (cr, 0, -varb)
cairo_close_path (cr)
cairo_fill (cr)
--back right face1
cairo_set_source_rgba (cr,red1*0.8,green1*0.8,blue1*0.8,alpha1)
cairo_move_to (cr, xb,yb)
cairo_rel_line_to (cr, 0, varb)
cairo_line_to (cr, x2, y2+var2)
cairo_rel_line_to (cr, 0, -var2)
cairo_close_path (cr)
cairo_fill (cr)
--top1
cairo_set_source_rgba (cr,red1*0.8,green1*0.8,blue1*0.8,alpha1)
cairo_move_to (cr, x1, y1+var1)
cairo_line_to (cr, x2, y2+var2)
cairo_line_to (cr, xb, yb+varb)
cairo_line_to (cr, xa, ya+vara)
cairo_close_path (cr)
cairo_fill (cr)
--front left face1
cairo_set_source_rgba (cr,red1*1,green1*1,blue1*1,alpha1)
cairo_move_to (cr, xa,ya)
cairo_rel_line_to (cr, 0, vara)
cairo_line_to (cr, x1, y1+var1)
cairo_rel_line_to (cr, 0, -var1)
cairo_close_path (cr)
cairo_fill (cr)
--front right face1
cairo_set_source_rgba (cr,red1*0.7,green1*0.7,blue1*0.7,alpha1)
cairo_move_to (cr, x1,y1)
cairo_rel_line_to (cr, 0, var1)
cairo_line_to (cr, x2, y2+var2)
cairo_rel_line_to (cr, 0, -var2)
cairo_close_path (cr)
cairo_fill (cr)
--front indicator line
if gridlines==1 then
cairo_set_source_rgba (cr, glred,glgreen,glblue,glaplha)
cairo_move_to (cr, x1, y1)
cairo_rel_line_to (cr, 0, line1*2)
cairo_line_to (cr, xposf, yposf+linef*2)
cairo_rel_line_to (cr, 0, -linef*2)
cairo_stroke (cr)
cairo_move_to (cr, xa, ya+linea*2)
cairo_line_to (cr, x1, y1+line1*2)
cairo_stroke (cr)
cairo_move_to (cr, x1, y1)
cairo_line_to (cr, xposf, yposf)
cairo_stroke (cr)
cairo_move_to (cr, x1, y1)
cairo_line_to (cr, xa, ya)
cairo_stroke (cr)
end
cairo_translate (cr, -across, -down)
end

function conky_draw_graph()
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(&#039;${updates}&#039;))
if updates&gt; 3 then
cpu=tonumber(conky_parse(&#039;${cpu}&#039;))
mem=tonumber(conky_parse(&#039;${memperc}&#039;))
hdd1=tonumber(conky_parse(&#039;${fs_used_perc /}&#039;))
hdd2=tonumber(conky_parse(&#039;${fs_used_perc /media/Windows XP}&#039;))
--call draw function------------------------------------------------------------
--set the number of bars you are using to set gridlines correctly
barnumber=4
--bar1 (for a bar not in use set alpha to 0
num1=cpu
red1,green1,blue1,alpha1=1,0,0,1
--bar2
num2=mem
red2,green2,blue2,alpha2=0,1,0,1
--bar3
num3=hdd1
red3,green3,blue3,alpha3=0,0,1,1
--bar4
num4=hdd2
red4,green4,blue4,alpha4=1,1,0,1
--bar5
num5=0
red5,green5,blue5,alpha5=1,1,0,0
--bar6
num6=0
red6,green6,blue6,alpha6=1,1,0,0
--position x
across=800
--position y
down=200
--width of first bar, other bar widths are relative to this
width=60
--length of the front
frontradius=500
--length of the back
backradius=600
--angles of lines... due to how lines are calculated a bar at 50% will have a horizontal top on the front and back faces of the figure
topangle=20
bottomangle=15
backtopangle=10
backbottomangle=5
--set 1 for gridlines, 0 for none
gridlines=1
--set gridline color
glred,glgreen,glblue,glaplha=0,0,0,1
--call drawing function
perspective(num1, num2, num3, num4, num5, num6, across, down, width, frontradius, backradius, topangle, bottomangle, backtopangle, backbottomangle,red1,green1,blue1,alpha1,red2,green2,blue2,alpha2,red3,green3,blue3,alpha3,red4,green4,blue4,alpha4,barnumber,gridlines,glred,glgreen,glblue,glaplha)
--end call----------------------------------------------------------------------
end
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (mrpeachy)]]></author>
			<pubDate>Tue, 02 Mar 2010 20:14:00 +0000</pubDate>
			<guid>http://crunchbanglinux.org/forums/post/57196/#p57196</guid>
		</item>
	</channel>
</rss>
