<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8823294493187598017</id><updated>2026-10-14T06:33:57.540-07:00</updated><category term="Guide"/><category term="applications"/><category term="tricks"/><category term="Tips"/><category term="conky"/><category term="games"/><category term="compiz"/><category term="tweak"/><category term="wallpaper"/><category term="Other OS"/><category term="magazines"/><category term="gnome"/><category term="wep cracker"/><category term="wireless"/><category term="Network"/><category term="shortcut keyboard"/><category term="iscsi"/><category term="Icon"/><category term="Themes"/><category term="widget"/><title type='text'>Ubuntu Tips And Tricks</title><subtitle type='html'>Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>280</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-4728603755150155739</id><published>2014-08-18T08:37:00.000-07:00</published><updated>2014-08-18T08:41:47.705-07:00</updated><title type='text'>Latest conky lua, rings and weather</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTzu_1SAkiK6SzIy5tjUsTpsJl9YG3tEAAPbwqX5YE-ZJiMJQv2lhXNaUavYQnSAbKA2rua5JlvC-T2uRl1SY8gvfPV6a5oWtgcmL-MlE8ldfZetXMlnt-mZ6Fn7W0OQW2GcrSzECb3vs5/s1600/desktop+1_007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTzu_1SAkiK6SzIy5tjUsTpsJl9YG3tEAAPbwqX5YE-ZJiMJQv2lhXNaUavYQnSAbKA2rua5JlvC-T2uRl1SY8gvfPV6a5oWtgcmL-MlE8ldfZetXMlnt-mZ6Fn7W0OQW2GcrSzECb3vs5/s1600/desktop+1_007.png&quot; height=&quot;356&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The .conkyrc&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border-color: rgb(216, 216, 216); border-style: dashed; border-width: 1px; margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;background yes
use_xft yes
xftfont Sans:bold:size=8
xftalpha 1
update_interval 0.2
total_run_times 0
own_window yes
own_window_transparent yes
own_window_class override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager       
double_buffer yes
minimum_size 350 900
#maximum_length 720
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 10
gap_y 0
no_buffers no
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
uppercase no
lua_load /path to/bargraphl.lua
lua_draw_hook_post main_bars
lua_load /path to/rings.lua
lua_draw_hook_pre main_rings

