Lua error and fails to run....
Don't know lua so of no help.Conky: llua_do_call: function conky_clock_rings execution failed: /home/glen/conky/concept-update-Ir/demo.lua:145: attempt to perform arithmetic on local 'value' (a nil value)
Lua error and fails to run....
Don't know lua so of no help.Conky: llua_do_call: function conky_clock_rings execution failed: /home/glen/conky/concept-update-Ir/demo.lua:145: attempt to perform arithmetic on local 'value' (a nil value)
@kyd2 I used some of your artwork for mine.
This is just one.
Thanks for sharing that... Here is your Conky (which is now my Conky!) in English, with a few modifications to adapt it to my low-end Lubuntu PC.
Code:update_interval 1total_run_times 0 net_avg_samples 1 cpu_avg_samples 2 imlib_cache_size 0 double_buffer yes no_buffers yes format_human_readable use_xft yes xftfont Droid Sans:size=8 override_utf8_locale yes text_buffer_size 2048 own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes update_interval 1 total_run_times 0 net_avg_samples 1 cpu_avg_samples 2 imlib_cache_size 0 double_buffer yes no_buffers yes format_human_readable use_xft yes xftfont Droid Sans:size=8 override_utf8_locale yes text_buffer_size 2048 own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 0 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager alignment top_right gap_y 25 gap_x 25 border_inner_margin 8 minimum_size 180 600 maximum_width 230 maximum_height 700 default_bar_size 92 6 draw_shades yes default_shade_color 000000 default_color FFFFFF TEXT # |--${font Droid Sans:style=Bold:size=10}TIMEDATE${font} ${font arial black:size=10}${color green}TIME/${color}${font arial black:size=9}DATE${color green} ${hr 2}$color$font ${font :size=25}$alignc${time %l:%M %p}$font $alignc${time %A, %B %d, %Y} # |--${font Droid Sans:style=Bold:size=10}UPTIME${font} ${font arial black:size=10}${color green}SYSTEM${color}${font arial black:size=9}UPTIME${color green} ${hr 2}$color$font ${font :size=14}$alignc${uptime}$font # |--${font Droid Sans:style=Bold:size=10}SYSTEM${font} ${font arial black:size=10}${color green}SYSTEM${color}${font arial black:size=9}INFO${color green} ${hr 2}$color$font ${color white}Processor:${alignr}intel P4 HT Max. Frequency:${alignr}4000MHz Total Ram:${alignr}$memmax HDD Capacity:${alignr}${fs_size /home} Kernel:${alignr}$kernel on $machine Distibution:${alignr}${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-13} $machine # |--${font Droid Sans:style=Bold:size=10}CPU${font} ${font arial black:size=10}${color green}CPU${color}${font arial black:size=9}UTILISATION${color green} ${hr 2}$color$font ${voffset 1}CPU ${color green}${font arial black:size=8}1$font: ${font Droid Sans:style=Bold:size=8}$color${cpu cpu1}%${goto 135}${color ffffff}${voffset 1}CPU ${color green}${font arial black:size=8}2$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}% ${color forestgreen}${cpugraph cpu1 24,105 00ff00 00FFCC -l}${alignr}${color forestgreen}${cpugraph cpu2 24,105 00FFCC 00ff00 -l} #${voffset 1}${color white}CPU $color${color green}${font arial black:size=8}3$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font}${voffset 1}${goto 135}CPU ${color green}${font arial black:size=8}4$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu4}% #${color forestgreen}${cpugraph cpu3 24,105 00ff00 003EFF -l}${alignr}${color forestgreen}${cpugraph cpu4 24,105 003EFF 00ff00 -l} #${voffset 1}${color white}CPU $color${color green}${font arial black:size=8}5$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu5}%${font}${voffset 1}${goto 135}CPU ${color green}${font arial black:size=8}6$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu6}% #${color forestgreen}${cpugraph cpu5 24,105 00ff00 CC00FF -l}${alignr}${color forestgreen}${cpugraph cpu6 24,105 CC00FF 00FF00 -l} ${goto 83}${color ffffff}${voffset 1}All ${color green}${font arial black:size=8}CPUs$color$font: ${font Droid Sans:style=Bold:size=8}${cpu}%${font}${goto 160} ${color forestgreen}${cpugraph 24,230 00FFCC 00ff00 -l} # |--${font Droid Sans:style=Bold:size=10}RAM${font} ${font arial black:size=10}${color green}RAM${color}${font arial black:size=9}UTILISATION${color green} ${hr 2}$color$font ${voffset 6}${offset 1}${voffset -8}${voffset 4}${voffset -2}${color green}${font arial black:size=7}FREE$color$font: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font}${goto 140}${color green}${font arial black:size=7}USED$color$font: ${font Droid Sans:style=Bold:size=8}${mem}${font} $memperc% ${color 003EFF}${alignr}${membar 10,200} # |--${font Droid Sans:style=Bold:size=10}HARDDISK${font} ${font arial black:size=10}${color green}HARDDISK${color}${font arial black:size=9}CAPACITY${color green} ${hr 2}$color$font ${voffset 2}${font arial black:size=10}${color2}${voffset -2}${font}${color6} ${color green}${font arial black:size=7}HOME$color$font ${goto 140}${fs_used /home} / ${fs_size /home} ${fs_used_perc /home}%${color CC00FF}${alignr}${fs_bar 12,200 /home} # |--${font Droid Sans:style=Bold:size=10}Processes${font} ${font arial black:size=10}${color green}PROCESS${color}${font arial black:size=9}LIST${color green} ${hr 2}$color$font ${color white}Processes:$color $processes ${goto 177}${color white}Current:${color red} $running_processes $color ${goto 60}${color green}${font arial black:size=7}CPU USAGE:$font$color ${font arial black:size=7}NAME${goto 100}PID${goto 150}CPU%${alignr}%MEM $font ${color red}${lua_parse top cpu 1}${color green}${font arial black:size=7}1$color$font. ${color red}${top name 1}${alignr 80}${top pid 1}$color${alignr 35}${color red}${font arial black:size=7}${top cpu 1}$color$font${alignr}${color red}${top mem 1}$color ${lua_parse top cpu 2}${color green}${font arial black:size=7}2$color$font. ${top name 2}${alignr 80}${top pid 2}${alignr 35}${color green}${font arial black:size=7}${top cpu 2}$color$font${alignr}${top mem 2} ${lua_parse top cpu 3}${color green}${font arial black:size=7}3$color$font. ${top name 3}${alignr 80}${top pid 3}${alignr 35}${color green}${font arial black:size=7}${top cpu 3}$color$font${alignr}${top mem 3} ${lua_parse top cpu 4}${color green}${font arial black:size=7}4$color$font. ${top name 4}${alignr 80}${top pid 4}${alignr 35}${color green}${font arial black:size=7}${top cpu 4}$color$font${alignr}${top mem 4} ${lua_parse top cpu 5}${color green}${font arial black:size=7}5$color$font. ${top name 5}${alignr 80}${top pid 5}${alignr 35}${color green}${font arial black:size=7}${top cpu 5}$color$font${alignr}${top mem 5} ${goto 60}${color green}${font arial black:size=7}RAM USAGE:$font$color ${font arial black:size=7}NAME${goto 100}PID${goto 150}CPU%${alignr}%MEM $font ${color red}${lua_parse top mem 1}${color green}${font arial black:size=7}1$color$font. ${color red}${top_mem name 1}${alignr 80}${top_mem pid 1}${alignr 35}${top_mem cpu 1}$color${alignr}${color red}${font arial black:size=7}${top_mem mem 1}$color$font ${lua_parse top mem 2}${color green}${font arial black:size=7}2$color$font. ${top_mem name 2}${alignr 80}${top_mem pid 2}${alignr 35}${top_mem cpu 2}$color${alignr}${color green}${font arial black:size=7}${top_mem mem 2} ${lua_parse top mem 3}${color green}${font arial black:size=7}3$color$font. ${top_mem name 3}${alignr 80}${top_mem pid 3}${alignr 35}${top_mem cpu 3}${alignr}${color green}${font arial black:size=7}${top_mem mem 3}$color$font ${lua_parse top mem 4}${color green}${font arial black:size=7}4$color$font. ${top_mem name 4}${alignr 80}${top_mem pid 4}${alignr 35}${top_mem cpu 4}${alignr}${color green}${font arial black:size=7}${top_mem mem 4}$color$font ${lua_parse top mem 5}${color green}${font arial black:size=7}5$color$font. ${top_mem name 5}${alignr 80}${top_mem pid 5}${alignr 35}${top_mem cpu 5}${alignr}${color green}${font arial black:size=7}${top_mem mem 5}$color$font # |--${font Droid Sans:style=Bold:size=10}NETWORK${font} ${font arial black:size=10}${color green}NETWORK${color}${font arial black:size=9}ACTIVITY${color green} ${hr 2}$color$font ${font arial black:size=7}${color green}DOWNLOAD: $font$color${downspeed eth0} k/s ${alignr} ${color forestgreen}${downspeedgraph eth0 27,135 00ff00 CC00FF -l} ${color ffffff}${voffset 1}${goto 150}Total: ${font Droid Sans:style=Bold:size=8}${totaldown eth0}${font} ${color #42AE4A} ${color ffffff}${font arial black:size=7}${color green}UPLOAD: $font$color${upspeed eth0} k/s ${alignr}$color ${color forestgreen}${upspeedgraph eth0 27,135 00ff00 003EFF -l} ${color ffffff}${voffset 1}${goto 150}Total: ${font Droid Sans:style=Bold:size=8}${totalup eth0}${font}${color #42AE4A} ${font arial black:size=6}${color green}CONKY CONFIGURATION FILE LOCATION$color$font ${font arial black:size=8}${color white}/etc/conky/conky.conf$color ${color red}OR$color ${color white}~.conkyrc$font$color
I have had no time to for myself as of late so with that being said, Now is the time. I have not found the error (as i am new to lua as well) So on to the communuty that i love so much to ask for help. If anyone would like to help This is the file. Re-post with corrections and explanation please. Please do NOT post outside this thread until all errors are fixed and code is clean (no errors).
My code:
background yes
use_xft yes
xftfont Segoe UI:size=9
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window no
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 5
maximum_width 300
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color black
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
$sysname $kernel on $machine
${time %A}$alignr${time %F}
Uptime $alignr $uptime
$nodename $sysname $kernel on $machine
CPU0: ${freq}MHz $cpu% $cpubar
CPU1: ${freq}MHz $cpu% $cpubar
RAM ($memmax): $memperc% ${membar 6}$color
Swap ($swapmax): $swapperc% ${swapbar 6}$color
Hostname $alignr $nodename
wlan0 $alignr ${addr wlan0}
Download $alignr ${downspeed wlan0} kb/s
${downspeedgraph wlan0}
Upload $alignr ${upspeed wlan0} kb/s
${upspeedgraph wlan0}
I have a conky intended to display the music I'm currently listening to, in large font, across the screen. However, I can't make the window size wider, despite fiddling with own_window, own_window_type, minimum_size, and maximum_width some.
Here is the file:
Code:background no use_xft yes xftfont Roboto:size=25 xftalpha 1 update_interval 0.5 total_run_times 0 own_window yes own_window_type desktop own_window_transparent yes own_window_hints undecorated,above,sticky,skip_taskbar,skip_pager double_buffer no minimum_size 1000 0 maximum_width 2000 max_text_width 0 draw_shades no draw_outline no draw_borders no draw_graph_borders no alignment bm gap_x -100 gap_y 0 no_buffers no uppercase no cpu_avg_samples 2 net_avg_samples 5 override_utf8_locale yes use_spacer right text_buffer_size 1024 color1 c3f095 color2 3c0f6a color3 248f24 times_in_seconds true TEXT ${offset -400} ${voffset 100} ${font Steelfish:size=30}${color3}${scroll 50 2 ${execi 1 python /usr/bin/lastFMfeedparser}} ${if_running audacious}${color black}${font Star Jedi:size=22}${scroll 50 3 ${audacious_title 100}}$endif
Try setting a fixed width.
eg
Code:minimum_size 2000 0 # minwidth minheight maximum_width 2000 # maxwidth
I don't post often but wanted to share my Conky. I spent quite a few hours tweaking it. It's a happy medium between eye-candy and simplicity. The latter of which is especially important since I'm running it on a 5 yr old netbook with only an Atom processor.
It's 3 separate conkyrc files.
#1#2Code:alignment top_left background yes border_width 1 border_inner_margin 0 default_color white draw_borders no draw_outline no draw_shades no double_buffer yes use_xft yes xftfont font Ubuntu Medium:size=16 gap_x 10 gap_y 42 minimum_size 190 140 maximum_width 300 no_buffers yes out_to_console no out_to_stderr no extra_newline no own_window yes own_window_colour black own_window_hints skip_pager,skip_taskbar,below,sticky,undecorated own_window_argb_value 100 own_window_argb_visual yes own_window_class Conky own_window_title ConkyMain update_interval 1.0 uppercase no use_spacer none short_units yes TEXT ${image $HOME/.bin/bg.png -p -1,-1 -s 196x145}${voffset 10}$alignc tonya $alignc${time %D} ${font Ubuntu Medium:size=11}$hr ${voffset 16}$alignc Uptime: $uptime#3Code:alignment top_left background yes border_width 1 border_inner_margin 2 default_color white draw_borders no draw_outline no draw_shades no double_buffer yes use_xft yes xftfont Ubuntu Regular:size=9 gap_x 10 gap_y 207 minimum_size 190 180 maximum_width 190 no_buffers yes out_to_console no out_to_stderr no extra_newline no own_window yes own_window_colour black own_window_argb_value 100 own_window_argb_visual yes own_window_class Conky own_window_title ConkyForecast own_window_hints skip_pager,skip_taskbar,below,undecorated,sticky update_interval 1.0 uppercase no use_spacer none short_units yes temperature_unit fahrenheit TEXT ${image $HOME/.bin/bigbg.png -p -1,-1 -s 200x190} ${voffset -7}${font Ubuntu Medium:size=11}${alignc}Weather${font} ${offset 7}${voffset 4}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KDAB temperature 60}°F \ ${goto 68}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KDAB humidity 60}% hum \ ${alignr 7}${if_empty ${execi 3600 $HOME/.bin/conktempscrpt.sh}} Calm$endif\ ${execi 3600 $HOME/.bin/conktempscrpt.sh} ${voffset 4}${alignc}${if_empty ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KDAB weather 60}}No Precipitation$endif\ ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ KDAB weather 60} ${hr} ${offset 7}${font Ubuntu Regular:size=9}${execi 14400 $HOME/weather/weathr.sh 5}, \ ${offset 7}${execi 14400 $HOME/weather/weathr.sh 6} ${offset 7}${font Ubuntu Medium:size=9}High: ${font}${execi 14400 $HOME/weather/weathr.sh 8} \ ${font Ubuntu Medium:size=9}Low: ${font}${execi 14400 $HOME/weather/weathr.sh 7}${execpi 14400 $HOME/weather/weathr.sh '' 9 140 78} ${offset 7}${execi 14400 $HOME/weather/weathr.sh 10}, \ ${execi 14400 $HOME/weather/weathr.sh 11} ${offset 7}${font Ubuntu Medium:size=9}High: ${font}${execi 14400 $HOME/weather/weathr.sh 13} \ ${font Ubuntu Medium:size=9}Low: ${font}${execi 14400 $HOME/weather/weathr.sh 12}${execpi 14400 $HOME/weather/weathr.sh '' 14 140 111} ${offset 7}${execi 14400 $HOME/weather/weathr.sh 15}, \ ${execi 14400 $HOME/weather/weathr.sh 16} ${offset 7}${font Ubuntu Medium:size=9}High: ${font}${execi 14400 $HOME/weather/weathr.sh 18} \ ${font Ubuntu Medium:size=9}Low: ${font}${execi 14400 $HOME/weather/weathr.sh 17}${execpi 14400 $HOME/weather/weathr.sh '' 19 140 142}Here's a couple of screenshots: The first with traditional Lubuntu bg, and 2nd with a more eye-catching one.Code:alignment top_left background yes border_width 1 border_inner_margin 0 color0 587E9D color1 002400 color8 323232 default_bar_size 110 15 default_color white draw_borders no draw_graph_borders no draw_outline no draw_shades no double_buffer yes use_xft yes xftfont Ubuntu Regular:size=9 gap_x 10 gap_y 410 minimum_size 190 140 maximum_width 190 max_text_width 32 no_buffers yes out_to_console no out_to_stderr no extra_newline no own_window yes own_window_colour black own_window_argb_value 100 own_window_argb_visual yes own_window_hints skip_pager,skip_taskbar,below,sticky,undecorated own_window_class Conky update_interval 2.0 uppercase no use_spacer none short_units yes show_graph_scale no show_graph_range no TEXT ${image $HOME/.bin/bg.png -p -1,-1 -s 196x145}${image $HOME/.bin/bar.png -p 70,16 -s 110x15}${offset 10}${voffset 8}Disk I/O ${offset 8}${diskiograph_write sda5 15, 110 000000 587E9D} ${offset 10}${diskio_write sda5} ${offset 10}${voffset 5}CPU ${offset 30}${cpugraph cpu0 15, 110 000000 587E9D}${image $HOME/.bin/bar.png -p 70,51 -s 110x15} ${offset 10}${voffset -2}${cpu cpu0}% ${offset 10}${voffset 5}RAM ${offset 28}${color0}${memgraph 15, 110 000000 587E9D}${color}${image $HOME/.bin/bar.png -p 70,84 -s 110x15} ${offset 10}${voffset -2}$mem ${offset 10}${voffset 2}Swap ${offset 21}${color0}${swapbar}${offset -110}${color8}${execbar echo 0}${image $HOME/.bin/bar.png -p 70,114 -s 110x15}${color} ${offset 10}${voffset -5}$swap
2015-06-10-081639_1024x600_scrot.png2015-06-10-081928_1024x600_scrot.png
C'mon, try Linux. You know you buntu!
Dell Inspiron 910 (Mini 9) Netbook running:
currently Lubuntu 14.04; formerly Ubuntu 8.04 and 10.04
Bookmarks