TEXT
${image ~/.conky/base.png -p 1,1 -s 380x90}${image ~/.conky/base.png -p 1,75 -s 380x86}${image ~/.conky/base.png -p 1,140 -s 380x132}${image ~/.conky/base.png -p 1,251 -s 380x90}${image ~/.conky/base.png -p 1,325 -s 380x82}${image ~/.conky/base.png -p 1,392 -s 380x82}${image ~/.conky/base.png -p 1,455 -s 380x122}${image ~/.conky/base.png -p 1,544 -s 380x205}${if_existing /etc/SuSE-release}${image ~/.conky/Icons/OS/opensuse.png -p 18,25 -s 45x45}${else}${if_existing /etc/fedora-release}${image ~/.conky/Icons/OS/fedora.png -p 18,25 -s 45x45}${else}${if_existing /etc/gentoo-release}${image ~/.conky/Icons/OS/gentoo.png -p 18,25 -s 45x45}${else}${if_existing /etc/issue Ubuntu}${image ~/.conky/Icons/OS/ubuntu.png -p 18,25 -s 45x45}${else}${if_existing /etc/slackware-version}${image ~/.conky/Icons/OS/slackware.png -p 18,25 -s 45x45}${else}${if_existing /etc/issue Mint}${image ~/.conky/Icons/OS/mint.png -p 18,25 -s 45x45}${else}${if_existing /etc/issue Arch}${image ~/.conky/Icons/OS/archlinux.png -p 18,25 -s 45x45}${else}${image ~/.conky/Icons/OS/setting.png -p 18,25 -s 45x45}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${if_existing /proc/net/route wlan0}${image ~/.conky/Icons/Network/wlan.png -p 18,481 -s 45x45}${else}${if_existing /proc/net/route ppp0}${image ~/.conky/Icons/Network/ppp.png -p 18,481 -s 45x45}${else}${if_existing /proc/net/route eth0}${image ~/.conky/Icons/Network/lan.png -p 18,481 -s 45x45}${else}${image ~/.conky/Icons/Network/disconnected.png -p 18,481 -s 45x45}${endif}${endif}${endif}${image ~/.conky/Icons/Memory.png -p 18,170 -s 45x45}${image ~/.conky/Icons/Clock.png -p 18,100 -s 45x45}${image ~/.conky/Icons/temp.png -p 18,275 -s 45x45}${image ~/.conky/Icons/Task_Manager.png -p 18,350 -s 45x45}
#${image ~/.conky/Icons/Weather.png -p 18,626 -s 45x45}
${goto 18}${font sans-serif:bold:size=8}${color yellow}SYSTEM ${hr 2}$color
${goto 70}${exec lsb_release -d -s}
${goto 70}${color white}${font sans-serif:bold:size=8}${sysname} ${kernel}:$alignr$nodename
${goto 70}${color white}${font sans-serif:bold:size=8}4x Intel(R) Core(TM) i5-2410M $alignr${freq_g cpu0}Ghz
${goto 70}${color white}${font sans-serif:bold:size=8}Uptime:$alignr$uptime
#
${voffset 10}${goto 18}${font sans-serif:bold:size=8}${color yellow}TIME &amp;amp; DATE ${hr 2}
${goto 95}${font  LCDMono:bold:size=28}${time %I:%M:%S}${goto 255}${time %p}${font}
${goto 125}${font sans-serif:bold:size=8}${Time %A %d/%B/%Y}$color
#
${voffset 8}${goto 18}${font sans-serif:bold:size=8}${color yellow}PROCESSORS ${hr 2}$color
${goto 115}${font sans-serif:bold:size=11}${color red}1${goto 178}2${goto 247}3${goto 315}4${color}${font}
${goto 114}${cpu cpu1}%${goto 177}${cpu cpu2}%${goto 245}${cpu cpu3}%${goto 310}${cpu cpu4}%
${voffset 16}${goto 22}${font sans-serif:bold:size=8} RAM${goto 63}: $memperc% ${goto 190}$mem / $alignr$memmax
${goto 22}${font sans-serif:bold:size=8} DISK${goto 63}: ${fs_used_perc /}%${goto 190}${fs_used /} / $alignr${fs_size /}
${goto 22}${font sans-serif:bold:size=8} SWAP${goto 63}: ${swapperc}%${goto 190}${swap} ${goto 240}/ $alignr${swapmax}
#
${voffset 5}${goto 18}${font sans-serif:bold:size=8}${color yellow}TEMPERATURE ${voffset 2}${hr 2}$color
${goto 65}${font sans-serif:bold:size=8} PCI${goto 109}: ${hwmon 1 temp 1}°C
${goto 65}${font sans-serif:bold:size=8} CORE0${goto 109}: ${hwmon 1 temp 2}°C
${goto 65}${font sans-serif:bold:size=8} CORE1${goto 109}: ${hwmon 1 temp 3}°C
${goto 65}${font sans-serif:bold:size=8} DISK${goto 109}: ${execpi 10 hddtemp -n /dev/sda }°C
#
${voffset 10}${goto 18}${font sans-serif:bold:size=8}${color yellow}TOP PROCESSES${goto 174}PID${goto 227}CPU%${goto 280}MEM%$color
${goto 70}${font sans-serif:bold:size=8}${top name 1} ${goto 174} ${top pid 1}${goto 227}${top cpu 1}${goto 280}${top mem 1}
${goto 70}${font sans-serif:bold:size=8}${top name 2} ${goto 174} ${top pid 2}${goto 227}${top cpu 2}${goto 280}${top mem 2}
${goto 70}${font sans-serif:bold:size=8}${top name 3} ${goto 174} ${top pid 3}${goto 227}${top cpu 3}${goto 280}${top mem 3}
#${goto 70}${font sans-serif:bold:size=8}${top name 4} ${goto 174} ${top pid 4}${goto 227}${top cpu 4}${goto 280}${top mem 4}
#${goto 70}${font sans-serif:bold:size=8}${top name 3} ${goto 174} ${top pid 5}${goto 227}${top cpu 5}${goto 280}${top mem 5}
#
${voffset 13}${goto 18}${font sans-serif:bold:size=8}${color yellow}TOP MEMORY${goto 174}PID${goto 227}CPU%${goto 280}MEM%$color
${goto 70}${top_mem name 1}${goto 174}${top_mem pid 1}${goto 227}${top_mem cpu 1}${goto 280}${top_mem mem 1}
${goto 70}${top_mem name 2}${goto 174}${top_mem pid 2}${goto 227}${top_mem cpu 2}${goto 280}${top_mem mem 2}
${goto 70}${top_mem name 3}${goto 174}${top_mem pid 3}${goto 227}${top_mem cpu 3}${goto 280}${top_mem mem 3}
#${goto 70}${top_mem name 4}${goto 174}${top_mem pid 4}${goto 227}${top_mem cpu 4}${goto 280}${top_mem mem 4}
#${goto 70}${top_mem name 5}${goto 174}${top_mem pid 5}${goto 227}${top_mem cpu 5}${goto 280}${top_mem mem 5}
#
#
${voffset 13}${goto 18}${font sans-serif:bold:size=8}${color yellow}NETWORK ${hr 2}$color${if_existing /proc/net/route wwan0}
$alignc ....Berukband....
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color} Public IP: $alignr ${addr wwan0}
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color} Private IP:${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e &#39;s/[^[:digit:]\|.]//g&#39;}
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}T${font}${color} Downloads:${goto 237}${downspeed wwan0}/s
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}N${font}${color} Uploads:${goto 237}${upspeed wwan0}/s
Total: Downloads:${goto 128}${color green}${totaldown wwan0}${color}${goto 185} Uploads:${color red}${goto 243}${totalup wwan0}${color}
#${wireless_link_qual wwan0}%
#
${else}${if_existing /proc/net/route ppp0}
${goto 130} ${color yellow} ....Berukband....$color
${goto 70}Public IP:$alignr ${addr ppp0}
${goto 70}Private IP:${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e &#39;s/[^[:digit:]\|.]//g&#39;}
${goto 70}Downloads:${goto 237}${downspeed ppp0}/s
${goto 70}Uploads:${goto 237}${upspeed ppp0}/s
${goto 70}Total: Downloads::${goto 188}${color green}${totaldown ppp0}${color}${goto 230} Uploads${color red}${goto 287}${totalup ppp0}${color}
#
${else}${if_existing /proc/net/route wlan0}
${voffset -91}${goto 180}${color yellow} ....Wireless....$color
#${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}WAN IP:$alignr${execi 3600 wget -O- http://whatismyip.org/ | tail}
${goto 70}${font}${color}IP address: $alignr ${addr wlan0}
${goto 70}${font}${color}ESSID: $alignr ${wireless_essid wlan0}
${goto 70}${font}${color} Downloads:${goto 237}${downspeed wlan0}/s
${goto 70}${font}${color} Uploads:${goto 237}${upspeed wlan0}/s
${goto 70}Total: Downloads:${goto 178}${color green}${totaldown wlan0}${color}${goto 230} Uploads:${color red}${goto 287}${totalup wlan0}${color}
#${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
#
${else}${if_existing /proc/net/route eth0}
${voffset -91}$alignc ....Cable....
${goto 70}${font}${color}IP address: $alignr ${addr eth0}
${goto 70}${font}${color}ESSID: $alignr ${wireless_essid eth0}
${goto 70}${font}${color} Downloads:${goto 237}${downspeed eth0}/s
${goto 70}${font}${color} Uploads:${goto 237}${upspeed eth0}/s
${goto 70}Total: Downloads:${goto 178}${color green}${totaldown eth0}${color}${goto 230} Uploads:${color red}${goto 287}${totalup eth0}${color}
#${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}Connection quality: $alignr ${wireless_link_qual_perc eth0}%
#
${else}${if_existing /proc/net/route eth1}
${voffset -91}$alignc ....Cable....
${goto 70}${font}${color}IP address: $alignr ${addr eth1}
${goto 70}${font}${color}ESSID: $alignr ${wireless_essid eth1}
${goto 70}${font}${color} Downloads:${goto 237}${downspeed eth1}/s
${goto 70}${font}${color} Uploads:${goto 237}${upspeed eth1}/s
${goto 70}Total: Downloads:${goto 178}${color green}${totaldown eth1}${color}${goto 230} Uploads:${color red}${goto 287}${totalup eth1}${color}
#${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}Connection quality: $alignr ${wireless_link_qual_perc eth1}%
#
${else}${goto 120}${font sans-serif:bold:size=8}${color yellow}
$alignc ..Takdok Internet Wei.. ${endif}





${endif}${endif}${endif}${endif}
#
${voffset -7}${goto 18}${font sans-serif:bold:size=8}${color yellow}WEATHER SUNGAI KOYAN ${hr 2}$color${font}${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${image $HOME/1b1_accuweather_images/cc.png -p 0,595 -s 130x70}
${voffset -10}${goto 22}${font sans-serif:bold:size=7}${color yellow}${execpi 600 sed -n &#39;1p&#39; $HOME/1b1_accuweather_images/messages}${font}${goto 200}${font sans-serif:bold:size=5}${color yellow}TEMPERATURE: $color${alignr}${execpi 600 sed -n &#39;29p&#39; $HOME/1b1_accuweather_images/curr_cond}°C (${execpi 600 sed -n &#39;30p&#39; $HOME/1b1_accuweather_images/curr_cond}°C)
${goto 200}${color yellow}WIND: $color${alignr}${execpi 600 sed -n &#39;31p&#39; $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n &#39;32p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}HUMIDITY: $color${alignr}${execpi 600 sed -n &#39;33p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}DEW POINT: $color${alignr}${execpi 600 sed -n &#39;37p&#39; $HOME/1b1_accuweather_images/curr_cond}°C
${goto 200}${color yellow}PREASURE: $color${alignr}${execpi 600 sed -n &#39;34p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}VISIBILITY: $color${alignr}${execpi 600 sed -n &#39;38p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}CLOUD COVER: $color${alignr}${execpi 600 sed -n &#39;35p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}UV INDEX: $color${alignr}${execpi 600 sed -n &#39;36p&#39; $HOME/1b1_accuweather_images/curr_cond} 
${goto 200}${color yellow}SUN/MOON RISE: $color${alignr}${execpi 600 sed -n &#39;39p&#39; $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n &#39;41p&#39; $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color yellow}SUN/MOON SET: $color${alignr}${execpi 600 sed -n &#39;40p&#39; $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n &#39;42p&#39; $HOME/1b1_accuweather_images/curr_cond}
${voffset -90}${goto 135}${font sans-serif:bold:size=5}${color yellow}TODAY${voffset 50}${goto 135}TONIGHT$font${color}${image $HOME/1b1_accuweather_images/tod.png -p 117,593 -s 60x36}${image $HOME/1b1_accuweather_images/ton.png -p 117,640 -s 60x36}
${voffset -60}${goto 175}${font sans-serif:bold:size=5}${execpi 600 sed -n &#39;26p&#39; $HOME/1b1_accuweather_images/first_days}°C${voffset 50}${goto 175}${execpi 600 sed -n &#39;31p&#39; $HOME/1b1_accuweather_images/first_days}°C
${voffset -50}${color gold3}${goto 173}(${execpi 600 sed -n &#39;27p&#39; $HOME/1b1_accuweather_images/first_days}°C)${voffset 50}${goto 173}(${execpi 600 sed -n &#39;32p&#39; $HOME/1b1_accuweather_images/first_days}°C)$color
${voffset 15}${goto 20}${color yellow}${hr 0.25}$color${color yellow}${hr 1}$color
${font sans-serif:bold:size=5}${goto 20}${execpi 600 sed -n &#39;5p&#39; $HOME/1b1_accuweather_images/first_days}${goto 80}${execpi 600 sed -n &#39;10p&#39; $HOME/1b1_accuweather_images/first_days}${goto 140}${execpi 600 sed -n &#39;15p&#39; $HOME/1b1_accuweather_images/first_days}${goto 200}${execpi 600 sed -n &#39;20p&#39; $HOME/1b1_accuweather_images/first_days}${goto 260}${execpi 600 sed -n &#39;1p&#39; $HOME/1b1_accuweather_images/last_days}${goto 320}${execpi 600 sed -n &#39;6p&#39; $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/6.png -p 10,690 -s 60x36}${image $HOME/1b1_accuweather_images/11.png -p 70,690 -s 60x36}${image $HOME/1b1_accuweather_images/16.png -p 130,690 -s 60x36}${image $HOME/1b1_accuweather_images/21.png -p 190,690 -s 60x36}${image $HOME/1b1_accuweather_images/last_2.png -p 250,690 -s 60x36}${image $HOME/1b1_accuweather_images/last_7.png -p 310,690 -s 60x36}
${voffset 20}${font sans-serif:bold:size=5}${goto 20}${execpi 600 sed -n &#39;8p&#39; $HOME/1b1_accuweather_images/first_days}°C${goto 80}${execpi 600 sed -n &#39;13p&#39; $HOME/1b1_accuweather_images/first_days}°C${goto 140}${execpi 600 sed -n &#39;18p&#39; $HOME/1b1_accuweather_images/first_days}°C${goto 200}${execpi 600 sed -n &#39;23p&#39; $HOME/1b1_accuweather_images/first_days}°C${goto 260}${execpi 600 sed -n &#39;4p&#39; $HOME/1b1_accuweather_images/last_days}°C${goto 320}${execpi 600 sed -n &#39;9p&#39; $HOME/1b1_accuweather_images/last_days}°C${goto 320}${execpi 600 sed -n &#39;14p&#39; $HOME/1b1_accuweather_images/last_days}°C
${voffset -9}${goto 43}${color gold3}(${execpi 600 sed -n &#39;9p&#39; $HOME/1b1_accuweather_images/first_days}°C)${font sans-serif:bold:size=5}${goto 103}(${execpi 600 sed -n &#39;14p&#39; $HOME/1b1_accuweather_images/first_days}°C)${goto 163}(${execpi 600 sed -n &#39;19p&#39; $HOME/1b1_accuweather_images/first_days}°C)${goto 223}(${execpi 600 sed -n &#39;24p&#39; $HOME/1b1_accuweather_images/first_days}°C)${goto 283}(${execpi 600 sed -n &#39;5p&#39; $HOME/1b1_accuweather_images/last_days}°C)${goto 343}(${execpi 600 sed -n &#39;10p&#39; $HOME/1b1_accuweather_images/last_days}°C)
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
the bargraph lua...&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border-color: rgb(216, 216, 216); border-style: dashed; border-width: 1px; margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--[[
BARGRAPH WIDGET
v2.1 by wlourf (07 Jan. 2011)
this widget draws a bargraph with different effects 
http://u-scripts.blogspot.com/2010/07/bargraph-widget.html
 
To call the script in a conky, use, before TEXT
 lua_load /home/akubuntu/conkyJed/bargraph.lua
 lua_draw_hook_pre main_rings
and add one line (blank or not) after TEXT
 
Parameters are :
3 parameters are mandatory
name - the name of the conky variable to display, for example for {$cpu cpu0}, just write name=&quot;cpu&quot;
arg  - the argument of the above variable, for example for {$cpu cpu0}, just write arg=&quot;cpu0&quot;
       arg can be a numerical value if name=&quot;&quot;
max  - the maximum value the above variable can reach, for example, for {$cpu cpu0}, just write max=100
 
Optional parameters:
x,y   - coordinates of the starting point of the bar, default = middle of the conky window
cap   - end of cap line, ossibles values are r,b,s (for round, butt, square), default=&quot;b&quot;
     http://www.cairographics.org/samples/set_line_cap/
angle   - angle of rotation of the bar in degress, default = 0 (i.e. a vertical bar)
     set to 90 for an horizontal bar
skew_x   - skew bar around x axis, default = 0
skew_y   - skew bar around y axis, default = 0
blocks    - number of blocks to display for a bar (values &amp;gt;0) , default= 10
height   - height of a block, default=10 pixels
width   - width of a block, default=20 pixels
space   - space between 2 blocks, default=2 pixels
angle_bar - this angle is used to draw a bar on a circular way (ok, this is no more a bar !) default=0
radius   - for cicular bars, internal radius, default=0
     with radius, parameter width has no more effect.

Colours below are defined into braces {colour in hexadecimal, alpha}
fg_colour    - colour of a block ON, default= {0x00FF00,1}
bg_colour    - colour of a block OFF, default = {0x00FF00,0.5}
alarm      - threshold, values after this threshold will use alarm_colour colour , default=max
alarm_colour - colour of a block greater than alarm, default=fg_colour
smooth      - (true or false), create a gradient from fg_colour to bg_colour, default=false 
mid_colour   - colours to add to gradient, with this syntax {position into the gradient (0 to1), colour hexa, alpha}
        for example, this table {{0.25,0xff0000,1},{0.5,0x00ff00,1},{0.75,0x0000ff,1}} will add
        3 colours to gradient created by fg_colour and alarm_colour, default=no mid_colour
led_effect   - add LED effects to each block, default=no led_effect
        if smooth=true, led_effect is not used
        possibles values : &quot;r&quot;,&quot;a&quot;,&quot;e&quot; for radial, parallel, perdendicular to the bar (just try!)
        led_effect has to be used with theses colours :
fg_led      - middle colour of a block ON, default = fg_colour
bg_led      - middle colour of a block OFF, default = bg_colour
alarm_led    - middle colour of a block &amp;gt; ALARM,  default = alarm_colour

reflection parameters, not available for circular bars
reflection_alpha  - add a reflection effect (values from 0 to 1) default = 0 = no reflection
      other values = starting opacity
reflection_scale  - scale of the reflection (default = 1 = height of text)
reflection_length - length of reflection, define where the opacity will be set to zero
      values from 0 to 1, default =1
reflection   - position of reflection, relative to a vertical bar, default=&quot;b&quot;
      possibles values are : &quot;b&quot;,&quot;t&quot;,&quot;l&quot;,&quot;r&quot; for bottom, top, left, right
draw_me        - if set to false, text is not drawn (default = true or 1)
      it can be used with a conky string, if the string returns 1, the text is drawn :
      example : &quot;${if_empty ${wireless_essid wlan0}}${else}1$endif&quot;,

v1.0 (10 Feb. 2010) original release
v1.1 (13 Feb. 2010) numeric values can be passed instead conky stats with parameters name=&quot;&quot;, arg = numeric_value 
v1.2 (28 Feb. 2010) just renamed the widget to bargraph
v1.3 (03 Mar. 2010) added parameters radius &amp;amp; angle_bar to draw the bar in a circular way
v2.0 (12 Jul. 2010) rewrite script + add reflection effects and parameters are now set into tables
v2.1 (07 Jan. 2011) Add draw_me parameter and correct memory leaks, thanks to &quot;Creamy Goodness&quot;

--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation version 3 (GPLv3)
--     
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--     
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
--      MA 02110-1301, USA.  

]]

require &#39;cairo&#39;

----------------START OF PARAMETERS ----------
function conky_main_bars()
 local bars_settings={
          {-- single block bar, skew and with reflecting + gradient
   name=&quot;memperc&quot;,
   arg=&quot;&quot;,
   max=100,
   alarm=70,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=96,
   y=223,
   height=277,--,
   width=6,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
  { --[ Graph for Home ]--
   name=&quot;fs_used_perc&quot;,
   arg=&quot;/home&quot;,
   max=100,
   alarm=56,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=96,
   y=236,
   height=277,--,
   width=6,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
  { --[ Graph for Swap ]--
   name=&quot;swapperc&quot;,
   arg=&quot;&quot;,
   max=100,
   alarm=70,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=96,
   y=249,
   height=277,--,
   width=6,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
                { --[ Graph for hwmon temp 1 ]--
   name=&quot;hwmon 1 temp 1&quot;,
   arg=&quot;hwmon 1 temp 1&quot;,
   max=100,
   alarm=79,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=283,
   height=225,--,
   width=5,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
        { --[ Graph for hwmon temp 1 ]--
   name=&quot;hwmon 1 temp 2&quot;,
   arg=&quot;hwmon 1 temp 2&quot;,
   max=100,
   alarm=76,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=296,
   height=225,--,
   width=5,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
  { --[ Graph for hwmon temp 1 ]--
   name=&quot;hwmon 1 temp 3&quot;,
   arg=&quot;hwmon 1 temp 3&quot;,
   max=100,
   alarm=76,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=309,
   height=225,--,
   width=5,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
{ --[ Graph for hwmon temp 1 ]--
   name=&quot;hddtemp&quot;,
   arg=&quot;hddtemp&quot;,
   max=100,
   alarm=76,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0},
   fg_colour={0xffff00,0},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=322,
   height=225,--,
   width=5,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
  { --[ Graph for network ]--
   name=&quot;downspeedf&quot;,
   arg=&quot;ppp0&quot;,
   max=250,
   alarm=200,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0.07},
   fg_colour={0xffff00,0.07},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=527,
   height=228,--,
   width=6,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
  { --[ Graph for network ]--
   name=&quot;upspeedf&quot;,
   arg=&quot;ppp0&quot;,
   max=250,
   alarm=200,
   alarm_colour={0xFF0000,0.60},
   bg_colour={0x0000FF,0.07},
   fg_colour={0xffff00,0.07},
   bg_led={0x0000FF,0.5},
   fg_led={0xffff00,1},
   led_effect=&quot;r&quot;,
   blocks=1,--20,
   x=145,
   y=540,
   height=228,--,
   width=6,
   angle=90,
   led_effect=&quot;e&quot;,
   reflection_alpha=1,
   reflection=&quot;r&quot;,
   space=1,
   skew_x=0,
  },
    

   } 
-----------END OF PARAMETERS--------------


    
 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)    
 --prevent segmentation error when reading cpu state
    if tonumber(conky_parse(&#39;${updates}&#39;))&amp;gt;3 then
        for i in pairs(bars_settings) do
         
         draw_multi_bar_graph(bars_settings[i])
         
        end
    end
 cairo_destroy(cr)
 cairo_surface_destroy(cs)
 cr=nil

end



function draw_multi_bar_graph(t)
 cairo_save(cr)
 --check values
 if t.draw_me == true then t.draw_me = nil end
 if t.draw_me ~= nil and conky_parse(tostring(t.draw_me)) ~= &quot;1&quot; then return end 
 if t.name==nil and t.arg==nil then 
  print (&quot;No input values ... use parameters &#39;name&#39; with &#39;arg&#39; or only parameter &#39;arg&#39; &quot;) 
  return
 end
 if t.max==nil then
  print (&quot;No maximum value defined, use &#39;max&#39;&quot;)
  return
 end
 if t.name==nil then t.name=&quot;&quot; end
 if t.arg==nil then t.arg=&quot;&quot; end

 --set default values 
 if t.x == nil  then t.x = conky_window.width/2 end
 if t.y == nil  then t.y = conky_window.height/2 end
 if t.blocks == nil then t.blocks=10 end
 if t.height == nil then t.height=10 end
 if t.angle == nil  then t.angle=0 end
 t.angle = t.angle*math.pi/180
 --line cap style
 if t.cap==nil  then t.cap = &quot;b&quot; end
 local cap=&quot;b&quot;
 for i,v in ipairs({&quot;s&quot;,&quot;r&quot;,&quot;b&quot;}) do 
  if v==t.cap then cap=v end
 end
 local delta=0
 if t.cap==&quot;r&quot; or t.cap==&quot;s&quot; then delta = t.height end
 if cap==&quot;s&quot; then  cap = CAIRO_LINE_CAP_SQUARE
 elseif cap==&quot;r&quot; then
  cap = CAIRO_LINE_CAP_ROUND
 elseif cap==&quot;b&quot; then
  cap = CAIRO_LINE_CAP_BUTT
 end
 --end line cap style
 --if t.led_effect == nil then t.led_effect=&quot;r&quot; end
 if t.width == nil then t.width=20 end
 if t.space == nil then t.space=2 end
 if t.radius == nil then t.radius=0 end
 if t.angle_bar == nil then t.angle_bar=0 end
 t.angle_bar = t.angle_bar*math.pi/360 --halt angle
 
 --colours
 if t.bg_colour == nil  then t.bg_colour = {0x00FF00,0.5} end
 if #t.bg_colour~=2   then t.bg_colour = {0x00FF00,0.5} end
 if t.fg_colour == nil  then t.fg_colour = {0x00FF00,1} end
 if #t.fg_colour~=2   then t.fg_colour = {0x00FF00,1} end
 if t.alarm_colour == nil  then t.alarm_colour = t.fg_colour end
 if #t.alarm_colour~=2   then t.alarm_colour = t.fg_colour end

 if t.mid_colour ~= nil then 
  for i=1, #t.mid_colour do    
      if #t.mid_colour[i]~=3 then 
       print (&quot;error in mid_color table&quot;)
       t.mid_colour[i]={1,0xFFFFFF,1} 
      end
  end
    end
    
 if t.bg_led ~= nil and #t.bg_led~=2 then t.bg_led = t.bg_colour end
 if t.fg_led ~= nil and #t.fg_led~=2 then t.fg_led = t.fg_colour end
 if t.alarm_led~= nil and #t.alarm_led~=2 then t.alarm_led = t.fg_led end
 
 if t.led_effect~=nil then
  if t.bg_led == nil then t.bg_led = t.bg_colour end
  if t.fg_led == nil  then t.fg_led = t.fg_colour end
  if t.alarm_led == nil  then t.alarm_led = t.fg_led end
 end
 

 if t.alarm==nil then t.alarm = t.max end --0.8*t.max end
 if t.smooth == nil then t.smooth = false end

 if t.skew_x == nil then 
  t.skew_x=0 
 else
  t.skew_x = math.pi*t.skew_x/180 
 end
 if t.skew_y == nil then 
  t.skew_y=0
 else
  t.skew_y = math.pi*t.skew_y/180 
 end
 
 if t.reflection_alpha==nil then t.reflection_alpha=0 end
 if t.reflection_length==nil then t.reflection_length=1 end
 if t.reflection_scale==nil then t.reflection_scale=1 end
 
 --end of default values
 

  local function rgb_to_r_g_b(col_a)
  return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
 end
 
 
 --functions used to create patterns

 local function create_smooth_linear_gradient(x0,y0,x1,y1)
  local pat = cairo_pattern_create_linear (x0,y0,x1,y1)
  cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(t.fg_colour))
  cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(t.alarm_colour))
  if t.mid_colour ~=nil then
   for i=1, #t.mid_colour do
    cairo_pattern_add_color_stop_rgba (pat, t.mid_colour[i][1], rgb_to_r_g_b({t.mid_colour[i][2],t.mid_colour[i][3]}))
   end
  end
  return pat
 end

 local function create_smooth_radial_gradient(x0,y0,r0,x1,y1,r1)
  local pat =  cairo_pattern_create_radial (x0,y0,r0,x1,y1,r1)
  cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(t.fg_colour))
  cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(t.alarm_colour))
  if t.mid_colour ~=nil then
   for i=1, #t.mid_colour do
    cairo_pattern_add_color_stop_rgba (pat, t.mid_colour[i][1], rgb_to_r_g_b({t.mid_colour[i][2],t.mid_colour[i][3]}))
   end
  end
  return pat
 end
 
 local function create_led_linear_gradient(x0,y0,x1,y1,col_alp,col_led)
  local pat = cairo_pattern_create_linear (x0,y0,x1,y1) ---delta, 0,delta+ t.width,0)
  cairo_pattern_add_color_stop_rgba (pat, 0.0, rgb_to_r_g_b(col_alp))
  cairo_pattern_add_color_stop_rgba (pat, 0.5, rgb_to_r_g_b(col_led))
  cairo_pattern_add_color_stop_rgba (pat, 1.0, rgb_to_r_g_b(col_alp))
  return pat
 end

 local function create_led_radial_gradient(x0,y0,r0,x1,y1,r1,col_alp,col_led,mode)
  local pat = cairo_pattern_create_radial (x0,y0,r0,x1,y1,r1)
  if mode==3 then
   cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(col_alp))    
   cairo_pattern_add_color_stop_rgba (pat, 0.5, rgb_to_r_g_b(col_led))
   cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(col_alp))    
  else
   cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(col_led))
   cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(col_alp))    
  end
  return pat
 end






 local function draw_single_bar()
  --this fucntion is used for bars with a single block (blocks=1) but 
  --the drawing is cut in 3 blocks : value/alarm/background
  --not zvzimzblr for circular bar
  local function create_pattern(col_alp,col_led,bg)
   local pat
   
   if not t.smooth then
    if t.led_effect==&quot;e&quot; then
     pat = create_led_linear_gradient (-delta, 0,delta+ t.width,0,col_alp,col_led)
    elseif t.led_effect==&quot;a&quot; then
     pat = create_led_linear_gradient (t.width/2, 0,t.width/2,-t.height,col_alp,col_led)
    elseif  t.led_effect==&quot;r&quot; then
     pat = create_led_radial_gradient (t.width/2, -t.height/2, 0, t.width/2,-t.height/2,t.height/1.5,col_alp,col_led,2)
    else
     pat = cairo_pattern_create_rgba  (rgb_to_r_g_b(col_alp))
    end
   else
    if bg then
     pat = cairo_pattern_create_rgba  (rgb_to_r_g_b(t.bg_colour))
    else
     pat = create_smooth_linear_gradient(t.width/2, 0, t.width/2,-t.height)
    end
   end
   return pat
  end
  
  local y1=-t.height*pct/100
  local y2,y3
  if pct&amp;gt;(100*t.alarm/t.max) then 
   y1 = -t.height*t.alarm/100
   y2 = -t.height*pct/100
   if t.smooth then y1=y2 end
  end
  
  if t.angle_bar==0 then
  
   --block for fg value
   local pat = create_pattern(t.fg_colour,t.fg_led,false)
   cairo_set_source(cr,pat)
   cairo_rectangle(cr,0,0,t.width,y1)
   cairo_fill(cr)
   cairo_pattern_destroy(pat)
  
   -- block for alarm value   
   if not t.smooth and y2 ~=nil then 
    pat = create_pattern(t.alarm_colour,t.alarm_led,false)
    cairo_set_source(cr,pat)
    cairo_rectangle(cr,0,y1,t.width,y2-y1)
    cairo_fill(cr)
    y3=y2
    cairo_pattern_destroy(pat)
   else
    y2,y3=y1,y1
   end
   -- block for bg value
   cairo_rectangle(cr,0,y2,t.width,-t.height-y3)
   pat = create_pattern(t.bg_colour,t.bg_led,true)
   cairo_set_source(cr,pat)
   cairo_pattern_destroy(pat)
   cairo_fill(cr)
  end  
 end  --end single bar
 





 local function draw_multi_bar()
  --function used for bars with 2 or more blocks
  for pt = 1,t.blocks do 
   --set block y
   local y1 = -(pt-1)*(t.height+t.space)
   local light_on=false
   
   --set colors
   local col_alp = t.bg_colour
   local col_led = t.bg_led
   if pct&amp;gt;=(100/t.blocks) or pct&amp;gt;0 then --ligth on or not the block
    if pct&amp;gt;=(pcb*(pt-1))  then 
     light_on = true
     col_alp = t.fg_colour
     col_led = t.fg_led
     if pct&amp;gt;=(100*t.alarm/t.max) and (pcb*pt)&amp;gt;(100*t.alarm/t.max) then 
      col_alp = t.alarm_colour 
      col_led = t.alarm_led 
     end
    end
   end

   --set colors
   --have to try to create gradients outside the loop ?
   local pat 
   
   if not t.smooth then
    if t.angle_bar==0 then
     if t.led_effect==&quot;e&quot; then
      pat = create_led_linear_gradient (-delta, 0,delta+ t.width,0,col_alp,col_led)
     elseif t.led_effect==&quot;a&quot; then
      pat = create_led_linear_gradient (t.width/2, -t.height/2+y1,t.width/2,0+t.height/2+y1,col_alp,col_led)     
     elseif  t.led_effect==&quot;r&quot; then
      pat = create_led_radial_gradient (t.width/2, y1, 0, t.width/2,y1,t.width/1.5,col_alp,col_led,2) 
     else
      pat = cairo_pattern_create_rgba  (rgb_to_r_g_b(col_alp))
     end
    else
      if t.led_effect==&quot;a&quot;  then
       pat = create_led_radial_gradient (0, 0, t.radius+(t.height+t.space)*(pt-1),
               0, 0, t.radius+(t.height+t.space)*(pt),       
            col_alp,col_led,3) 
     else
      pat = cairo_pattern_create_rgba  (rgb_to_r_g_b(col_alp))     
     end
     
    end
   else
    
    if light_on then
     if t.angle_bar==0 then
      pat = create_smooth_linear_gradient(t.width/2, t.height/2, t.width/2,-(t.blocks-0.5)*(t.height+t.space))
     else
      pat = create_smooth_radial_gradient(0, 0, (t.height+t.space),  0,0,(t.blocks+1)*(t.height+t.space),2)
     end
    else  
     pat = cairo_pattern_create_rgba  (rgb_to_r_g_b(t.bg_colour))
    end
   end
   cairo_set_source (cr, pat)
   cairo_pattern_destroy(pat)

   --draw a block
   if t.angle_bar==0 then
    cairo_move_to(cr,0,y1)
    cairo_line_to(cr,t.width,y1)
   else  
    cairo_arc( cr,0,0,
     t.radius+(t.height+t.space)*(pt)-t.height/2,
      -t.angle_bar -math.pi/2 ,
      t.angle_bar -math.pi/2)
   end
   cairo_stroke(cr)
  end 
 end
 
 
 
 
 local function setup_bar_graph()
  --function used to retrieve the value to display and to set the cairo structure
  if t.blocks ~=1 then t.y=t.y-t.height/2 end
  
  local value = 0
  if t.name ~=&quot;&quot; then
   value = tonumber(conky_parse(string.format(&#39;${%s %s}&#39;, t.name, t.arg)))
   --$to_bytes doesn&#39;t work when value has a decimal point,
   --https://garage.maemo.org/plugins/ggit/browse.php/?p=monky;a=commitdiff;h=174c256c81a027a2ea406f5f37dc036fac0a524b;hp=d75e2db5ed3fc788fb8514121f67316ac3e5f29f
   --http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=3000865&amp;amp;group_id=143975&amp;amp;atid=757310
   --conky bug?
   --value = (conky_parse(string.format(&#39;${%s %s}&#39;, t.name, t.arg)))
   --if string.match(value,&quot;%w&quot;) then
   -- value = conky_parse(string.format(&#39;${to_bytes %s}&#39;,value))
   --end
  else
   value = tonumber(t.arg)
  end

  if value==nil then value =0 end
  
  pct = 100*value/t.max
  pcb = 100/t.blocks
  
  cairo_set_line_width (cr, t.height)
  cairo_set_line_cap  (cr, cap)
  cairo_translate(cr,t.x,t.y)
  cairo_rotate(cr,t.angle)

  local matrix0 = cairo_matrix_t:create()
  tolua.takeownership(matrix0)
  cairo_matrix_init (matrix0, 1,t.skew_y,t.skew_x,1,0,0)
  cairo_transform(cr,matrix0)

 
  
  --call the drawing function for blocks
  if t.blocks==1 and t.angle_bar==0 then
   draw_single_bar()
   if t.reflection==&quot;t&quot; or t.reflection==&quot;b&quot; then cairo_translate(cr,0,-t.height) end
  else
   draw_multi_bar()
  end

  --dot for reminder
  --[[
  if t.blocks ~=1 then
   cairo_set_source_rgba(cr,1,0,0,1)
   cairo_arc(cr,0,t.height/2,3,0,2*math.pi)
   cairo_fill(cr)
  else
   cairo_set_source_rgba(cr,1,0,0,1)
   cairo_arc(cr,0,0,3,0,2*math.pi)
   cairo_fill(cr)
  end]]
  
  --call the drawing function for reflection and prepare the mask used  
  if t.reflection_alpha&amp;gt;0 and t.angle_bar==0 then
   local pat2
   local matrix1 = cairo_matrix_t:create()
   tolua.takeownership(matrix1)
   if t.angle_bar==0 then
    pts={-delta/2,(t.height+t.space)/2,t.width+delta,-(t.height+t.space)*(t.blocks)}
    if t.reflection==&quot;t&quot; then
     cairo_matrix_init (matrix1,1,0,0,-t.reflection_scale,0,-(t.height+t.space)*(t.blocks-0.5)*2*(t.reflection_scale+1)/2)
     pat2 = cairo_pattern_create_linear (t.width/2,-(t.height+t.space)*(t.blocks),t.width/2,(t.height+t.space)/2)
    elseif t.reflection==&quot;r&quot; then
     cairo_matrix_init (matrix1,-t.reflection_scale,0,0,1,delta+2*t.width,0)
     pat2 = cairo_pattern_create_linear (delta/2+t.width,0,-delta/2,0)
    elseif t.reflection==&quot;l&quot; then
     cairo_matrix_init (matrix1,-t.reflection_scale,0,0,1,-delta,0)
     pat2 = cairo_pattern_create_linear (-delta/2,0,delta/2+t.width,-0)
    else --bottom
     cairo_matrix_init (matrix1,1,0,0,-1*t.reflection_scale,0,(t.height+t.space)*(t.reflection_scale+1)/2)
     pat2 = cairo_pattern_create_linear (t.width/2,(t.height+t.space)/2,t.width/2,-(t.height+t.space)*(t.blocks))
    end
   end
   cairo_transform(cr,matrix1)

   if t.blocks==1 and t.angle_bar==0 then
    draw_single_bar()
    cairo_translate(cr,0,-t.height/2) 
   else
    draw_multi_bar()
   end
   
   
   cairo_set_line_width(cr,0.01)
   cairo_pattern_add_color_stop_rgba (pat2, 0,0,0,0,1-t.reflection_alpha)
   cairo_pattern_add_color_stop_rgba (pat2, t.reflection_length,0,0,0,1)
   if t.angle_bar==0 then
    cairo_rectangle(cr,pts[1],pts[2],pts[3],pts[4])
   end
   cairo_clip_preserve(cr)
   cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)
   cairo_stroke(cr)
   cairo_mask(cr,pat2)
   cairo_pattern_destroy(pat2)
   cairo_set_operator(cr,CAIRO_OPERATOR_OVER)
   
  end --reflection
  pct,pcb=nil
 end --setup_bar_graph()
 
 --start here !
 setup_bar_graph()
 cairo_restore(cr)
end
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
The ring lua&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border-color: rgb(216, 216, 216); border-style: dashed; border-width: 1px; margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--[[ RINGS with SECTORS widget
 v1.1 by wlourf (07 Jan. 2011)
 this widget draws a ring with differents effects 
 http://u-scripts.blogspot.com/2010/08/rings-sectors-widgets.html
 
To call the script in a conky, use, before TEXT
 lua_load /path/to/the/script/rings.lua
 lua_draw_hook_pre main_rings
and add one line (blank or not) after TEXT


Parameters are :
3 parameters are mandatory
name  - the name of the conky variable to display,
     for example for {$cpu cpu0}, just write name=&quot;cpu&quot;
arg   - the argument of the above variable,
     for example for {$cpu cpu0}, just write arg=&quot;cpu0&quot;
       arg can be a numerical value if name=&quot;&quot;
max   - the maximum value the above variable can reach,
     for example for {$cpu cpu0}, just write max=100
 
Optional parameters:
xc,yc  - coordinates of the center of the ring,
     default = middle of the conky window
radius  - external radius of the ring, in pixels,
     default = quarter of the width of the conky window
thickness - thickness of the ring, in pixels, default = 10 pixels
start_angle - starting angle of the ring, in degrees, value can be negative,
     default = 0 degree
end_angle - ending angle of the ring, in degrees,
     value must be greater than start_angle, default = 360 degrees
sectors  - number of sectors in the ring, default = 10
gap_sectors - gap between two sectors, in pixels, default = 1 pixel
cap   - the way to close a sector, available values are
    &quot;p&quot; for parallel , default value 
    &quot;r&quot; for radial (follow the radius)
inverse_arc - if set to true, arc will be anticlockwise, default=false
border_size - size of the border, in pixels, default = 0 pixel i.e. no border
fill_sector - if set to true, each sector will be completely filled,
     default=false, this parameter is inoperate if sectors=1
background - if set to false, background will not be drawn, default=true
foreground - if set to false, foreground will not be drawn, default=true

Colours tables below are defined into braces :
{position in the gradient (0 to 1), colour in hexadecimal, alpha (0 to 1)}
example for a single colour table : 
{{0,0xFFAA00,1}} position parameter doesn&#39;t matter
example for a two-colours table : 
{{0,0xFFAA00,1},{1,0x00AA00,1}} or {{0.5,0xFFAA00,1},{1,0x00AA00,1}}
example for a three-colours table : 
{{0,0xFFAA00,1},{0.5,0xFF0000,1},{1,0x00AA00,1}}

bg_colour1 - colour table for background,
     default = {{0,0x00ffff,0.1},{0.5,0x00FFFF,0.5},{1,0x00FFFF,0.1}}
fg_colour1 - colour table for foreground,
     default = {{0,0x00FF00,0.1},{0.5,0x00FF00,1},{1,0x00FF00,0.1}}
bd_colour1 - colour table for border,
     default = {{0,0xFFFF00,0.5},{0.5,0xFFFF00,1},{1,0xFFFF00,0.5}}     

Seconds tables for radials gradients :
bg_colour2 - second colour table for background, default = no second colour
fg_colour2 - second colour table for foreground, default = no second colour
bd_colour2 - second colour table for border, default = no second colour

draw_me     - if set to false, text is not drawn (default = true or 1)
              it can be used with a conky string, if the string returns 1, the text is drawn :
              example : &quot;${if_empty ${wireless_essid wlan0}}${else}1$endif&quot;,

v1.0 (08 Aug. 2010) original release
v1.1 (07 Jan. 2011) Add draw_me parameter and correct memory leaks, thanks to &quot;Creamy Goodness&quot;
                    text is parsed inside the function, not in the array of settings

--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation version 3 (GPLv3)
--     
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--     
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
--      MA 02110-1301, USA.  

]]


require &#39;cairo&#39;

function conky_main_rings()
-- START PARAMETERS HERE
local rings_settings={
 --line1
 {
 name=&quot;cpu&quot;,
 arg=&quot;cpu1&quot;,
 max=100,
 xc=120,
 yc=205,
 radius=30,
 thickness=15,
 start_angle=-120,
 sectors=1,
 end_angle=120,
 bg_colour1={{0,0x0000FF,0.1},{0.5,0x0000FF,0.5},{1,0x0000FF,0.1}},
 fg_colour1={{0,0xFFFF00,0.1},{0.5,0xFFFF00,1.0},{1,0xFFFF00,0.1}},
 fg_colour2={{0,0xFF0000,0.1},{0.5,0xFF0000,1.0},{1,0xFF0000,0.1}},
 },
 {
 name=&quot;cpu&quot;,
 arg=&quot;cpu2&quot;,
 max=100,
 xc=185,
 yc=205,
 radius=30,
 thickness=15,
 start_angle=-120,
 sectors=1,
 end_angle=120,
 bg_colour1={{0,0x0000FF,0.1},{0.5,0x0000FF,0.5},{1,0x0000FF,0.1}},
 fg_colour1={{0,0xFFFF00,0.1},{0.5,0xFFFF00,1.0},{1,0xFFFF00,0.1}},
 fg_colour2={{0,0xFF0000,0.1},{0.5,0xFF0000,1.0},{1,0xFF0000,0.1}},
 },
 {
 name=&quot;cpu&quot;,
 arg=&quot;cpu3&quot;,
 max=100,
 xc=253,
 yc=205,
 radius=30,
 thickness=15,
 start_angle=-120,
 sectors=1,
 end_angle=120,
 bg_colour1={{0,0x0000FF,0.1},{0.5,0x0000FF,0.5},{1,0x0000FF,0.1}},
 fg_colour1={{0,0xFFFF00,0.1},{0.5,0xFFFF00,1.0},{1,0xFFFF00,0.1}},
 fg_colour2={{0,0xFF0000,0.1},{0.5,0xFF0000,1.0},{1,0xFF0000,0.1}},
 },
 {
 name=&quot;cpu&quot;,
 arg=&quot;cpu4&quot;,
 max=100,
 xc=320,
 yc=205,
 radius=30,
 thickness=15,
 start_angle=-120,
 sectors=1,
 end_angle=120,
 bg_colour1={{0,0x0000FF,0.1},{0.5,0x0000FF,0.5},{1,0x0000FF,0.1}},
 fg_colour1={{0,0xFFFF00,0.1},{0.5,0xFFFF00,1.0},{1,0xFFFF00,0.1}},
 fg_colour2={{0,0xFF0000,0.1},{0.5,0xFF0000,1.0},{1,0xFF0000,0.1}},
 },
 
  
}
--END OF PARAMETERS HERE

--main function

 --if conky_window==nil then return end

 local cs=cairo_xlib_surface_create(conky_window.display,
  conky_window.drawable, 
  conky_window.visual, conky_window.width, conky_window.height)
 local cr=cairo_create(cs)

 if tonumber(conky_parse(&#39;${updates}&#39;))&amp;gt;3 then
  for i in pairs(rings_settings) do
   draw_ring(cr,rings_settings[i])
  end
 end

 cairo_destroy(cr)

end




function draw_ring(cr, t)

 local function rgba_to_r_g_b_a(tcolour)
  local colour,alpha=tcolour[2],tcolour[3]
  return ((colour / 0x10000) % 0x100) / 255., 
   ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
 end
   
   
 local function calc_delta(tcol1,tcol2)
  --calculate deltas P R G B A to table_colour 1

  for x = 1, #tcol1 do
   tcol1[x].dA = 0
   tcol1[x].dP = 0
    tcol1[x].dR = 0
   tcol1[x].dG = 0
   tcol1[x].dB = 0
   if tcol2~=nil and #tcol1 == #tcol2 then
    local r1,g1,b1,a1 = rgba_to_r_g_b_a(tcol1[x])
    local r2,g2,b2,a2 = rgba_to_r_g_b_a(tcol2[x])
    tcol1[x].dP = (tcol2[x][1]-tcol1[x][1])/t.sectors
     tcol1[x].dR = (r2-r1)/t.sectors
    tcol1[x].dG = (g2-g1)/t.sectors
    tcol1[x].dB = (b2-b1)/t.sectors
    tcol1[x].dA = (a2-a1)/t.sectors  
    
   end
  end
  
  return tcol1
 end

 --check values
 local function setup(t)
  if t.name==nil and t.arg==nil then 
   print (&quot;No input values ... use parameters &#39;name&#39;&quot; +
    &quot; with &#39;arg&#39; or only parameter &#39;arg&#39; &quot;) 
   return
  end

  if t.max==nil then
   print (&quot;No maximum value defined, use &#39;max&#39;&quot;)
   print (&quot;for name=&quot; .. t.name)
   print (&quot;with arg=&quot; .. t.arg)
   return
  end
  if t.name==nil then t.name=&quot;&quot; end
  if t.arg==nil then t.arg=&quot;&quot; end

  if t.xc==nil then t.xc=conky_window.width/2 end
  if t.yc==nil then t.yc=conky_window.height/2 end
  if t.thickness ==nil then t.thickness = 10 end
  if t.radius ==nil then t.radius =conky_window.width/4 end
  if t.start_angle==nil then t.start_angle =0 end
  if t.end_angle==nil then t.end_angle=360 end
  if t.bg_colour1==nil then 
   t.bg_colour1={{0,0x00ffff,0.1},{0.5,0x00FFFF,0.5},{1,0x00FFFF,0.1}}
  end
  if t.fg_colour1==nil then
   t.fg_colour1={{0,0x00FF00,0.1},{0.5,0x00FF00,1},{1,0x00FF00,0.1}}
  end
  if t.bd_colour1==nil then
   t.bd_colour1={{0,0xFFFF00,0.5},{0.5,0xFFFF00,1},{1,0xFFFF00,0.5}}
  end
  if t.sectors==nil then t.sectors=10 end
  if t.gap_sectors==nil then t.gap_sectors=1 end 
  if t.fill_sector==nil then t.fill_sector=false end
  if t.sectors==1 then t.fill_sector=false end
  if t.border_size==nil then t.border_size=0 end
  if t.cap==nil then t.cap=&quot;p&quot; end
  --some checks
  if t.thickness&amp;gt;t.radius then t.thickness=t.radius*0.1 end
  t.int_radius = t.radius-t.thickness

  --check colors tables 
  for i=1, #t.bg_colour1 do 
   if #t.bg_colour1[i]~=3 then t.bg_colour1[i]={1,0xFFFFFF,0.5} end
  end
  for i=1, #t.fg_colour1 do 
   if #t.fg_colour1[i]~=3 then t.fg_colour1[i]={1,0xFF0000,1} end
  end
  for i=1, #t.bd_colour1 do 
   if #t.bd_colour1[i]~=3 then t.bd_colour1[i]={1,0xFFFF00,1} end
  end
 
  if t.bg_colour2~=nil then
   for i=1, #t.bg_colour2 do 
    if #t.bg_colour2[i]~=3 then t.bg_colour2[i]={1,0xFFFFFF,0.5} end
   end
  end
  if t.fg_colour2~=nil then
   for i=1, #t.fg_colour2 do 
    if #t.fg_colour2[i]~=3 then t.fg_colour2[i]={1,0xFF0000,1} end
   end
  end
  if t.bd_colour2~=nil then
   for i=1, #t.bd_colour2 do 
    if #t.bd_colour2[i]~=3 then t.bd_colour2[i]={1,0xFFFF00,1} end
   end
  end  
  
  if t.start_angle&amp;gt;=t.end_angle then
   local tmp_angle=t.end_angle
   t.end_angle= t.start_angle
   t.start_angle = tmp_angle
   -- print (&quot;inversed angles&quot;)
   if t.end_angle-t.start_angle&amp;gt;360 and t.start_angle&amp;gt;0 then
    t.end_angle=360+t.start_angle
    print (&quot;reduce angles&quot;)
   end
  
   if t.end_angle+t.start_angle&amp;gt;360 and t.start_angle&amp;lt;=0 then
    t.end_angle=360+t.start_angle
    print (&quot;reduce angles&quot;)
   end
  
   if t.int_radius&amp;lt;0 then t.int_radius =0 end
   if t.int_radius&amp;gt;t.radius then
    local tmp_radius=t.radius
    t.radius=t.int_radius
    t.int_radius=tmp_radius
    print (&quot;inversed radius&quot;)
   end
   if t.int_radius==t.radius then
    t.int_radius=0
    print (&quot;int radius set to 0&quot;)
   end 
  end
  
  t.fg_colour1 = calc_delta(t.fg_colour1,t.fg_colour2)
  t.bg_colour1 = calc_delta(t.bg_colour1,t.bg_colour2)
  t.bd_colour1 = calc_delta(t.bd_colour1,t.bd_colour2)
 end
 
 if t.draw_me == true then t.draw_me = nil end
 if t.draw_me ~= nil and conky_parse(tostring(t.draw_me)) ~= &quot;1&quot; then return end 
 --initialize table
 setup(t)
 
 --initialize cairo context
 cairo_save(cr)
 cairo_translate(cr,t.xc,t.yc)
 cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND)
 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND)

 --get value
 local value = 0
 if t.name ~=&quot;&quot; then
  value = tonumber(conky_parse(string.format(&#39;${%s %s}&#39;, t.name, t.arg)))
 else
  value = tonumber(t.arg)
 end
 if value==nil then value =0 end

 --initialize sectors
 --angle of a sector :
 local angleA = ((t.end_angle-t.start_angle)/t.sectors)*math.pi/180
 --value of a sector : 
 local valueA = t.max/t.sectors
 --first angle of a sector : 
 local lastAngle = t.start_angle*math.pi/180


 local function draw_sector(type_arc,angle0,angle,valpc, idx)
  
  --this function draws a portion of arc
   --type of arc, angle0 = strating angle, angle= angle of sector,
   --valpc = percentage inside the sector, idx = sctor number #
   local tcolor
   if type_arc==&quot;bg&quot; then   --background
    if valpc==1 then return end
    tcolor=t.bg_colour1
   elseif type_arc==&quot;fg&quot; then --foreground
    if valpc==0 then return end
    tcolor=t.fg_colour1
   elseif type_arc==&quot;bd&quot; then --border
    tcolor=t.bd_colour1
   end 

  --angles equivalents to gap_sector
  local ext_delta=math.atan(t.gap_sectors/(2*t.radius))
  local int_delta=math.atan(t.gap_sectors/(2*t.int_radius))

  --angles of arcs
  local ext_angle=(angle-ext_delta*2)*valpc
  local int_angle=(angle-int_delta*2)*valpc

  --define colours to use for this sector
  if #tcolor==1 then 
   --plain color
   local vR,vG,vB,vA = rgba_to_r_g_b_a(tcolor[1])
   cairo_set_source_rgba(cr,vR+tcolor[1].dR*idx,
         vG+tcolor[1].dG*idx,
         vB+tcolor[1].dB*idx,
         vA+tcolor[1].dA*idx )
  else
   --radient color
   local pat=cairo_pattern_create_radial(0,0,t.int_radius,0,0,t.radius)
   for i=1, #tcolor do
    local vP,vR,vG,vB,vA = tcolor[i][1], rgba_to_r_g_b_a(tcolor[i])
    cairo_pattern_add_color_stop_rgba (pat, 
         vP+tcolor[i].dP*idx,
         vR+tcolor[i].dR*idx,
         vG+tcolor[i].dG*idx,
         vB+tcolor[i].dB*idx,
         vA+tcolor[i].dA*idx )
   end
   cairo_set_source (cr, pat)
   cairo_pattern_destroy(pat)
  end

  --start drawing
   cairo_save(cr)
  --x axis is parrallel to start of sector
  cairo_rotate(cr,angle0-math.pi/2)

  local ri,re = t.int_radius ,t.radius

  --point A 
  local angle_a
 
  if t.cap == &quot;p&quot; then 
   angle_a = int_delta
   if t.inverse_arc and type_arc ~=&quot;bg&quot; then
    angle_a = angle-int_angle-int_delta
   end
   if not(t.inverse_arc) and type_arc ==&quot;bg&quot; then
    angle_a = int_delta+int_angle
   end
  else --t.cap==&quot;r&quot;
   angle_a = ext_delta
   if t.inverse_arc and type_arc~=&quot;bg&quot; then
    angle_a = angle-ext_angle-ext_delta
   end
   if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
    angle_a = ext_delta+ext_angle
   end
  end
  local ax,ay = ri*math.cos(angle_a),ri*math.sin(angle_a)


  --point B
  local angle_b = ext_delta
  if t.cap == &quot;p&quot; then 
   if t.inverse_arc and type_arc ~=&quot;bg&quot; then
    angle_b = angle-ext_angle-ext_delta
   end
   if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
    angle_b = ext_delta+ext_angle
   end
  else
   if t.inverse_arc and type_arc ~=&quot;bg&quot; then
    angle_b = angle-ext_angle-ext_delta
   end
   if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
    angle_b = ext_delta+ext_angle
   end
  end
  local bx,by = re*math.cos(angle_b),re*math.sin(angle_b)

  -- EXTERNAL ARC B --&amp;gt; C
  local b0,b1
  if t.inverse_arc then
   if type_arc==&quot;bg&quot; then
    b0,b1= ext_delta, angle-ext_delta-ext_angle
   else
    b0,b1= angle-ext_angle-ext_delta, angle-ext_delta
   end
  else
   if type_arc==&quot;bg&quot; then
    b0,b1= ext_delta+ext_angle, angle-ext_delta
   else
    b0,b1= ext_delta, ext_angle+ext_delta
   end
  end
  
  ---POINT D
  local angle_c, angle_d
  if t.cap == &quot;p&quot; then 
   angle_d = angle-int_delta
   if t.inverse_arc and type_arc==&quot;bg&quot; then
    angle_d = angle-int_delta-int_angle 
   end
   if not(t.inverse_arc) and type_arc~=&quot;bg&quot; then
    angle_d=int_delta+int_angle
   end
  else
   angle_d = angle-ext_delta
   if t.inverse_arc and type_arc==&quot;bg&quot; then
    angle_d =angle-ext_delta-ext_angle
   end
   if not(t.inverse_arc) and type_arc~=&quot;bg&quot; then
    angle_d = ext_angle+ext_delta
   end
  end
  local dx,dy = ri*math.cos(angle_d),ri*math.sin(angle_d)
  
  -- INTERNAL ARC D --&amp;gt; A
  local d0,d1
  if t.cap==&quot;p&quot; then 
   if t.inverse_arc then 
    if type_arc==&quot;bg&quot; then
     d0,d1= angle-int_delta-int_angle,int_delta
    else
     d0,d1= angle-int_delta, angle- int_angle-int_delta
    end
   else
    if type_arc==&quot;bg&quot; then
     d0,d1= angle-int_delta, int_delta+int_angle
    else
     d0,d1= int_delta+int_angle, int_delta
    end
   end
  else
   if t.inverse_arc then 
    if type_arc==&quot;bg&quot; then 
     d0,d1= angle-ext_delta-ext_angle,ext_delta
    else
     d0,d1= angle-ext_delta, angle- ext_angle-ext_delta
    end
   else
    if type_arc==&quot;bg&quot; then 
     d0,d1= angle-ext_delta,ext_delta+ext_angle
    else 
     d0,d1= ext_angle+ext_delta, ext_delta
    end
   end   
  end
   
  --draw sector
  cairo_move_to(cr,ax,ay)
  cairo_line_to(cr,bx,by)
  cairo_arc(cr,0,0,re,b0,b1)
  cairo_line_to(cr,dx,dy) 
  cairo_arc_negative(cr,0,0,ri,d0,d1)
   cairo_close_path (cr);

  --stroke or fill sector
   if type_arc==&quot;bd&quot; then
    cairo_set_line_width(cr,t.border_size)
    cairo_stroke(cr)
   else
    cairo_fill(cr)
   end

   cairo_restore(cr)

  end
 --draw sectors
 local n0,n1,n2 = 1,t.sectors,1
 if t.inverse_arc then n0,n1,n2 = t.sectors,1,-1 end
 local index = 0
 for i = n0,n1,n2 do 
  index = index +1
  local valueZ=1
  local cstA, cstB = (i-1),i
  if t.inverse_arc then cstA,cstB = (t.sectors-i), (t.sectors-i+1) end
  
  if value&amp;gt;valueA *cstA and value&amp;lt;valueA*cstB then
   if not t.fill_sector then
    valueZ = (value-valueA*cstA)/valueA
   end
  else
   if value&amp;lt;valueA*cstB then valueZ=0 end
  end
  
  local start_angle= lastAngle+(i-1)*angleA
  if t.foreground ~= false then 
   draw_sector(&quot;fg&quot;,start_angle,angleA,valueZ, index)
  end
  if t.background ~= false then 
   draw_sector(&quot;bg&quot;,start_angle,angleA,valueZ, i)
  end
  if t.border_size&amp;gt;0 then draw_sector(&quot;bd&quot;,start_angle,angleA,1, i) end
 end

 cairo_restore(cr)
end


--[[END OF RING-SECTORS WIDGET]]
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&amp;nbsp;the background (or choose your own)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQLnD0EGWD0pvnAyFVTHDyZiDgAp9zv4fVOXJR_enzBI-leutRj9KVrgBmVYnq1qW1PAph930TxF4OqPAC01n_Dtrfjf3yTAuXHZfGVDmTlC_Y_zff-AZwp1OaQGbowsmnWlQ5ibmFWo7P/s1600/base.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQLnD0EGWD0pvnAyFVTHDyZiDgAp9zv4fVOXJR_enzBI-leutRj9KVrgBmVYnq1qW1PAph930TxF4OqPAC01n_Dtrfjf3yTAuXHZfGVDmTlC_Y_zff-AZwp1OaQGbowsmnWlQ5ibmFWo7P/s1600/base.png&quot; height=&quot;81&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
the icons..&lt;br /&gt;
&lt;br /&gt;
http://www.4shared.com/zip/kZ6isXjkce/morning_light_0_2_by_inyourfac.html&lt;br /&gt;
&lt;br /&gt;
you must select what you want to use..&lt;br /&gt;
&lt;br /&gt;
the weather file..&lt;br /&gt;
&lt;br /&gt;
http://bit.ly/1b1_12-2-14 &lt;br /&gt;
&lt;br /&gt;
that&#39;s all, if i miss anything let me know.&lt;br /&gt;
&lt;br /&gt;
Enjoy&lt;br /&gt;
&lt;br /&gt;
the credit goes to:&lt;br /&gt;
weather conky by TeoBigusGeekus,&lt;br /&gt;
Conky jed,&lt;br /&gt;
Morning_light_0_2_by_inyourface09,&lt;br /&gt;
Bargraph_widget_for_Conky_3_by_wlourf, rings_and_sectors_conky_1_1_by_wlourf,&lt;br /&gt;
and all that i forgot, you&#39;re the great... i&#39;m the copy paster....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/4728603755150155739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2014/08/latest-conky-lua-rings-and-weather.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/4728603755150155739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/4728603755150155739'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2014/08/latest-conky-lua-rings-and-weather.html' title='Latest conky lua, rings and weather'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTzu_1SAkiK6SzIy5tjUsTpsJl9YG3tEAAPbwqX5YE-ZJiMJQv2lhXNaUavYQnSAbKA2rua5JlvC-T2uRl1SY8gvfPV6a5oWtgcmL-MlE8ldfZetXMlnt-mZ6Fn7W0OQW2GcrSzECb3vs5/s72-c/desktop+1_007.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-1483291105554950356</id><published>2014-01-10T05:53:00.000-07:00</published><updated>2014-06-24T02:06:45.056-07:00</updated><title type='text'>Latest conky with lua</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxIblQLdoDmd4_9cMro1BwzVgdh_jStfB-toUstG5F8fuWWC9slYqQqGyRJPsyK8PzBoEyEMQwIG_ZgFnZzWxZ7IQC2e_1BiuqsTxwhSObW9c-aqA7fzxBqb6ZgkzZVSwekUcgYm7UIXP8/s1600/Screenshot+2014-01-04+20:04:49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxIblQLdoDmd4_9cMro1BwzVgdh_jStfB-toUstG5F8fuWWC9slYqQqGyRJPsyK8PzBoEyEMQwIG_ZgFnZzWxZ7IQC2e_1BiuqsTxwhSObW9c-aqA7fzxBqb6ZgkzZVSwekUcgYm7UIXP8/s1600/Screenshot+2014-01-04+20:04:49.png&quot; height=&quot;356&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the .conkyrc &lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border-color: rgb(216, 216, 216); border-style: dashed; border-width: 1px; margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;background yes
use_xft yes
xftfont Sans:bold:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 290 750
maximum_size 290 760
maximum_width 290
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_left
gap_x 5
gap_y -30
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
lua_load /home/{link to your file}/bargraph_small.lua
lua_draw_hook_post main_bars
#
#${image ~/.conky/.images/base.png -p -10,40 -s 383x195}
#
TEXT
${goto
 32}${font openlogos:size=80}${color red}v${font}${voffset -65}${goto 
170}${font Ubuntu:Bold:size=25}${color red}${pre_exec cat /etc/*release |
 grep &#39;RELEASE&#39; | awk -F&#39;=&#39; &#39;{print $2}&#39;}${color}${font}

${font sans-serif:bold:size=8}${color yellow}SYSTEM ${hr 2}$color
${font OpenLogos:size=12}${color red}t${color white}${font sans-serif:bold:size=8}${sysname} ${kernel}:$alignr$nodename
${font
 OpenLogos:size=12}${color red}Z${color white}${font 
sans-serif:bold:size=8}4x Intel(R) Core(TM) i5-2410M $alignr${freq_g 
cpu0}Ghz
${font StyleBats:size=12}${color red}q${color white}${font sans-serif:bold:size=8}Uptime:$alignr$uptime
${font Poky:size=12}${color red}y${color white}${font sans-serif:bold:size=8}File System: $alignr${fs_type}
#
${font sans-serif:bold:size=8}${color yellow}DATE ${hr 2}
${goto 30}${font RadioSpace:size=28}${time %I:%M:%S}${goto 200}${time %p}${font}
${alignc}${font sans-serif:bold:size=8}${Time %A %m/%d/%Y}$color
#
${font sans-serif:bold:size=8}${color yellow}PROCESSORS ${hr 2}$color
${voffset
 2}${font StyleBats:bold:size=9.9}${color red}k${font}${color}${font 
sans-serif:bold:size=8} CPU1${goto 57}: ${cpu cpu1}% 
${voffset 
2}${font StyleBats:bold:size=9.9}${color red}k${font}${color}${font 
sans-serif:bold:size=8} CPU2${goto 57}: ${cpu cpu2}%
${voffset 
2}${font StyleBats:bold:size=9.9}${color red}k${font}${color}${font 
sans-serif:bold:size=8} CPU3${goto 57}: ${cpu cpu3}%
${voffset 
2}${font StyleBats:bold:size=9.9}${color red}k${font}${color}${font 
sans-serif:bold:size=8} CPU4${goto 57}: ${cpu cpu4}%
${voffset 
2}${font StyleBats:size=10}${color red}l${color}${font 
sans-serif:bold:size=8} RAM${goto 57}: $memperc% ${goto 190}$mem / 
$alignr$memmax 
${voffset 2}${font StyleBats:size=9.9}${color 
red}x${font}${color}${font sans-serif:bold:size=8} DISK${goto 57}: 
${fs_used_perc /}%${goto 190}${fs_used /} / $alignr${fs_size /} 
${voffset
 2}${font StyleBats:size=9.9}${color red}x${font}${color}${font 
sans-serif:bold:size=8} SWAP${goto 57}: ${swapperc}% ${goto 190}${swap} 
${goto 240}/ $alignr${swapmax}&amp;nbsp; 
#
${voffset 3}${font sans-serif:bold:size=8}${color yellow}TEMPERATURE ${voffset 2}${hr 2}$color
${voffset
 0}${goto 8}${font Weather:size=14}${color red}y${font}$color${font 
sans-serif:bold:size=8} CORE0${goto 57}: ${hwmon 1 temp 1}${iconv_start 
UTF-8 ISO_8859-1}°${iconv_stop}C
${voffset 0}${goto 8}${font 
Weather:size=14}${color red}y${font}$color${font sans-serif:bold:size=8}
 CORE1${goto 57}: ${hwmon 2 temp 1}${iconv_start UTF-8 
ISO_8859-1}°${iconv_stop}C
${voffset 0}${goto 8}${font 
Weather:size=14}${color red}y${font}$color${font sans-serif:bold:size=8}
 PCI${goto 57}: ${hwmon 1 temp 2}${iconv_start UTF-8 
ISO_8859-1}°${iconv_stop}C
${voffset 0}${goto 8}${font 
Weather:size=14}${color red}y${font}$color${font sans-serif:bold:size=8}
 ACPI${goto 57}: ${acpitemp}${iconv_start UTF-8 
ISO_8859-1}°${iconv_stop}C
#
${voffset 3}${font sans-serif:bold:size=8}${color yellow}TOP PROCESSES${goto 154}PID${goto 197}CPU%${goto 255}MEM%$color
${font
 StyleBats:size=9.9}${color red}i$color ${font 
sans-serif:bold:size=8}${top name 1} ${goto 144} ${top pid 1}${goto 
197}${top cpu 1}${goto 250}${top mem 1}
${font 
StyleBats:size=9.9}${color red}i$color ${font 
sans-serif:bold:size=8}${top name 2} ${goto 144} ${top pid 2}${goto 
197}${top cpu 2}${goto 250}${top mem 2}
${font 
StyleBats:size=9.9}${color red}i$color ${font 
sans-serif:bold:size=8}${top name 3} ${goto 144} ${top pid 3}${goto 
197}${top cpu 3}${goto 250}${top mem 3}
${font 
StyleBats:size=9.9}${color red}i$color ${font 
sans-serif:bold:size=8}${top name 4} ${goto 144} ${top pid 4}${goto 
197}${top cpu 4}${goto 250}${top mem 4}
${font 
StyleBats:size=9.9}${color red}i$color ${font 
sans-serif:bold:size=8}${top name 3} ${goto 144} ${top pid 5}${goto 
197}${top cpu 5}${goto 250}${top mem 5}
#
${voffset 3}${font sans-serif:bold:size=8}${color yellow}TOP MEMORIES${goto 154}PID${goto 197}CPU%${goto 255}MEM%$color
${voffset
 2}${font StyleBats:size=9.9}${color red}v${font}$color ${top_mem name 
1}${goto 144}${top_mem pid 1}${goto 197}${top_mem cpu 1}${goto 
250}${top_mem mem 1}
${voffset 2}${font StyleBats:size=9.9}${color 
red}v${font}$color ${top_mem name 2}${goto 144}${top_mem pid 2}${goto 
197}${top_mem cpu 2}${goto 250}${top_mem mem 2}
${voffset 2}${font 
StyleBats:size=9.9}${color red}v${font}$color ${top_mem name 3}${goto 
144}${top_mem pid 3}${goto 197}${top_mem cpu 3}${goto 250}${top_mem mem 
3}
${voffset 2}${font StyleBats:size=9.9}${color red}v${font}$color 
${top_mem name 4}${goto 144}${top_mem pid 4}${goto 197}${top_mem cpu 
4}${goto 250}${top_mem mem 4}
${voffset 2}${font 
StyleBats:size=9.9}${color red}v${font}$color ${top_mem name 5}${goto 
144}${top_mem pid 5}${goto 197}${top_mem cpu 5}${goto 250}${top_mem mem 
5}
#
${voffset 3}${font sans-serif:bold:size=8}${color yellow}NETWORK ${hr 2}$color${if_existing /proc/net/route ppp0}
${gw_iface}$alignc ....Berukband....
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color} Public IP: $alignr ${addr ppp0}
${voffset
 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color} Private
 IP:${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 
&#39;s/[^[:digit:]\|.]//g&#39;}
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}T${font}${color} Downloads:${goto 237}${downspeed ppp0}/s
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}N${font}${color} Uploads:${goto 237}${upspeed ppp0}/s
Total:
 Downloads:${goto 118}${color green}${totaldown ppp0}${color}${goto 185}
 Uploads:${color red}${goto 243}${totalup ppp0}${color}
#${wireless_link_qual ppp0}%
#
${else}${if_existing /proc/net/route wlan0}$
$alignc ....Wireless....
${voffset
 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}WAN 
IP:$alignr${execi 3600 wget -O- http://whatismyip.org/ | tail}
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}IP address: $alignr ${addr wlan0}
${voffset 2}${font PizzaDudeBullets:size=9.5}${color red}a${font}${color}ESSID: $alignr ${wireless_essid wlan0}
${voffset
 2}${font PizzaDudeBullets:size=9.5}${color 
red}a${font}${color}Connection quality: $alignr 
${wireless_link_qual_perc wlan0}%
Downloads:$alignr${downspeed wlan0}/s
${downspeedgraph wlan0 20,290 F57900 FCAF3E}
Total Downloads:$alignr${totaldown wlan0}
Uploads:$alignr${upspeed wlan0}/s
${upspeedgraph wlan0 20,290 F57900 FCAF3E}
Total Uploads:$alignr${totalup wlan0}
#
${else}${if_existing /proc/net/route eth1}
$alignc ....Wireless....
WAN IP:$alignr${execi 3600 wget -O- http://whatismyip.org/ | tail}
IP address: $alignr ${addr eth1}
ESSID: $alignr ${wireless_essid eth1}
Connection quality: $alignr ${wireless_link_qual_perc eth1}%
Downloads:$alignr${downspeed eth1}/s
${downspeedgraph eth1 20,290 F57900 FCAF3E}
Total Downloads:$alignr$${totaldown eth1}
Uploads:$alignr${upspeed eth1}/s
${upspeedgraph eth1 20,290 F57900 FCAF3E}
Total Uploads:$alignr${totalup eth1}
#
${else}${if_existing /proc/net/route eth0}
$alignc ....Cable....
WAN IP:$alignr${execi 3600 wget -O- http://whatismyip.org/ | tail}
IP address: $alignr ${addr eth0}
ESSID: $alignr ${wireless_essid eth0}
Connection quality: $alignr ${wireless_link_qual_perc eth0}%
Downloads:$alignr${downspeed eth0}/s
${downspeedgraph eth1 8,290 F57900 FCAF3E}
Total Downloads:$alignr$${totaldown eth0}
Uploads:$alignr${upspeed eth0}/s
${upspeedgraph eth0 8,290 F57900 FCAF3E}
Total Uploads:$alignr${totalup eth0}
${else}${font sans-serif:bold:size=8}${font}Takdok Internet Pulok Wei${endif}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
This is the lua... with the credit to the original source&lt;br /&gt;
i just edit a little.&lt;br /&gt;
#&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--[[&lt;br /&gt;BARGRAPH WIDGET&lt;br /&gt;v2.1 by wlourf (07 Jan. 2011)&lt;br /&gt;this widget draws a bargraph with different effects &lt;br /&gt;http://u-scripts.blogspot.com/2010/07/bargraph-widget.html&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;To call the script in a conky, use, before TEXT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lua_load /home/akubuntu/conkyJed/bargraph.lua&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lua_draw_hook_pre main_rings&lt;br /&gt;and add one line (blank or not) after TEXT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Parameters are :&lt;br /&gt;3 parameters are mandatory&lt;br /&gt;name - the name of the conky variable to display, for example for {$cpu cpu0}, just write name=&quot;cpu&quot;&lt;br /&gt;arg&amp;nbsp; - the argument of the above variable, for example for {$cpu cpu0}, just write arg=&quot;cpu0&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arg can be a numerical value if name=&quot;&quot;&lt;br /&gt;max&amp;nbsp; - the maximum value the above variable can reach, for example, for {$cpu cpu0}, just write max=100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Optional parameters:&lt;br /&gt;x,y&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - coordinates of the starting point of the bar, default = middle of the conky window&lt;br /&gt;cap&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - end of cap line, ossibles values are r,b,s (for round, butt, square), default=&quot;b&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; http://www.cairographics.org/samples/set_line_cap/&lt;br /&gt;angle&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - angle of rotation of the bar in degress, default = 0 (i.e. a vertical bar)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; set to 90 for an horizontal bar&lt;br /&gt;skew_x&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - skew bar around x axis, default = 0&lt;br /&gt;skew_y&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - skew bar around y axis, default = 0&lt;br /&gt;blocks&amp;nbsp;&amp;nbsp;&amp;nbsp; - number of blocks to display for a bar (values &amp;gt;0) , default= 10&lt;br /&gt;height&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - height of a block, default=10 pixels&lt;br /&gt;width&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - width of a block, default=20 pixels&lt;br /&gt;space&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - space between 2 blocks, default=2 pixels&lt;br /&gt;angle_bar - this angle is used to draw a bar on a circular way (ok, this is no more a bar !) default=0&lt;br /&gt;radius&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - for cicular bars, internal radius, default=0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; with radius, parameter width has no more effect.&lt;br /&gt;&lt;br /&gt;Colours below are defined into braces {colour in hexadecimal, alpha}&lt;br /&gt;fg_colour&amp;nbsp;&amp;nbsp;&amp;nbsp; - colour of a block ON, default= {0x00FF00,1}&lt;br /&gt;bg_colour&amp;nbsp;&amp;nbsp;&amp;nbsp; - colour of a block OFF, default = {0x00FF00,0.5}&lt;br /&gt;alarm&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - threshold, values after this threshold will use alarm_colour colour , default=max&lt;br /&gt;alarm_colour - colour of a block greater than alarm, default=fg_colour&lt;br /&gt;smooth&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - (true or false), create a gradient from fg_colour to bg_colour, default=false &lt;br /&gt;mid_colour&amp;nbsp;&amp;nbsp; - colours to add to gradient, with this syntax {position into the gradient (0 to1), colour hexa, alpha}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for example, this table {{0.25,0xff0000,1},{0.5,0x00ff00,1},{0.75,0x0000ff,1}} will add&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 colours to gradient created by fg_colour and alarm_colour, default=no mid_colour&lt;br /&gt;led_effect&amp;nbsp;&amp;nbsp; - add LED effects to each block, default=no led_effect&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if smooth=true, led_effect is not used&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; possibles values : &quot;r&quot;,&quot;a&quot;,&quot;e&quot; for radial, parallel, perdendicular to the bar (just try!)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; led_effect has to be used with theses colours :&lt;br /&gt;fg_led&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - middle colour of a block ON, default = fg_colour&lt;br /&gt;bg_led&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - middle colour of a block OFF, default = bg_colour&lt;br /&gt;alarm_led&amp;nbsp;&amp;nbsp;&amp;nbsp; - middle colour of a block &amp;gt; ALARM,&amp;nbsp; default = alarm_colour&lt;br /&gt;&lt;br /&gt;reflection parameters, not available for circular bars&lt;br /&gt;reflection_alpha&amp;nbsp; - add a reflection effect (values from 0 to 1) default = 0 = no reflection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; other values = starting opacity&lt;br /&gt;reflection_scale&amp;nbsp; - scale of the reflection (default = 1 = height of text)&lt;br /&gt;reflection_length - length of reflection, define where the opacity will be set to zero&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values from 0 to 1, default =1&lt;br /&gt;reflection&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - position of reflection, relative to a vertical bar, default=&quot;b&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; possibles values are : &quot;b&quot;,&quot;t&quot;,&quot;l&quot;,&quot;r&quot; for bottom, top, left, right&lt;br /&gt;draw_me&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; - if set to false, text is not drawn (default = true or 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; it can be used with a conky string, if the string returns 1, the text is drawn :&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; example : &quot;${if_empty ${wireless_essid wlan0}}${else}1$endif&quot;,&lt;br /&gt;&lt;br /&gt;v1.0 (10 Feb. 2010) original release&lt;br /&gt;v1.1 (13 Feb. 2010) numeric values can be passed instead conky stats with parameters name=&quot;&quot;, arg = numeric_value&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;v1.2 (28 Feb. 2010) just renamed the widget to bargraph&lt;br /&gt;v1.3 (03 Mar. 2010) added parameters radius &amp;amp; angle_bar to draw the bar in a circular way&lt;br /&gt;v2.0 (12 Jul. 2010) rewrite script + add reflection effects and parameters are now set into tables&lt;br /&gt;v2.1 (07 Jan. 2011) Add draw_me parameter and correct memory leaks, thanks to &quot;Creamy Goodness&quot;&lt;br /&gt;&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This program is free software; you can redistribute it and/or modify&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it under the terms of the GNU General Public License as published by&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the Free Software Foundation version 3 (GPLv3)&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This program is distributed in the hope that it will be useful,&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&amp;nbsp; See the&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GNU General Public License for more details.&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You should have received a copy of the GNU General Public License&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; along with this program; if not, write to the Free Software&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,&lt;br /&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MA 02110-1301, USA.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;]]&lt;br /&gt;&lt;br /&gt;require &#39;cairo&#39;&lt;br /&gt;&lt;br /&gt;----------------START OF PARAMETERS ----------&lt;br /&gt;function conky_main_bars()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local bars_settings={&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for CPU1 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;cpu&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;cpu1&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=242,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for CPU2 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;cpu&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;cpu2&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=258,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for CPU2 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;cpu&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;cpu3&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=273,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for CPU2 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;cpu&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;cpu4&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=289,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for Memory ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;memperc&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=305,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for Home ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;fs_used_perc&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;/home&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=321,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for Swap ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;swapperc&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=50,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.72},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=337,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for hwmon temp 1 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;hwmon 1 temp 1&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;hwmon 1 temp 1&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=86,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.60},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=375,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for hwmon temp 1 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;hwmon 2 temp 1&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;hwmon 2 temp 1&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=86,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.60},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=394,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for hwmon temp 1 ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;hwmon 1 temp 2&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;hwmon 1 temp 2&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=100,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=86,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.60},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=413,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for network ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;downspeedf&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;ppp0&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=250,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=200,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.60},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=690,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; --[ Graph for network ]--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; name=&quot;upspeedf&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arg=&quot;ppp0&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; max=250,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm=200,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alarm_colour={0xFF0000,0.60},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bg_colour={0xFFFFFF,0.13},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fg_colour={0x00FF00,0.55},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mid_colour={{0.45,0xFFFF00,0.70}},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=96,y=707,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; blocks=66,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; space=1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height=2,width=12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; angle=90,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smooth=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;-----------END OF PARAMETERS--------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if conky_window == nil then return end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cr = cairo_create(cs)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --prevent segmentation error when reading cpu state&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if tonumber(conky_parse(&#39;${updates}&#39;))&amp;gt;3 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in pairs(bars_settings) do&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; draw_multi_bar_graph(bars_settings[i])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_destroy(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_surface_destroy(cs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cr=nil&lt;br /&gt;&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function draw_multi_bar_graph(t)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_save(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --check values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.draw_me == true then t.draw_me = nil end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.draw_me ~= nil and conky_parse(tostring(t.draw_me)) ~= &quot;1&quot; then return end&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.name==nil and t.arg==nil then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print (&quot;No input values ... use parameters &#39;name&#39; with &#39;arg&#39; or only parameter &#39;arg&#39; &quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.max==nil then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print (&quot;No maximum value defined, use &#39;max&#39;&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.name==nil then t.name=&quot;&quot; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.arg==nil then t.arg=&quot;&quot; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --set default values&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.x == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.x = conky_window.width/2 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.y == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.y = conky_window.height/2 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.blocks == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.blocks=10 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.height == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.height=10 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle == nil &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.angle=0 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.angle = t.angle*math.pi/180&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --line cap style&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.cap==nil&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.cap = &quot;b&quot; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local cap=&quot;b&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i,v in ipairs({&quot;s&quot;,&quot;r&quot;,&quot;b&quot;}) do &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if v==t.cap then cap=v end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local delta=0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.cap==&quot;r&quot; or t.cap==&quot;s&quot; then delta = t.height end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if cap==&quot;s&quot; then &amp;nbsp;&amp;nbsp;&amp;nbsp; cap = CAIRO_LINE_CAP_SQUARE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elseif cap==&quot;r&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cap = CAIRO_LINE_CAP_ROUND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elseif cap==&quot;b&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cap = CAIRO_LINE_CAP_BUTT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --end line cap style&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --if t.led_effect == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.led_effect=&quot;r&quot; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.width == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.width=20 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.space == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.space=2 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.radius == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.radius=0 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar == nil&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.angle_bar=0 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.angle_bar = t.angle_bar*math.pi/360 --halt angle&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --colours&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.bg_colour == nil &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.bg_colour = {0x00FF00,0.5} end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if #t.bg_colour~=2 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.bg_colour = {0x00FF00,0.5} end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.fg_colour == nil &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.fg_colour = {0x00FF00,1} end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if #t.fg_colour~=2 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.fg_colour = {0x00FF00,1} end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.alarm_colour == nil &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.alarm_colour = t.fg_colour end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if #t.alarm_colour~=2 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.alarm_colour = t.fg_colour end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.mid_colour ~= nil then&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for i=1, #t.mid_colour do&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if #t.mid_colour[i]~=3 then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print (&quot;error in mid_color table&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.mid_colour[i]={1,0xFFFFFF,1} &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.bg_led ~= nil and #t.bg_led~=2&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.bg_led = t.bg_colour end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.fg_led ~= nil and #t.fg_led~=2&amp;nbsp;&amp;nbsp;&amp;nbsp; then t.fg_led = t.fg_colour end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.alarm_led~= nil and #t.alarm_led~=2 then t.alarm_led = t.fg_led end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.led_effect~=nil then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.bg_led == nil then t.bg_led = t.bg_colour end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.fg_led == nil &amp;nbsp;&amp;nbsp;&amp;nbsp; then t.fg_led = t.fg_colour end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.alarm_led == nil&amp;nbsp; then t.alarm_led = t.fg_led end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.alarm==nil then t.alarm = t.max end --0.8*t.max end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.smooth == nil then t.smooth = false end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.skew_x == nil then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.skew_x=0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.skew_x = math.pi*t.skew_x/180&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.skew_y == nil then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.skew_y=0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.skew_y = math.pi*t.skew_y/180&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection_alpha==nil then t.reflection_alpha=0 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection_length==nil then t.reflection_length=1 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection_scale==nil then t.reflection_scale=1 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --end of default values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function rgb_to_r_g_b(col_a)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --functions used to create patterns&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function create_smooth_linear_gradient(x0,y0,x1,y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat = cairo_pattern_create_linear (x0,y0,x1,y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(t.fg_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(t.alarm_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.mid_colour ~=nil then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for i=1, #t.mid_colour do&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, t.mid_colour[i][1], rgb_to_r_g_b({t.mid_colour[i][2],t.mid_colour[i][3]}))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function create_smooth_radial_gradient(x0,y0,r0,x1,y1,r1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat =&amp;nbsp; cairo_pattern_create_radial (x0,y0,r0,x1,y1,r1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(t.fg_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(t.alarm_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.mid_colour ~=nil then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for i=1, #t.mid_colour do&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, t.mid_colour[i][1], rgb_to_r_g_b({t.mid_colour[i][2],t.mid_colour[i][3]}))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function create_led_linear_gradient(x0,y0,x1,y1,col_alp,col_led)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat = cairo_pattern_create_linear (x0,y0,x1,y1) ---delta, 0,delta+ t.width,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0.0, rgb_to_r_g_b(col_alp))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0.5, rgb_to_r_g_b(col_led))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 1.0, rgb_to_r_g_b(col_alp))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function create_led_radial_gradient(x0,y0,r0,x1,y1,r1,col_alp,col_led,mode)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat = cairo_pattern_create_radial (x0,y0,r0,x1,y1,r1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if mode==3 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(col_alp))&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0.5, rgb_to_r_g_b(col_led))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(col_alp))&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(col_led))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(col_alp))&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function draw_single_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --this fucntion is used for bars with a single block (blocks=1) but &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --the drawing is cut in 3 blocks : value/alarm/background&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --not zvzimzblr for circular bar&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local function create_pattern(col_alp,col_led,bg)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if not t.smooth then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.led_effect==&quot;e&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_linear_gradient (-delta, 0,delta+ t.width,0,col_alp,col_led)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif t.led_effect==&quot;a&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_linear_gradient (t.width/2, 0,t.width/2,-t.height,col_alp,col_led)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif&amp;nbsp; t.led_effect==&quot;r&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_radial_gradient (t.width/2, -t.height/2, 0, t.width/2,-t.height/2,t.height/1.5,col_alp,col_led,2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = cairo_pattern_create_rgba&amp;nbsp; (rgb_to_r_g_b(col_alp))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if bg then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = cairo_pattern_create_rgba&amp;nbsp; (rgb_to_r_g_b(t.bg_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_smooth_linear_gradient(t.width/2, 0, t.width/2,-t.height)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return pat&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local y1=-t.height*pct/100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local y2,y3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if pct&amp;gt;(100*t.alarm/t.max) then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; y1 = -t.height*t.alarm/100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; y2 = -t.height*pct/100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.smooth then y1=y2 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --block for fg value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat = create_pattern(t.fg_colour,t.fg_led,false)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source(cr,pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_rectangle(cr,0,0,t.width,y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_fill(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_destroy(pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- block for alarm value&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if not t.smooth and y2 ~=nil then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_pattern(t.alarm_colour,t.alarm_led,false)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source(cr,pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_rectangle(cr,0,y1,t.width,y2-y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_fill(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; y3=y2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_destroy(pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; y2,y3=y1,y1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- block for bg value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_rectangle(cr,0,y2,t.width,-t.height-y3)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_pattern(t.bg_colour,t.bg_led,true)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source(cr,pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_destroy(pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_fill(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&amp;nbsp; --end single bar&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function draw_multi_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --function used for bars with 2 or more blocks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for pt = 1,t.blocks do &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --set block y&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local y1 = -(pt-1)*(t.height+t.space)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local light_on=false&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --set colors&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local col_alp = t.bg_colour&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local col_led = t.bg_led&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if pct&amp;gt;=(100/t.blocks) or pct&amp;gt;0 then --ligth on or not the block&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if pct&amp;gt;=(pcb*(pt-1))&amp;nbsp; then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; light_on = true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; col_alp = t.fg_colour&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; col_led = t.fg_led&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if pct&amp;gt;=(100*t.alarm/t.max) and (pcb*pt)&amp;gt;(100*t.alarm/t.max) then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; col_alp = t.alarm_colour &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; col_led = t.alarm_led &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --set colors&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --have to try to create gradients outside the loop ?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if not t.smooth then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.led_effect==&quot;e&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_linear_gradient (-delta, 0,delta+ t.width,0,col_alp,col_led)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif t.led_effect==&quot;a&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_linear_gradient (t.width/2, -t.height/2+y1,t.width/2,0+t.height/2+y1,col_alp,col_led)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif&amp;nbsp; t.led_effect==&quot;r&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_led_radial_gradient (t.width/2, y1, 0, t.width/2,y1,t.width/1.5,col_alp,col_led,2)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = cairo_pattern_create_rgba&amp;nbsp; (rgb_to_r_g_b(col_alp))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if t.led_effect==&quot;a&quot;&amp;nbsp; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;pat = create_led_radial_gradient (0, 0, t.radius+(t.height+t.space)*(pt-1),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0, 0, t.radius+(t.height+t.space)*(pt),&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;col_alp,col_led,3)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = cairo_pattern_create_rgba&amp;nbsp; (rgb_to_r_g_b(col_alp))&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if light_on then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_smooth_linear_gradient(t.width/2, t.height/2, t.width/2,-(t.blocks-0.5)*(t.height+t.space))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = create_smooth_radial_gradient(0, 0, (t.height+t.space),&amp;nbsp; 0,0,(t.blocks+1)*(t.height+t.space),2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat = cairo_pattern_create_rgba&amp;nbsp; (rgb_to_r_g_b(t.bg_colour))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source (cr, pat)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_destroy(pat)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --draw a block&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_move_to(cr,0,y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_line_to(cr,t.width,y1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_arc( cr,0,0,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.radius+(t.height+t.space)*(pt)-t.height/2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;-t.angle_bar -math.pi/2 ,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;t.angle_bar -math.pi/2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_stroke(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; local function setup_bar_graph()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --function used to retrieve the value to display and to set the cairo structure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.blocks ~=1 then t.y=t.y-t.height/2 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local value = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.name ~=&quot;&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; value = tonumber(conky_parse(string.format(&#39;${%s %s}&#39;, t.name, t.arg)))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --$to_bytes doesn&#39;t work when value has a decimal point,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --https://garage.maemo.org/plugins/ggit/browse.php/?p=monky;a=commitdiff;h=174c256c81a027a2ea406f5f37dc036fac0a524b;hp=d75e2db5ed3fc788fb8514121f67316ac3e5f29f&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --http://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=3000865&amp;amp;group_id=143975&amp;amp;atid=757310&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --conky bug?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --value = (conky_parse(string.format(&#39;${%s %s}&#39;, t.name, t.arg)))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --if string.match(value,&quot;%w&quot;) then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp;&amp;nbsp; value = conky_parse(string.format(&#39;${to_bytes %s}&#39;,value))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; value = tonumber(t.arg)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if value==nil then value =0 end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pct = 100*value/t.max&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pcb = 100/t.blocks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_line_width (cr, t.height)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_line_cap&amp;nbsp; (cr, cap)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_translate(cr,t.x,t.y)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_rotate(cr,t.angle)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local matrix0 = cairo_matrix_t:create()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tolua.takeownership(matrix0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_matrix_init (matrix0, 1,t.skew_y,t.skew_x,1,0,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_transform(cr,matrix0)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --call the drawing function for blocks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.blocks==1 and t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; draw_single_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection==&quot;t&quot; or t.reflection==&quot;b&quot; then cairo_translate(cr,0,-t.height) end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; draw_multi_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --dot for reminder&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --[[&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.blocks ~=1 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source_rgba(cr,1,0,0,1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_arc(cr,0,t.height/2,3,0,2*math.pi)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_fill(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_source_rgba(cr,1,0,0,1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_arc(cr,0,0,3,0,2*math.pi)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_fill(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end]]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; --call the drawing function for reflection and prepare the mask used&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection_alpha&amp;gt;0 and t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local pat2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local matrix1 = cairo_matrix_t:create()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tolua.takeownership(matrix1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pts={-delta/2,(t.height+t.space)/2,t.width+delta,-(t.height+t.space)*(t.blocks)}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.reflection==&quot;t&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_matrix_init (matrix1,1,0,0,-t.reflection_scale,0,-(t.height+t.space)*(t.blocks-0.5)*2*(t.reflection_scale+1)/2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat2 = cairo_pattern_create_linear (t.width/2,-(t.height+t.space)*(t.blocks),t.width/2,(t.height+t.space)/2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif t.reflection==&quot;r&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_matrix_init (matrix1,-t.reflection_scale,0,0,1,delta+2*t.width,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat2 = cairo_pattern_create_linear (delta/2+t.width,0,-delta/2,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elseif t.reflection==&quot;l&quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_matrix_init (matrix1,-t.reflection_scale,0,0,1,-delta,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat2 = cairo_pattern_create_linear (-delta/2,0,delta/2+t.width,-0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else --bottom&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_matrix_init (matrix1,1,0,0,-1*t.reflection_scale,0,(t.height+t.space)*(t.reflection_scale+1)/2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pat2 = cairo_pattern_create_linear (t.width/2,(t.height+t.space)/2,t.width/2,-(t.height+t.space)*(t.blocks))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_transform(cr,matrix1)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.blocks==1 and t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; draw_single_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_translate(cr,0,-t.height/2) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; draw_multi_bar()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_line_width(cr,0.01)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat2, 0,0,0,0,1-t.reflection_alpha)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_add_color_stop_rgba (pat2, t.reflection_length,0,0,0,1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if t.angle_bar==0 then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_rectangle(cr,pts[1],pts[2],pts[3],pts[4])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_clip_preserve(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_stroke(cr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_mask(cr,pat2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_pattern_destroy(pat2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_set_operator(cr,CAIRO_OPERATOR_OVER)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end --reflection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pct,pcb=nil&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end --setup_bar_graph()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --start here !&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setup_bar_graph()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cairo_restore(cr)&lt;br /&gt;end&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
put .conkyrc in home folder, make it executable&lt;br /&gt;
put bargraph_small.lua anywhere you like, but make sure you got the path right.&lt;br /&gt;
make sure you got the right font....please refer to your &lt;i&gt;.conkyrc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
I didn&#39;t fully make it perfect so please edit it to suit you needs.&lt;br /&gt;
Enjoy.&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/1483291105554950356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2014/01/latest-conky-with-lua.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1483291105554950356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1483291105554950356'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2014/01/latest-conky-with-lua.html' title='Latest conky with lua'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxIblQLdoDmd4_9cMro1BwzVgdh_jStfB-toUstG5F8fuWWC9slYqQqGyRJPsyK8PzBoEyEMQwIG_ZgFnZzWxZ7IQC2e_1BiuqsTxwhSObW9c-aqA7fzxBqb6ZgkzZVSwekUcgYm7UIXP8/s72-c/Screenshot+2014-01-04+20:04:49.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-5278979687824683659</id><published>2013-07-12T21:41:00.000-07:00</published><updated>2013-07-12T21:43:00.983-07:00</updated><title type='text'>Varnish Cache</title><content type='html'>Varnish is a web application accelerator. You install it in front of your web application and it will speed it up significantly.&lt;br /&gt;
&lt;br /&gt;
Installation on Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Varnish is distributed in the Ubuntu package repositories, but the version there might be out of date, and we generally recommend using the packages provided by varnish-cache.org. Please be advised that we only provide packages for Ubuntu&#39;s LTS releases, not all the intermediate releases. Note that the packages might still work fine on newer releases.&lt;br /&gt;
&lt;br /&gt;
To use the varnish-cache.org repository, do the following&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;echo &quot;deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0&quot; | sudo tee -a /etc/apt/sources.list&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;sudo apt-get update&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;sudo apt-get install varnish&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
If you want to install the older 2.1 version, replace varnish-3.0 with varnish-2.1 in the command above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://www.varnish-cache.org&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/5278979687824683659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/07/varnish-cache.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5278979687824683659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5278979687824683659'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/07/varnish-cache.html' title='Varnish Cache'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-5822884482739752327</id><published>2013-06-12T01:42:00.001-07:00</published><updated>2013-06-12T01:42:40.993-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="tweak"/><title type='text'>How to auto-close the terminal after a certain period of inactivity</title><content type='html'>I will show you a little trick to close the terminal automatically after
 a certain period of inactivity. The trick is very simple, just use any 
text editor ( as root) to open the file /etc/profile, in Ubuntu or Linux
 Mint Cinnamon, the command will be:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;sudo gedit /etc/profile&lt;/i&gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Once the file is open, just append the following lines to the end of the file:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;i&gt;TMOUT=seconds &lt;br /&gt;&amp;nbsp;export TMOUT&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Change the &quot;seconds&quot; in the variable part of TMOUT to any number you 
prefer, this is the maximum idling time the terminal can last before 
getting closed. I will use 200 as the example here, just add the lines 
into the end of the file /etc/profile like this: &lt;span id=&quot;goog_1340704944&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1340704945&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-cmgvLPs3hZE/UbgykPVPBEI/AAAAAAAAA8k/S0ijtBYxm9A/s1600/2013-06-11-212926_490x401_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;http://2.bp.blogspot.com/-cmgvLPs3hZE/UbgykPVPBEI/AAAAAAAAA8k/S0ijtBYxm9A/s320/2013-06-11-212926_490x401_scrot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Then save the file and close the text editor.&amp;nbsp; After that, run the 
following command to apply the new change and your terminal will be 
automatically closed after 200 seconds of inactivity:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;source /etc/profile&lt;/i&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/5822884482739752327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/06/how-to-auto-close-terminal-after.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5822884482739752327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5822884482739752327'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/06/how-to-auto-close-terminal-after.html' title='How to auto-close the terminal after a certain period of inactivity'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-cmgvLPs3hZE/UbgykPVPBEI/AAAAAAAAA8k/S0ijtBYxm9A/s72-c/2013-06-11-212926_490x401_scrot.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-4276744293649121373</id><published>2013-05-03T12:14:00.002-07:00</published><updated>2013-05-03T12:14:41.672-07:00</updated><title type='text'>Ubuntu Dark Themes Fixs For Mozilla Firefox</title><content type='html'>Here is a &lt;a href=&quot;http://userstyles.org/styles/75467/high-contrast-inverse-google-fix&quot; rel=&quot;nofollow&quot;&gt;userstyle for Stylish&lt;/a&gt; that implements the CSS fix.&lt;br /&gt;
&lt;br /&gt;
Install both of it.&lt;br /&gt;
&lt;br /&gt;
Open Firefox --&amp;gt; Tools ---&amp;gt; Adds-on&amp;nbsp; ---&amp;gt; User Styles ----&amp;gt; High Contrast Inverse Google Fix&amp;nbsp; ----&amp;gt; Edit&lt;br /&gt;
&lt;br /&gt;
Replace&amp;nbsp; content&lt;br /&gt;
@-moz-document domain(google.com)&lt;br /&gt;
  { input
      {
      -moz-appearance: none !important; 
      color: #000000 !important;
      } 
  }&lt;br /&gt;
&lt;br /&gt;
with this&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;input[type=&quot;text&quot;],
input[type=&quot;password&quot;],
textarea
{
  -moz-appearance: none !important;
  background: white;
  color: black;

  border-radius: 5px;
  border: 1px solid #BBB;
  background-color: white;
  padding: 3px;
  color: black;
}&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Save.&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Enjoy the new look.&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;a href=&quot;http://askubuntu.com/questions/183564/high-contrast-theme-firefox-problem&quot; target=&quot;_blank&quot;&gt;source  &lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/4276744293649121373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/05/ubuntu-dark-themes-fixs-for-mozilla.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/4276744293649121373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/4276744293649121373'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/05/ubuntu-dark-themes-fixs-for-mozilla.html' title='Ubuntu Dark Themes Fixs For Mozilla Firefox'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-3328468370567201856</id><published>2013-03-25T11:39:00.002-07:00</published><updated>2013-03-25T12:28:38.775-07:00</updated><title type='text'>Make Your PDF File Smaller</title><content type='html'>&lt;div id=&quot;content&quot; lang=&quot;en&quot;&gt;
&lt;h1&gt;
Shrinkpdf: shrink PDF files with Ghostscript&lt;/h1&gt;
The simplest shell script in the world to shrink your PDFs (as in reduce filesize)
   under Linux with Ghostscript. Inspired by some code I found in an OpenOffice Python
   script (I think). It feeds an existing PDF through Ghostscript, downsamples the images
   to 72dpi, and does some other stuff. Pretty straightforward.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;scriptfile&quot;&gt;
&lt;a href=&quot;http://www.alfredklomp.com/programming/shrinkpdf/shrinkpdf.sh&quot;&gt;shrinkpdf.sh&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;    #!/bin/sh

gs -q -dNOPAUSE -dBATCH -dSAFER \
 -sDEVICE=pdfwrite \
 -dCompatibilityLevel=1.3 \
 -dPDFSETTINGS=/screen \
 -dEmbedAllFonts=true \
 -dSubsetFonts=true \
 -dColorImageDownsampleType=/Bicubic \
 -dColorImageResolution=&lt;span style=&quot;color: red;&quot;&gt;72&lt;/span&gt; \
 -dGrayImageDownsampleType=/Bicubic \
 -dGrayImageResolution=&lt;span style=&quot;color: red;&quot;&gt;72&lt;/span&gt; \
 -dMonoImageDownsampleType=/Bicubic \
 -dMonoImageResolution=&lt;span style=&quot;color: red;&quot;&gt;72&lt;/span&gt; \
 -sOutputFile=out.pdf \
  $1&lt;/i&gt;&lt;/span&gt;
&lt;/pre&gt;
Usage&lt;/div&gt;
Download the script by clicking the filename at the top of the box.&lt;br /&gt;
If it&#39;s not downloading just right click and &#39;save link as&#39;, make sure the file are in &#39;home&#39; folder.&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;code&gt;sh shrinkpdf.sh yourfile.pdf&lt;/code&gt;&lt;/pre&gt;
This produces a shrunken file named &lt;code&gt;out.pdf&lt;/code&gt; in the current directory.&lt;br /&gt;
Sorry, Windows users; this one is Linux only. Ghostscript does run under Windows, but
   I don&#39;t know much about Windows scripting. You could try typing all these parameters on
   the commandline by hand.&lt;br /&gt;
&lt;br /&gt;
You can increase the quality by changing the &#39;&lt;span style=&quot;color: red;&quot;&gt;72&lt;/span&gt;&#39; number in the script to what ever number you want (ex: 120) for better image quality.&lt;br /&gt;
&lt;br /&gt;
Good Luck. &lt;br /&gt;
&lt;br /&gt;
Credit goes to http://www.alfredklomp.com/programming/shrinkpdf/&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8696063787942637&quot;;
/* xtrabuntu */
google_ad_slot = &quot;3660712079&quot;;
google_ad_width = 728;
google_ad_height = 15;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/3328468370567201856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/make-your-pdf-file-smaller.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3328468370567201856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3328468370567201856'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/make-your-pdf-file-smaller.html' title='Make Your PDF File Smaller'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-946854955481710573</id><published>2013-03-23T13:00:00.002-07:00</published><updated>2013-03-23T13:04:30.338-07:00</updated><title type='text'>Faster Boot Time Ubuntu 12.04</title><content type='html'>&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;1)Remove unwanted Startup Application&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;(most of info recomend this)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;make hidden startup applications visible in the manager&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;code&gt;sudo sed -i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop&lt;/code&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Click the Start Menu.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Click Startup Applications...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Uncheck any unwanted application&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhquCvohS6-t58Tu8ejYC8voOkbUjP9L7Q2GHLQoqQSDweM67LP5Zr87_TB01B1p23KBrhEaTaq6UNsyrHz7Xc68JBKYgnq6VZklF_mhLwNB4EuWAkLVHA3jBdsJCA2mfqupte39MlzlcQH/s1600/Screenshot+from+2013-03-24+03:45:36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhquCvohS6-t58Tu8ejYC8voOkbUjP9L7Q2GHLQoqQSDweM67LP5Zr87_TB01B1p23KBrhEaTaq6UNsyrHz7Xc68JBKYgnq6VZklF_mhLwNB4EuWAkLVHA3jBdsJCA2mfqupte39MlzlcQH/s320/Screenshot+from+2013-03-24+03:45:36.png&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;2)Speed Up Ubuntu Booting Time via Grub&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;a href=&quot;http://www.ubuntubuzz.com/2012/01/how-to-increasespeed-up-ubuntu-booting.html&quot; target=&quot;_blank&quot;&gt;(Source = Ubuntubuzz)&lt;/a&gt;&lt;br /&gt;here&#39;s to do it, open your grub configuration file (/etc/default/grub) and find this line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”, do as follows :&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;i&gt;sudo gedit /etc/default/grub
&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;replace &lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&amp;nbsp;with&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;i&gt;GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash profile”
&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;save and exit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sudo update-grub2&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;i&gt;sudo reboot&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Grub does a search for all the necessary drivers to load, Instead of making Grub search for required drivers, the profiling actually makes Grub remember every necessary driver to work, This action will cutting down all of the driver load times. &lt;br /&gt;&lt;br /&gt;after your system up, edit /etc/default/grub and remove some option&amp;nbsp; which we have added before.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;i&gt;sudo gedit /etc/default/grub&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&amp;nbsp;replace&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash profile”&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;with&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;i&gt;GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;save and exit&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sudo update-grub2&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;3)Disabling Hibernation Option&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://www.ossdoc.com/2012/11/how-to-speed-up-computer-on-ubuntu-1204.html&quot; target=&quot;_blank&quot;&gt;(source=ossdoc)&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To disable Hibernation menu type this command:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;sudo gedit /etc/initramfs-tools/conf.d/resume&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;it will open the editor. Disable hibernation by adding hastag (#) before the line. See this sample:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Before:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;RESUME=UUID=7c53534d-2a6f-49de-b825-74106a681594&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;After:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;#RESUME=UUID=7c53534d-2a6f-49de-b825-74106a681594&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Close and save the editor. Hibernation is disabled.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;4) Disabling Grub Menu&lt;/b&gt;&lt;br /&gt;
Disabling grub menu will speed up your computer. You have to set grub time out value as 0. Type this command on Your terminal:&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;i&gt;sudo gedit /etc/default/grub&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;
when the editor opened, set GRUB_TIMEOUT value as 0. &amp;nbsp;Close and save.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;span style=&quot;line-height: 18px; text-align: left;&quot;&gt;Adjust Your Swappiness&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;First, chek your swappinnes. The default value is 60. check it using this command: &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;cat /proc/sys/vm/swappiness&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;open your editor and edit the value. try this command to edit:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;sudo gedit /etc/sysctl.conf&lt;/span&gt;&lt;/span&gt; &lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;add this line to into the file:&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;pre class=&quot;code&quot; style=&quot;border: 1px dashed rgb(216, 216, 216); margin: 0px 0px 1em; overflow: auto; padding: 0.5em; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;vm.swappiness=10&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;That&#39;s it. Good luck.&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/946854955481710573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/faster-boot-time-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/946854955481710573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/946854955481710573'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/faster-boot-time-ubuntu-1204.html' title='Faster Boot Time Ubuntu 12.04'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhquCvohS6-t58Tu8ejYC8voOkbUjP9L7Q2GHLQoqQSDweM67LP5Zr87_TB01B1p23KBrhEaTaq6UNsyrHz7Xc68JBKYgnq6VZklF_mhLwNB4EuWAkLVHA3jBdsJCA2mfqupte39MlzlcQH/s72-c/Screenshot+from+2013-03-24+03:45:36.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-6758155979903146397</id><published>2013-03-06T08:15:00.002-07:00</published><updated>2013-03-06T08:15:48.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="applications"/><title type='text'>CPU-G ANOTHER CPU-Z ON UBUNTU</title><content type='html'>&lt;span style=&quot;line-height: 20.766666412353516px;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;You must have known CPU-z, a windows application that lets you to find out Hardware information of your system. Now we have similar application named CPU-G with actually have same function and &#39;interface&#39; that&#39;s run on ubuntu.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-JGqw53xwAlA/UTdZ_4XwhZI/AAAAAAAAA6A/VxivDrQOUKM/s1600/cpu-g.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-JGqw53xwAlA/UTdZ_4XwhZI/AAAAAAAAA6A/VxivDrQOUKM/s1600/cpu-g.PNG&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;How to install CPU-G on Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;First before you install it, download CPU-z source installer (*.deb) here, wait until download process finish, go to CPU-G download directory then type following command in your terminal&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;sudo dpkg -i cpu-g_0.9.0_i386.deb&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; sudo apt-get -f install&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;change &quot;cpu-g_0.9.0_i386.deb&quot; with CPU-G file installer you have download.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;b&gt;How to run CPU-G on Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;How to install it is quiet simple, open your terminal or type ALT + F2. then type &quot;cpu-g&quot; there. The CPU-G should running on. [thanks to tahutek.net]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;source http://www.ubuntubuzz.com/&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/6758155979903146397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/cpu-g-another-cpu-z-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6758155979903146397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6758155979903146397'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/03/cpu-g-another-cpu-z-on-ubuntu.html' title='CPU-G ANOTHER CPU-Z ON UBUNTU'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-JGqw53xwAlA/UTdZ_4XwhZI/AAAAAAAAA6A/VxivDrQOUKM/s72-c/cpu-g.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-6228553987826723135</id><published>2013-02-16T00:40:00.000-07:00</published><updated>2013-02-16T00:40:15.812-07:00</updated><title type='text'>Garuda Os</title><content type='html'>Indonesia original OS, sorry i brought the whole site here&lt;br /&gt;
&lt;br /&gt;
&lt;iframe align=&quot;center&quot; frameborder=&quot;no&quot; height=&quot;4200px&quot; name=&quot;fullcircle&quot; scrolling=&quot;auto&quot; src=&quot;http://omrois.blogspot.com/2012/08/garuda-os-sistem-operasi-asli-buatan.html&quot; width=&quot;830px&quot;&gt;&lt;/iframe&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/6228553987826723135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/02/garuda-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6228553987826723135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6228553987826723135'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/02/garuda-os.html' title='Garuda Os'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-5455121436328454849</id><published>2013-02-13T02:45:00.001-07:00</published><updated>2013-02-13T02:45:49.433-07:00</updated><title type='text'>Ubuntu 13.04 Raring Ringtail on a Multitouch Screen Monitor</title><content type='html'>&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/Vp8_jetKEu8?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/5455121436328454849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/02/ubuntu-1304-raring-ringtail-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5455121436328454849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5455121436328454849'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/02/ubuntu-1304-raring-ringtail-on.html' title='Ubuntu 13.04 Raring Ringtail on a Multitouch Screen Monitor'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Vp8_jetKEu8/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-6242466025396635954</id><published>2013-01-19T06:32:00.001-07:00</published><updated>2013-01-19T06:33:37.470-07:00</updated><title type='text'>Unity Changes - Ubuntu 13.04</title><content type='html'>&lt;centre&gt;&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/JtbvStm0Sp8?feature=player_detailpage&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;centre&gt;&lt;/centre&gt;&lt;/centre&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/6242466025396635954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/01/unity-changes-ubuntu-1304.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6242466025396635954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6242466025396635954'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/01/unity-changes-ubuntu-1304.html' title='Unity Changes - Ubuntu 13.04'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/JtbvStm0Sp8/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-686106857932827021</id><published>2013-01-13T20:25:00.001-07:00</published><updated>2013-01-13T20:25:27.847-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>How to customize the font and color of the panel clock in Ubuntu and Linux Mint Mate</title><content type='html'>If you are using the Mate edition of Linux Mint ( either 13 or 14), the default clock at the right corner will look like this&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-Vlf1Z6cvekY/UPN5htT1MqI/AAAAAAAAA5U/4xDIayjWUXA/s1600/2013-01-10-200850_194x34_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-Vlf1Z6cvekY/UPN5htT1MqI/AAAAAAAAA5U/4xDIayjWUXA/s320/2013-01-10-200850_194x34_scrot.png&quot; height=&quot;34&quot; width=&quot;194&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
I will show you a small trick to change the font and color of this clock widget to make it look somehow like this: &lt;span id=&quot;goog_873885953&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_873885954&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-wwG4p3TImww/UPN58tFLsCI/AAAAAAAAA5k/JhFAReRWKkQ/s1600/2013-01-10-200810_191x42_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-wwG4p3TImww/UPN58tFLsCI/AAAAAAAAA5k/JhFAReRWKkQ/s1600/2013-01-10-200810_191x42_scrot.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The trick is pretty simple. First, you will need to get the Digital font. Just &lt;a href=&quot;http://www.dafont.com/ds-digital.font?text=digital&quot; target=&quot;_blank&quot;&gt;download it here&lt;/a&gt; then install it.&lt;br /&gt;
&lt;br /&gt;
Next, create a file named .gtkrc-2.0 in the home folder and copy-paste the following lines into it:&lt;br /&gt;
&lt;/div&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; style &quot;my-panel-clock&quot;  
 {  
 fg[NORMAL] = &quot;#272727&quot;
 font_name = &quot;DS-Digital Bold 12&quot;  
 }  
 widget &quot;*.clock-applet-button.*&quot; style &quot;my-panel-clock&quot;  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
After that, just hit Alt+F2 and run the following command to reset the bottom panel:&lt;br /&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; pkill mate-panel  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Note:&lt;/b&gt; You can edit the font, size and the color code in the .gtkrc-2.0 file to meet your preference.&lt;img height=&quot;1&quot; src=&quot;http://feeds.feedburner.com/%7Er/LinuxAndLife/%7E4/jhpYU5XGj7c&quot; width=&quot;1&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-wwG4p3TImww/UPN58tFLsCI/AAAAAAAAA5k/JhFAReRWKkQ/s1600/2013-01-10-200810_191x42_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-wwG4p3TImww/UPN58tFLsCI/AAAAAAAAA5k/JhFAReRWKkQ/s1600/2013-01-10-200810_191x42_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
source: http://www.linuxandlife.com/&lt;br /&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-wwG4p3TImww/UPN58tFLsCI/AAAAAAAAA5k/JhFAReRWKkQ/s1600/2013-01-10-200810_191x42_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/686106857932827021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2013/01/how-to-customize-font-and-color-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/686106857932827021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/686106857932827021'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2013/01/how-to-customize-font-and-color-of.html' title='How to customize the font and color of the panel clock in Ubuntu and Linux Mint Mate'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-Vlf1Z6cvekY/UPN5htT1MqI/AAAAAAAAA5U/4xDIayjWUXA/s72-c/2013-01-10-200850_194x34_scrot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-7092512622408711108</id><published>2012-12-10T20:04:00.001-07:00</published><updated>2012-12-10T20:04:20.253-07:00</updated><title type='text'>Ubuntu Got 2 Windows 7 (loader) entries in Grub2</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
What was the cause of the problem:&lt;/h3&gt;
Grub2 looks for the Windows boot files for detecting Windows entries.
 Though you removed Windows 7, the Windows 7 boot files aren&#39;t removed 
(which are &quot;Boot&quot; folder and &quot;bootmgr&quot; file). And as Windows 7 boot 
files are there, grub2 simply assumes that, there are Windows 7 
installation also. Hence the dual entry.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhypCVbahKXT-nXtZmsFi5-OF_OIPbhgVwYdk0aezDywrpcRpvVbmscFA4PeK6gG1nNirJH4vcO3HkEWPSZKXw4DMnvfBBcPH7_QanubASuq81BgPeG2EI3pH4HNdhHScOKbbucbvCyphNX/s1600/grub2-dual-boot-in-grub2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhypCVbahKXT-nXtZmsFi5-OF_OIPbhgVwYdk0aezDywrpcRpvVbmscFA4PeK6gG1nNirJH4vcO3HkEWPSZKXw4DMnvfBBcPH7_QanubASuq81BgPeG2EI3pH4HNdhHScOKbbucbvCyphNX/s320/grub2-dual-boot-in-grub2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should find what you&#39;re looking for inside of &lt;code&gt;/boot/grub/grub.cfg&lt;/code&gt;. This file is dynamically generated by &lt;code&gt;update-grub2&lt;/code&gt;. I am dual booting Ubuntu 32bit and 64bit. If I wanted to remove one, I would simply delete it&#39;s section from this file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;menuentry &#39;Ubuntu, with Linux 3.2.0-23-generic&#39; --class ubuntu --class gnu-linux --class gnu --class os {
 &lt;/code&gt;### BEGIN /etc/grub.d/30_os-prober ###&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;menuentry &quot;Windows 7 (loader) (on /dev/sda1)&quot; --class windows --class os {
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod part_msdos
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod ntfs
&amp;nbsp;&amp;nbsp;&amp;nbsp; set root=&#39;(hd0,msdos2)&#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp; search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
&amp;nbsp;&amp;nbsp;&amp;nbsp; chainloader +1
}
menuentry &quot;Windows 7 (loader) (on /dev/sda2)&quot; --class windows --class os {
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod part_msdos
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod ntfs
&amp;nbsp;&amp;nbsp;&amp;nbsp; set root=&#39;(hd0,msdos2)&#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp; search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
&amp;nbsp;&amp;nbsp;&amp;nbsp; chainloader +1
}
menuentry &quot;Windows Recovery Environment (loader) (on /dev/sda4)&quot; --class windows --class os {
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod part_msdos
&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod ntfs
&amp;nbsp;&amp;nbsp;&amp;nbsp; set root=&#39;(hd0,msdos4)&#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp; search --no-floppy --fs-uuid --set=root C22A7EEA2A7EDB3D
&amp;nbsp;&amp;nbsp;&amp;nbsp; drivemap -s (hd0) ${root}
&amp;nbsp;&amp;nbsp;&amp;nbsp; chainloader +1&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Changes should take effect immediately, so make a backup and be careful.
 Also, anything you change in this file will be completely over written 
if you run &lt;code&gt;update-grub2&lt;/code&gt; again.&lt;br /&gt;
&lt;br /&gt;
make sure you&#39;re delete the right one or you&#39;ll be sorry...&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mount the &lt;code&gt;/dev/sda1&lt;/code&gt; drive&lt;em&gt;&lt;/em&gt;. Then in that drive look for a folder named &lt;code&gt;Boot&lt;/code&gt; and a file named &lt;code&gt;bootmgr&lt;/code&gt;. Remove both the folder and file. Then run &lt;code&gt;update-grub2&lt;/code&gt; command again.&lt;br /&gt;


You might want to install grub2 again. As I see your Ubuntu installation is at &lt;code&gt;/dev/sdb&lt;/code&gt;, the commands will be&lt;br /&gt;
&lt;br /&gt;


&lt;pre&gt;&lt;code&gt;sudo grub-install /dev/sdb
sudo update-grub 
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Bye..&lt;br /&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/7092512622408711108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/ubuntu-got-2-windows-7-loader-entries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/7092512622408711108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/7092512622408711108'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/ubuntu-got-2-windows-7-loader-entries.html' title='Ubuntu Got 2 Windows 7 (loader) entries in Grub2'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhypCVbahKXT-nXtZmsFi5-OF_OIPbhgVwYdk0aezDywrpcRpvVbmscFA4PeK6gG1nNirJH4vcO3HkEWPSZKXw4DMnvfBBcPH7_QanubASuq81BgPeG2EI3pH4HNdhHScOKbbucbvCyphNX/s72-c/grub2-dual-boot-in-grub2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-1246462560797302844</id><published>2012-12-03T00:02:00.000-07:00</published><updated>2012-12-03T00:02:00.704-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><title type='text'> Open the terminal in a specific size and position in Ubuntu/ Linux Mint </title><content type='html'>&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In Ubuntu or Linux Mint and many other distros, when you open the 
terminal, the window will appear at the top left corner of the desktop 
screen and I usually have to drag it down to the bottom left of the 
desktop. If you dont like the default position and size of the start up 
window, you can edit it easily.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;There are in fact many methods to customize the start up position of the
 terminal, but in this article I will show you a simple way to do the 
task without installing anything. In Ubuntu or Linux Mint Cinnamon, just
 open the terminal and run the following command:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo gnome-desktop-item-edit /usr/share/applications/gnome-terminal.desktop&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;If you use MATE, the command will be&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo mate-desktop-item-edit /usr/share/applications/mate-terminal.desktop&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;After you hit enter, you will see the properties window of the launcher for the terminal.&lt;br /&gt;&lt;span id=&quot;goog_320448486&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_320448487&quot;&gt;&lt;/span&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-wTc8yqUiQ1Y/ULr6nAR4SDI/AAAAAAAAA4s/eGS3XNWCU2s/s1600/Screenshot-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-wTc8yqUiQ1Y/ULr6nAR4SDI/AAAAAAAAA4s/eGS3XNWCU2s/s1600/Screenshot-1.png&quot; height=&quot;140&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In the command tab, just append this option after the part &quot;mate-terminal&quot; (or &quot;gnome-terminal&quot;):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;--geometry=100x50+800+300&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;What this means:&lt;br /&gt;
100: the width of the terminal ( in characters)&lt;br /&gt;
50: the height ( in lines)&lt;br /&gt;
800: x position of the terminal when you open it up&lt;br /&gt;
300: y position&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Just change the numbers into whatever values you prefer then click on 
the Close button and everything is done. Next time you open the 
terminal, the terminal window will appear at the new position instead of
 the top left corner of the desktop screen&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;source http://www.linuxandlife.com&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/1246462560797302844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/open-terminal-in-specific-size-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1246462560797302844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1246462560797302844'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/open-terminal-in-specific-size-and.html' title=' Open the terminal in a specific size and position in Ubuntu/ Linux Mint '/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-wTc8yqUiQ1Y/ULr6nAR4SDI/AAAAAAAAA4s/eGS3XNWCU2s/s72-c/Screenshot-1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-5144132984445390076</id><published>2012-12-01T23:40:00.001-07:00</published><updated>2012-12-01T23:40:58.050-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="icon"/><category scheme="http://www.blogger.com/atom/ns#" term="themes"/><title type='text'>Easy way to download Potenza and install</title><content type='html'>Potenza was updated on Gnome-look two days ago and this icon set has 
been rated positively. All icons in this set have a squircular shape and
 the bright colors make Potenza go together with dark GTK themes very 
well.&lt;br /&gt;
&lt;br /&gt;
Here are some screenshots of Pontenza&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-OHis6KxVwXE/ULr2dnf1KcI/AAAAAAAAA4Q/3pLNveFK1iU/s1600/2012-11-29-212413_1366x768_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-OHis6KxVwXE/ULr2dnf1KcI/AAAAAAAAA4Q/3pLNveFK1iU/s1600/2012-11-29-212413_1366x768_scrot.png&quot; height=&quot;224&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-1gZxh8mPjUs/ULr2frHkcAI/AAAAAAAAA4Y/6V1GQEqI7OU/s1600/2012-11-29-212455_1366x768_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-1gZxh8mPjUs/ULr2frHkcAI/AAAAAAAAA4Y/6V1GQEqI7OU/s1600/2012-11-29-212455_1366x768_scrot.png&quot; height=&quot;224&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;This is an easy way to download and install&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;sudo wget http://mystras.cloudfactory.eu/Downloads/Potenza.deb&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;sudo dpkg -i Potenza*&lt;/i&gt;&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;sudo apt-get install -f&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/5144132984445390076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/easy-way-to-download-potenza-and-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5144132984445390076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/5144132984445390076'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/12/easy-way-to-download-potenza-and-install.html' title='Easy way to download Potenza and install'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-OHis6KxVwXE/ULr2dnf1KcI/AAAAAAAAA4Q/3pLNveFK1iU/s72-c/2012-11-29-212413_1366x768_scrot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-2961309371268595749</id><published>2012-10-25T22:43:00.004-07:00</published><updated>2012-10-25T22:43:51.069-07:00</updated><title type='text'>How To Setup Static DNS Servers in Ubuntu</title><content type='html'>To get started, press &lt;strong&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Ctrl – Alt – T&lt;/span&gt;&lt;/strong&gt; on your keyboard to open the terminal. When it opens, run the commands below to open dhclient.conf file.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #e5e5e5; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 14px; margin: 0em; width: 100%;&quot;&gt;sudo gedit /etc/dhcp/dhclient.conf&lt;/pre&gt;
&lt;/blockquote&gt;
Then change the line highlighted to:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background-color: #e5e5e5; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 14px; margin: 0em; width: 100%;&quot;&gt;prepend domain-name-servers x.x.x.x, y.y.y.y;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ifkSn2YB5izpg659RcfesZ1rjltsEgdT_YmU5TfZ-XSy7I9XVWAg1TivWtQ8AnP6G7of8eAR3nScFvIunU72scN_fmmXZWpQCL3f1mseDQQgm2Qa-zV58d7EtoUWaRIKEyvGfJX_aEzk/s1600/590x259xcustom_dns_precise_1_thumb.png.pagespeed.ic.dVVyGBpE93.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ifkSn2YB5izpg659RcfesZ1rjltsEgdT_YmU5TfZ-XSy7I9XVWAg1TivWtQ8AnP6G7of8eAR3nScFvIunU72scN_fmmXZWpQCL3f1mseDQQgm2Qa-zV58d7EtoUWaRIKEyvGfJX_aEzk/s640/590x259xcustom_dns_precise_1_thumb.png.pagespeed.ic.dVVyGBpE93.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Replace &lt;strong&gt;xx&lt;/strong&gt; and &lt;strong&gt;yy &lt;/strong&gt;with the primary and secondary DNS server addresses. Separate each address with a comma. Save the file and you’re done.&lt;br /&gt;
&lt;br /&gt;
i COPY AND PASTE this from &lt;a href=&quot;http://www.liberiangeek.net/2012/05/setup-static-dns-servers-in-ubuntu-12-04-precise-pangolin/&quot; target=&quot;_blank&quot;&gt;here &lt;/a&gt;for my own knowledge.&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/2961309371268595749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-setup-static-dns-servers-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/2961309371268595749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/2961309371268595749'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-setup-static-dns-servers-in.html' title='How To Setup Static DNS Servers in Ubuntu'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ifkSn2YB5izpg659RcfesZ1rjltsEgdT_YmU5TfZ-XSy7I9XVWAg1TivWtQ8AnP6G7of8eAR3nScFvIunU72scN_fmmXZWpQCL3f1mseDQQgm2Qa-zV58d7EtoUWaRIKEyvGfJX_aEzk/s72-c/590x259xcustom_dns_precise_1_thumb.png.pagespeed.ic.dVVyGBpE93.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-9117461760769387424</id><published>2012-10-24T01:07:00.000-07:00</published><updated>2012-10-24T01:07:04.389-07:00</updated><title type='text'>Install Razor Lightweight Desktop in Ubuntu 12.10 &amp; 12.04</title><content type='html'>Razor-qt is an advanced, easy-to-use, and fast desktop environment based
 on Qt technologies. It has been tailored for users who value 
simplicity, speed, and an intuitive interface. Unlike most desktop 
environments, Razor-qt also works fine with weak machines.&lt;br /&gt;
&lt;br /&gt;
Razor-qt is a new open-source project, it works with various WMs. This 
simple tutorial will show you how to install Razor Desktop in Ubuntu 
using PPA&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-hwoMFgFr4Zg/UIeg1AOmoII/AAAAAAAAA28/TmDYA5dDwDA/s1600/Razor-desktop-450x360.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-hwoMFgFr4Zg/UIeg1AOmoII/AAAAAAAAA28/TmDYA5dDwDA/s400/Razor-desktop-450x360.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;strong&gt;Install Razor Desktop from PPA:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;
Hit Ctrl+Alt+T, copy and paste this command into terminal and hit enter 
to add the PPA. It supports Ubuntu 12.10, Ubuntu 12.04, 11.10, 11.04, 
and 10.04.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo add-apt-repository ppa:razor-qt/ppa&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;sudo apt-get update&lt;br /&gt;
sudo apt-get install razorqt&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Log out and select to log in with Razor Desktop:&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&lt;/code&gt; &lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/9117461760769387424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/install-razor-lightweight-desktop-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/9117461760769387424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/9117461760769387424'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/install-razor-lightweight-desktop-in.html' title='Install Razor Lightweight Desktop in Ubuntu 12.10 &amp; 12.04'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-hwoMFgFr4Zg/UIeg1AOmoII/AAAAAAAAA28/TmDYA5dDwDA/s72-c/Razor-desktop-450x360.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-8610007534642284035</id><published>2012-10-22T00:45:00.000-07:00</published><updated>2012-10-22T00:45:00.839-07:00</updated><title type='text'>Ubuntu Builder 2.3.0 Adds Support For Ubuntu 12.10 Quantal Quetzal </title><content type='html'>&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;Ubuntu Builder&lt;/b&gt; has been updated to version &lt;b&gt;2.3.0&lt;/b&gt; recently which adds support for &lt;b&gt;Ubuntu 12.10 Quantal Quetzal&lt;/b&gt; and at the same time drops support for &lt;b&gt;Natty&lt;/b&gt;.
 Ubuntu Builder is a tool with GUI that allows users to build a 
customized version of their Ubuntu-based distributions. The tool allows 
to customize either i386 or amd64 OS images.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-JSm7e7JWXd0/UIOnTOTDKEI/AAAAAAAAA2k/yXMYbBXBMeQ/s1600/ubuntu-builder-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;http://3.bp.blogspot.com/-JSm7e7JWXd0/UIOnTOTDKEI/AAAAAAAAA2k/yXMYbBXBMeQ/s1600/ubuntu-builder-1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;b&gt;Ubuntu Builder Installation&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Open the terminal and install &lt;i&gt;Ubuntu Builder 2.3.0 &lt;/i&gt;in Ubuntu 12.10/12.04 or Linux Mint 13 with the following commands:&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;sudo add-apt-repository ppa:f-muriana/ubuntu-builder&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install ubuntu-builder&amp;nbsp;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/8610007534642284035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/ubuntu-builder-230-adds-support-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/8610007534642284035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/8610007534642284035'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/ubuntu-builder-230-adds-support-for.html' title='Ubuntu Builder 2.3.0 Adds Support For Ubuntu 12.10 Quantal Quetzal '/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-JSm7e7JWXd0/UIOnTOTDKEI/AAAAAAAAA2k/yXMYbBXBMeQ/s72-c/ubuntu-builder-1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-12141025469813353</id><published>2012-10-21T00:37:00.002-07:00</published><updated>2012-10-21T00:37:50.215-07:00</updated><title type='text'>Make Unity More Responsive in Ubuntu 12.10 with a Small Tweak</title><content type='html'>Ubuntu 12.10 has been released and you may have already started 
customizing it. Below is a small tweak that will make Unity dash more 
responsive.&lt;br /&gt;
&lt;br /&gt;
Ubuntu 12.10 has a &#39;low graphics mode&#39; that disables some dash and 
launcher effects like active blur and transparency. It also&amp;nbsp;darkens dash
 for improved visibility.&amp;nbsp;By sacrificing these effects, you can improve 
Unity performance.&lt;br /&gt;
&lt;br /&gt;
This low graphics mode is enabled by default in llvmpipe software mode 
which is used as a fallback method if your system doesn&#39;t support 3D 
hardware acceleration. However, on high end systems, you can enable low 
graphics mode without getting into fallback renderer.&lt;br /&gt;
&lt;br /&gt;
Low graphics mode can be enabled by adding following line to&amp;nbsp;&lt;i style=&quot;font-weight: bold;&quot;&gt;~/.xprofile &lt;/i&gt;(if the file doesn&#39;t exist, create it)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;export UNITY_LOW_GFX_MODE=1&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
Logout, and come back for the effect to take place.&lt;br /&gt;
&lt;br /&gt;
To check if you are running llvmpipe software mode or not, run the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;glxgears -info&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In software mode, you will get output like this:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 3.1, 128 bits)&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;GL_VERSION = 2.1 Mesa 9.1-devel&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;i&gt;GL_VENDOR = VMware, Inc.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;Low graphics mode changes are mostly same as disabling blur and 
transparency&amp;nbsp;effects&amp;nbsp;through compiz config settings manager (CCSM). You 
can use either of these methods to improve Unity performance on 
your&amp;nbsp;desktop.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;via &lt;a href=&quot;http://askubuntu.com/&quot;&gt;http://askubuntu.com&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt; &lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/12141025469813353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/make-unity-more-responsive-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/12141025469813353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/12141025469813353'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/make-unity-more-responsive-in-ubuntu.html' title='Make Unity More Responsive in Ubuntu 12.10 with a Small Tweak'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-1198957026925386141</id><published>2012-10-18T01:46:00.002-07:00</published><updated>2012-10-18T01:46:35.068-07:00</updated><title type='text'>How To Add The BackTrack Repository To Ubuntu 12.10/12.04/11.10 </title><content type='html'>&lt;b&gt;BackTrack &lt;/b&gt;is a Ubuntu-based distribution built mainly for 
security testing and is provided for all user levels from beginners to 
advanced. The BackTrack distro provides professional users and hackers a
 large collection of open source tools and utilities that help in 
testing your hardware and network (wireless/wired) for security 
vulnerabilities. Their home page can be accessed &lt;a href=&quot;http://goo.gl/r9rEQ&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; if you want to get more information about this Linux distro.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will help you add the BackTrack repository to Ubuntu
 so that you can install BackTrack packages natively using &quot;&lt;b&gt;sudo apt-get install package&lt;/b&gt;&quot; or from &lt;b&gt;Ubuntu Software Center&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif; font-size: medium;&quot;&gt;Getting Started&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Open the terminal under Ubuntu 12.10/12.04/11.10 or older and run the following commands to add the BackTrack repository:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;wget -q http://all.repository.backtrack-linux.org/backtrack.gpg -O- | sudo apt-key add -&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;sudo sh -c &quot;echo &#39;deb 
http://all.repository.backtrack-linux.org revolution main microverse 
non-free testing&#39; &amp;gt;&amp;gt; /etc/apt/sources.list&quot;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: #ffd966;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;sudo apt-get update&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: #ffd966;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;sudo apt-get upgrade&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: 0;&quot;&gt;To check if the repository is added correctly, you can try to install this BackTrack package:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #ffd966;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;sudo apt-get install backtrack-wallpapers&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: 0;&quot;&gt;Or you can search BackTrack applications from &lt;b&gt;&lt;i&gt;Ubuntu Software Center&lt;/i&gt;&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: 0;&quot;&gt;source http://www.upubuntu.com&amp;nbsp;&lt;/span&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/1198957026925386141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-add-backtrack-repository-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1198957026925386141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1198957026925386141'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-add-backtrack-repository-to.html' title='How To Add The BackTrack Repository To Ubuntu 12.10/12.04/11.10 '/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-3346612621847501162</id><published>2012-10-08T11:18:00.001-07:00</published><updated>2012-10-08T11:18:37.645-07:00</updated><title type='text'>Get Nitrux OS - a new awesome icon set for your desktop</title><content type='html'>Nitrux OS was just uploaded on Gnome-look but it already has a very high rating. According to the author, Nitrux OS will be the default icon theme of the upcoming distro with the same name. The download file is very light, around 2.5 MB but it consists of 5 different sets and all are very awesome.&lt;br /&gt;&lt;br /&gt; If the preview image on gnome-look is not enough for you, here are some screenshots of Nitrux OS Dark icons I just installed on my Mint desktop:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-eaw-JHpef1o/UHMXhWVp7lI/AAAAAAAAA2I/WNqD5dfzHcw/s1600/2012-10-07-214157_1366x768_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;http://1.bp.blogspot.com/-eaw-JHpef1o/UHMXhWVp7lI/AAAAAAAAA2I/WNqD5dfzHcw/s320/2012-10-07-214157_1366x768_scrot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-WU5_lA1OaZ4/UHMXkNBbIvI/AAAAAAAAA2Q/_N9o8VLuLds/s1600/2012-10-07-214216_1366x768_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;http://3.bp.blogspot.com/-WU5_lA1OaZ4/UHMXkNBbIvI/AAAAAAAAA2Q/_N9o8VLuLds/s320/2012-10-07-214216_1366x768_scrot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You can click &lt;a href=&quot;http://gnome-look.org/content/show.php/Nitrux+OS+Icons?content=154496&amp;amp;PHPSESSID=f9242e37d30da38ae14f0f044ed89806&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; to directly download this beautiful icon set here from gnome-look. If you are using Ubuntu or any other Ubuntu-based distro, you can open the terminal and run the following commands to install it from the PPA:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
sudo add-apt-repository ppa:upubuntu-com/themes &lt;br /&gt; sudo apt-get update  &lt;br /&gt; sudo apt-get install nitruxos  &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
source: &lt;a href=&quot;http://www.linuxandlife.com/&quot;&gt;http://www.linuxandlife.com/&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/3346612621847501162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/get-nitrux-os-new-awesome-icon-set-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3346612621847501162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3346612621847501162'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/get-nitrux-os-new-awesome-icon-set-for.html' title='Get Nitrux OS - a new awesome icon set for your desktop'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-eaw-JHpef1o/UHMXhWVp7lI/AAAAAAAAA2I/WNqD5dfzHcw/s72-c/2012-10-07-214157_1366x768_scrot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-6000901544327692815</id><published>2012-10-06T07:30:00.002-07:00</published><updated>2012-10-06T07:30:41.191-07:00</updated><title type='text'>How To Vpn Setting For Ubuntu</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguCyvvhAIkjlHM-u2_YdCJG6h160JwmTWwJe64zxYWpne5HRuIWzCShY5HFs9vzkve1g2V9b5rQ4QuM4_HMOnTApWdGiGnvFvfRsJbSQepiunybNipsxEeXOputx3XBm8dNES-3M37QzYV/s1600/url.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguCyvvhAIkjlHM-u2_YdCJG6h160JwmTWwJe64zxYWpne5HRuIWzCShY5HFs9vzkve1g2V9b5rQ4QuM4_HMOnTApWdGiGnvFvfRsJbSQepiunybNipsxEeXOputx3XBm8dNES-3M37QzYV/s320/url.jpeg&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
For the settings: &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1) Download your key from your VPN provider&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2) Extract the file ( usually .zip)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCWOY0kpY9Kuz1lngd9K-71gW9vIBAAbR7Ihpd02bkT1Ck3SPpOth5vifUE9W9BXP0brA5qBxLuIWfPuQoGj5555ZvMLtnLaUzgeCeYop-cCrM7UTjsqORtx3S1z1sXAc504eM-mslNo2-/s1600/Screenshot+from+2012-10-06+21:48:16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCWOY0kpY9Kuz1lngd9K-71gW9vIBAAbR7Ihpd02bkT1Ck3SPpOth5vifUE9W9BXP0brA5qBxLuIWfPuQoGj5555ZvMLtnLaUzgeCeYop-cCrM7UTjsqORtx3S1z1sXAc504eM-mslNo2-/s320/Screenshot+from+2012-10-06+21:48:16.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3) Open your connection manager, choose VPN Connection&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWfWM91XBDfqMYUptnze2KgU89LTc9C57LJTxAhJHns2sxqFxy5U2uAMixNaWKi-NI38sFoJsvbzoCmr63SNLdKe5GPJxFTbIO_as9Gy4JQT6hQ-ur8x09OHwQxFMKFTxCtAv4mIrCT8t-/s1600/Screenshot+from+2012-10-06+21%253A54%253A56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWfWM91XBDfqMYUptnze2KgU89LTc9C57LJTxAhJHns2sxqFxy5U2uAMixNaWKi-NI38sFoJsvbzoCmr63SNLdKe5GPJxFTbIO_as9Gy4JQT6hQ-ur8x09OHwQxFMKFTxCtAv4mIrCT8t-/s320/Screenshot+from+2012-10-06+21%253A54%253A56.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4) Click Configure VPN , under VPN tab click Import&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhctZ2is-_fXOkco9_85ylZRAC4V6alepYrrUJEyhty_soxigLkX0yHs8lP8jNDuufu8PwYJAhEHuTj-yqfHPWuJpPb-Q-44JItpKUf27K3vznYhozlvj3Svun7r-ltsXi1GnSed1LtzRgW/s1600/Screenshot+from+2012-10-06+22%253A20%253A36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhctZ2is-_fXOkco9_85ylZRAC4V6alepYrrUJEyhty_soxigLkX0yHs8lP8jNDuufu8PwYJAhEHuTj-yqfHPWuJpPb-Q-44JItpKUf27K3vznYhozlvj3Svun7r-ltsXi1GnSed1LtzRgW/s320/Screenshot+from+2012-10-06+22%253A20%253A36.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5) Find your extracted VPN key folder, where ever&amp;nbsp; you put it, double click..&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; sometimes your provider give full certificate, some provider want you to&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; key in your username and password&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QN3NgbJvbD6taAU-zI62J9cXJ39g1loqP3SZCnR3uOR83xQKmS5tPYMM99NgfSKAXJ2YAebCrBxu7rw4qhkVZj3H9JyJX286WD0YlGffw_KmTuSJL0kHHHxf0YzKzRfJ7NyinNvLr57/s1600/Screenshot+from+2012-10-06+22:21:22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_QN3NgbJvbD6taAU-zI62J9cXJ39g1loqP3SZCnR3uOR83xQKmS5tPYMM99NgfSKAXJ2YAebCrBxu7rw4qhkVZj3H9JyJX286WD0YlGffw_KmTuSJL0kHHHxf0YzKzRfJ7NyinNvLr57/s320/Screenshot+from+2012-10-06+22:21:22.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
6) Click Save.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
For the connection&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1) Open your Connection Manager&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2) Choose VPN Connection&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3) Choose your server and wait, if you got failure try another server until you succeed.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Enjoy your VPN Connection...&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
( mind my english)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/6000901544327692815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-vpn-setting-for-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6000901544327692815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/6000901544327692815'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/10/how-to-vpn-setting-for-ubuntu.html' title='How To Vpn Setting For Ubuntu'/><author><name>AkuBuntu</name><uri>http://www.blogger.com/profile/13483680561608995044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQPx4EgUPndCQ_y0X9uY3P5cMjZMbX2b123uqy0zDSnr4MpHfZjt-nCL_XgW7KmBvQ_UR-ugW_ZxZj933Q8WcCU-ldt8-61fZ-VBArJJ4WnIF9DNmO5l1AdbHAst9Tr4/s1600-r/49871_1201486050_1712_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguCyvvhAIkjlHM-u2_YdCJG6h160JwmTWwJe64zxYWpne5HRuIWzCShY5HFs9vzkve1g2V9b5rQ4QuM4_HMOnTApWdGiGnvFvfRsJbSQepiunybNipsxEeXOputx3XBm8dNES-3M37QzYV/s72-c/url.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-8331900609009980238</id><published>2012-09-23T17:43:00.000-07:00</published><updated>2012-09-23T17:44:07.370-07:00</updated><title type='text'>Ubuntu 12.10 Simplifies GRUB Boot Menu</title><content type='html'>Ubuntu 12.10 features a minor but interesting change in GRUB2 Boot Menu.&lt;br /&gt;&lt;br /&gt; Menu entries now have &#39;Ubuntu&#39; as the first option instead of &#39;Ubuntu with Linux (Kernel version)&#39;. Everything else has been tucked into a new &#39;Advanced Options&#39; entry which lists older Kernels and recovery mode options.&lt;br /&gt;&lt;br /&gt; Here is a screenshot of new boot menu:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-6ekYqQ72LKI/UF-rdLBp87I/AAAAAAAAA10/ABLxuh4s15g/s1600/Ubuntu+12.04+Boot+Menu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;http://3.bp.blogspot.com/-6ekYqQ72LKI/UF-rdLBp87I/AAAAAAAAA10/ABLxuh4s15g/s320/Ubuntu+12.04+Boot+Menu.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Advanced Options:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-fpcEqQiBoEQ/UF-rZfPZ21I/AAAAAAAAA1s/0q3ob1TCWhA/s1600/Ubuntu+12.10+GRUB+Advanced+Options.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;http://3.bp.blogspot.com/-fpcEqQiBoEQ/UF-rZfPZ21I/AAAAAAAAA1s/0q3ob1TCWhA/s320/Ubuntu+12.10+GRUB+Advanced+Options.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
For comparison, here is a screenshot of boot menu in Ubuntu 12.04:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-6ekYqQ72LKI/UF-rdLBp87I/AAAAAAAAA10/ABLxuh4s15g/s1600/Ubuntu+12.04+Boot+Menu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;http://3.bp.blogspot.com/-6ekYqQ72LKI/UF-rdLBp87I/AAAAAAAAA10/ABLxuh4s15g/s320/Ubuntu+12.04+Boot+Menu.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
New boot menu makes sense as any first time Linux user may get confused by recovery mode option and Kernel versions. A simple &#39;Ubuntu&#39; entry is enough to tell a user what to do in case he is presented with a boot menu. &lt;br /&gt;&lt;br /&gt; By default GRUB menu is hidden and it is only shown when a system fails to shut properly or Shift key is held during boot time.&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/8331900609009980238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/09/ubuntu-1210-simplifies-grub-boot-menu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/8331900609009980238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/8331900609009980238'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/09/ubuntu-1210-simplifies-grub-boot-menu.html' title='Ubuntu 12.10 Simplifies GRUB Boot Menu'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-6ekYqQ72LKI/UF-rdLBp87I/AAAAAAAAA10/ABLxuh4s15g/s72-c/Ubuntu+12.04+Boot+Menu.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-3631667833794764769</id><published>2012-09-14T07:17:00.000-07:00</published><updated>2012-09-14T07:17:23.373-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="themes"/><title type='text'>Sway Black-Base ORANGE: A Nice Dark GTK3 Theme for Unity and Gnome Shell - Ubuntu 12.04/Linux Mint 13 (Maya).</title><content type='html'>Sway Black-Base ORANGE is an elegant GTK3 theme that uses a striking combination of black and orange colors. The theme can be enabled under Unity and Gnome Shell. Here is a screenshot of Sway Black-Base ORANGE under Ubuntu 12.04 (Unity):&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-lWxCCKlqJjA/UFM7k1az1xI/AAAAAAAAA1M/y6Q7aWU_A38/s1600/Sway+Black-Base+ORANGE-ubuntu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;http://1.bp.blogspot.com/-lWxCCKlqJjA/UFM7k1az1xI/AAAAAAAAA1M/y6Q7aWU_A38/s320/Sway+Black-Base+ORANGE-ubuntu.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Sway Black-Base ORANGE Installation&lt;br /&gt;
&lt;br /&gt;
To install this theme under Ubuntu 12.10/12.04/11.10 or Linux Mint 13 (Maya), open the terminal and issue these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;sudo add-apt-repository ppa:upubuntu-com/gtk3&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install sway-black-orange&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
You can use Gnome Tweak Tool to enable it, or run these two commands:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;gsettings set org.gnome.desktop.interface gtk-theme &#39;Sway Black-Base ORANGE&#39;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;br /&gt;
&lt;/em&gt; &lt;em&gt;gconftool-2 --set --type string /apps/metacity/general/theme &#39;Sway Black-Base ORANGE&#39;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Theme source: gnome-look&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/3631667833794764769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/09/sway-black-base-orange-nice-dark-gtk3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3631667833794764769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/3631667833794764769'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/09/sway-black-base-orange-nice-dark-gtk3.html' title='Sway Black-Base ORANGE: A Nice Dark GTK3 Theme for Unity and Gnome Shell - Ubuntu 12.04/Linux Mint 13 (Maya).'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-lWxCCKlqJjA/UFM7k1az1xI/AAAAAAAAA1M/y6Q7aWU_A38/s72-c/Sway+Black-Base+ORANGE-ubuntu.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8823294493187598017.post-1662458803075622648</id><published>2012-08-08T10:16:00.000-07:00</published><updated>2012-08-08T10:16:36.470-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="applications"/><title type='text'>Install Latest Build of Terminator from PPA</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-sCVZqjWTFwo/UCKeUYiCt_I/AAAAAAAAA0w/wSjSTravLu0/s1600/Terminator,+Open+Multiple+Terminals+in+Ubuntu+Linux.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;http://3.bp.blogspot.com/-sCVZqjWTFwo/UCKeUYiCt_I/AAAAAAAAA0w/wSjSTravLu0/s320/Terminator,+Open+Multiple+Terminals+in+Ubuntu+Linux.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Terminator&amp;nbsp;allows users to have multiple terminals in one window and use  key bindings to switch between them.&amp;nbsp;It provides an efficient way of  filling a large area of screen space with terminals.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Some new features and fixes have been included in Terminator since its last release, so I have packaged it into a PPA.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Changes:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;Auto-resize columns/rows:&amp;nbsp;Double clicking on a splitter evenly redistributes columns/rows in that grouping&lt;/li&gt;
&lt;li&gt;It is now possible to rename multiple windows of Terminator using a keyboard shortcut&lt;/li&gt;
&lt;li&gt;You can now add a keyboard shortcut for inserting terminal numbers&lt;/li&gt;
&lt;li&gt;Added possibility to rotate the paned containers. Super + R for  rotating terminals clockwise and Super + Shift + R for  rotating&amp;nbsp;terminals&amp;nbsp;counter-clockwise&lt;/li&gt;
&lt;li&gt;Fixed,&amp;nbsp;titlebars not refreshing when using some keyboard shortcuts&lt;/li&gt;
&lt;li&gt;Fixed initial terminal sizing with non-default font sizes&lt;/li&gt;
&lt;li&gt;Many other fixes&lt;/li&gt;
&lt;/ul&gt;You can download latest build in Ubuntu 12.04 and 12.10 by running the  commands below. Do note that this is not an official stable release from  developers.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;b&gt;&lt;i&gt;sudo add-apt-repository&amp;nbsp;ppa:niteshgupta16/ubuntuvibes&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;sudo apt-get update&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;sudo apt-get install terminator&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;hr /&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Some new features and fixes have been included in Terminator since its last release, so I have packaged it into a PPA.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Ubuntu Linux Guide Kubuntu Edubuntu Info Tips And Tricks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xtrabuntu.blogspot.com/feeds/1662458803075622648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xtrabuntu.blogspot.com/2012/08/install-latest-build-of-terminator-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1662458803075622648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8823294493187598017/posts/default/1662458803075622648'/><link rel='alternate' type='text/html' href='http://xtrabuntu.blogspot.com/2012/08/install-latest-build-of-terminator-from.html' title='Install Latest Build of Terminator from PPA'/><author><name>TheRev</name><uri>http://www.blogger.com/profile/13109335580037676056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='25' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghs62WNEEf5clx6LUKIQUUqrhxmxj7Dw8i78T3pe6eDRJkCP_kYuBXyLSdcquDjhw4_E0q_edCJfTTQR-9TPdH1InDZOH-VbeJJufjJLbvef6bg2V3cjPQ5a0fSCMgiYw/s220/3275616459_a2d79866ac.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-sCVZqjWTFwo/UCKeUYiCt_I/AAAAAAAAA0w/wSjSTravLu0/s72-c/Terminator,+Open+Multiple+Terminals+in+Ubuntu+Linux.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>