Re: My Conky Config
The conky from the Arch repos does not have Lua support. You need to install conky-lua from the AUR:
http://aur.archlinux.org/packages.php?ID=31589
BTW if you wish to contact me, send me an e-mail instead of a PM.
CrunchBang Linux Forums » Tips, Tricks & Scripts » My Conky Config
The conky from the Arch repos does not have Lua support. You need to install conky-lua from the AUR:
http://aur.archlinux.org/packages.php?ID=31589
Finally it is working for me! Thank'e!:)
has anyone here seen this? (yes I stole the graphic from it)
It is an amazing bit of work by sen7 (link)
As anyone tried this setup? I've been trying, but i cant figure out how to do it.
Did you update your conky and read the readme?
Anybody knows how to create the same calendar?
Is it conky or lua script? I mean transparency with some numbers and month, red outline?
Just a guess, but since I don't see a date highlighted in the calendar, maybe it's part of the wallpaper?
Just a guess, but since I don't see a date highlighted in the calendar, maybe it's part of the wallpaper?
yes, that calendar is part of the wallpaper
It's my first conky config ;]
conkyboxes
#!/bin/bash
killall conky
sleep 2s
conky -c ~/.conky/conky_sys &
conky -c ~/.conky/conky_proc &
conky -c ~/.conky/conky_mem &
conky -c ~/.conky/conky_net &
conky -c ~/.conky/conky_disk &
conky -c ~/.conky/conky_time_date &
conky -c ~/.conky/conky_time_watch &
conky -c ~/.conky/conky_proc_task &
conky -c ~/.conky/conky_mem_use &
conky -c ~/.conky/conky_net_graph &
conky -c ~/.conky/conky_disk_graph &
conky -c ~/.conky/conky_rhythmbox &
conky -c ~/.conky/conky_sys_t &
conky -c ~/.conky/conky_proc_t &
conky -c ~/.conky/conky_mem_t &
conky -c ~/.conky/conky_net_t &
conky -c ~/.conky/conky_disk_t &
conky -c ~/.conky/conky_time_t &
conky -c ~/.conky/conky_proc_task_t &
conky -c ~/.conky/conky_mem_use_t &
conky -c ~/.conky/conky_net_graph_t &
conky -c ~/.conky/conky_disk_graph_t &
exit 0conky_disk
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1145
gap_y 3
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${font Snap.se:style=Bold:size=12}Name $alignr Used / Size
${font Snap.se:style=Bold:size=10}Root $alignr ${fs_used /} / ${fs_size /}
Home $alignr ${fs_used /home} / ${fs_size /home}
Video $alignr ${fs_used /media/video} / ${fs_size /media/video}
Various $alignr ${fs_used /media/various} / ${fs_size /media/various}
Windows $alignr ${fs_used /media/windows} / ${fs_size /media/windows}
${hr 2}conky_disk_graph
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1145
gap_y 146
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${alignc}${font Snap.se:style=Bold:size=12}DISK 1
${font Snap.se:style=Bold:size=9} READ ${diskio_read /dev/sda} ${alignr}WRITE ${diskio_write /dev/sda}
${diskiograph_read /dev/sda 8,112} | ${diskiograph_write /dev/sda 8,112}
${alignc}${font Snap.se:style=Bold:size=12}DISK 2
${font Snap.se:style=Bold:size=9} READ ${diskio_read /dev/sdb} ${alignr}WRITE ${diskio_write /dev/sdb}
${diskiograph_read /dev/sdb 8,112} | ${diskiograph_write /dev/sdb 8,112}
${hr 2}conky_disk_graph_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1110
gap_y 147
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}${alignc} G
${alignc} R
${alignc} A
${alignc} P
${alignc} Hconky_disk_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1110
gap_y 14
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}
${alignc} D
${alignc} I
${alignc} S
${alignc} Kconky_mem
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 585
gap_y 3
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${font Snap.se:style=Bold:size=11}
RAM $alignr$mem / $memmax
${membar 10,240}
SWAP $alignr$swap / $swapmax
${swapbar 10,240}
${hr 2}conky_mem_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 550
gap_y 14
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}${alignc} M
${alignc} E
${alignc} M
${alignc} O
${alignc} R
${alignc} Yconky_mem_use
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 585
gap_y 145
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}Name ${alignr}MEM%
${font Snap.se:style=Bold:size=10}${top_mem name 1} $alignr ${top mem 1}%
${top_mem name 2} $alignr ${top mem 2}%
${top_mem name 3} $alignr ${top mem 3}%
${top_mem name 4} $alignr ${top mem 4}%
${top_mem name 5} $alignr ${top mem 5}%
${hr 2}conky_mem_use_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 550
gap_y 150
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}
${alignc} U
${alignc} S
${alignc} Econky_net
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 865
gap_y 3
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${font Snap.se:style=Bold:size=12}Interface: $alignr ${gw_iface}
${font Snap.se:style=Bold:size=10}IP address: $alignr ${addr eth0}
Mask: $alignr ${execi 1 /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $4}' | sed 's/Mask:/\ /'}
Gateway: $alignr ${gw_ip}
Downloaded: $alignr ${totaldown eth0}
Uploaded: $alignr ${totalup eth0}
${hr 2}conky_net_graph
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 865
gap_y 145
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=10}Download Speed: ${alignr}${downspeedf eth0} k/s
${downspeedgraph eth0 20,240}
Upload Speed: ${alignr}${upspeedf eth0} k/s
${upspeedgraph eth0 20,240}
${hr 2}conky_net_graph_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 830
gap_y 147
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}${alignc} G
${alignc} R
${alignc} A
${alignc} P
${alignc} Hconky_net_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 830
gap_y 25
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}
${alignc} N
${alignc} E
${alignc} Tconky_proc
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 305
gap_y 3
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${font Snap.se:style=Bold:size=12}${alignc}Intel Core2Quad Q8400
${font Snap.se:style=Bold:size=10}Freq $alignr${freq_g} GHz
CPU1 $alignc${cpubar cpu0 10,125} $alignr${exec sensors | grep 'Core 0' | awk '{print $3}' | awk -F'+' '{print $2}'}
CPU2 $alignc${cpubar cpu1 10,125} $alignr${exec sensors | grep 'Core 1' | awk '{print $3}' | awk -F'+' '{print $2}'}
CPU3 $alignc${cpubar cpu2 10,125} $alignr${exec sensors | grep 'Core 2' | awk '{print $3}' | awk -F'+' '{print $2}'}
CPU4 $alignc${cpubar cpu3 10,125} $alignr${exec sensors | grep 'Core 3' | awk '{print $3}' | awk -F'+' '{print $2}'}
${hr 2}conky_proc_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 275
gap_y 2
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}
${alignc} P
${alignc} R
${alignc} O
${alignc} Cconky_proc_task
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 305
gap_y 145
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}Name ${alignr}CPU%
${font Snap.se:style=Bold:size=10}${top name 1} $alignr${top cpu 1}%
${top name 2} $alignr${top cpu 2}%
${top name 3} $alignr${top cpu 3}%
${top name 4} $alignr${top cpu 4}%
${top name 5} $alignr${top cpu 5}%
${hr 2}conky_proc_task_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 275
gap_y 135
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}${alignc} T
${alignc} A
${alignc} S
${alignc} K
${alignc} Sconky_rhythmbox
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 520 40
maximum_width 520
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 585
gap_y 830
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=14}
${alignc}RHYTHMBOX
${hr 2}
${font Snap.se:style=Bold:size=12}Now playing: ${alignr}Duration
${font Snap.se:style=Bold:size=10}${scroll 50 2 ${exec rhythmbox-client --no-start --no-present --print-playing-format %tt | sed 's/.mp3/\ /g' | sed 's/.ape/\ /g' | sed 's/.flac/\ /g' | sed 's/.mpc/\ /g'}}${alignr}${exec rhythmbox-client --no-start --no-present --print-playing-format %te} / ${exec rhythmbox-client --no-start --no-present --print-playing-format %td}
${font Snap.se:style=Bold:size=12}${alignc}Volume (${if_match "${execi 6 expr length "`rhythmbox-client --print-volume | sed 's/Głośność odtwarzania wynosi /x/g' | sed 's/x1,000000./1/g'`"}" == "1"}${execi 6 rhythmbox-client --print-volume | sed 's/,000000./\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g' | sed 's/1/100/g' }${else}${execi 6 rhythmbox-client --print-volume | sed 's/0000./\ /g' | sed 's/0,/\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g'}${endif}% )
${if_match "${execi 6 expr length "`rhythmbox-client --print-volume | sed 's/Głośność odtwarzania wynosi /x/g' | sed 's/x1,000000./1/g'`"}" == "1"}${execibar 6 rhythmbox-client --print-volume | sed 's/,000000./\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g' | sed 's/1/100/g' }${else}${execibar 6 rhythmbox-client --print-volume | sed 's/0000./\ /g' | sed 's/0,/\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g'}${endif}
${hr 2}conky_sys
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 240 40
maximum_width 240
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 32
gap_y 3
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${alignc}${font Snap.se:style=Bold:size=12}Debian Linux
${font Snap.se:style=Bold:size=10}Host: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
${hr 2}conky_sys_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 0
gap_y 14
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}${alignc} S
${alignc} Y
${alignc} S
${alignc} T
${alignc} E
${alignc} Mconky_time_date
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 205 40
maximum_width 205
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1430
gap_y 4
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${hr 2}
${voffset 0}${font andale mono:size=11}${color ffffff}${execpi 600 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 22 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc -10} /' | sed /" $DJS "/s/" $DJS "/" "'${color red}'"$DJS"'${color ffffff}'" "/}${font}
${hr 2}conky_time_t
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 25 40
maximum_width 25
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1395
gap_y 14
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=12}
${alignc} T
${alignc} I
${alignc} M
${alignc} Econky_time_watch
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 30 40
maximum_width 30
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 1636
gap_y 14
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font LCD:style=Bold:pixelsize=20}${alignc}${time %H}
${font LCD:style=Bold:pixelsize=20}${alignc}${time %M}
${font LCD:style=Bold:pixelsize=20}${alignc}${time %S}hi mlodszy , very nice setup, i like the conky-boxes style ![]()
hi mlodszy , very nice setup, i like the conky-boxes style
Yes ;] Your file help and inspire to use meny configs. When I build my conky setup I read meny time this topic.
I found litle bug in my conky_rhythmbox. It was in Volume section. Here is revised config:
ckground yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 520 40
maximum_width 520
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_left
gap_x 585
gap_y 830
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
TEXT
${font Snap.se:style=Bold:size=14}
${alignc}RHYTHMBOX
${hr 2}
${font Snap.se:style=Bold:size=12}Now playing: ${alignr}Duration
${font Snap.se:style=Bold:size=10}${scroll 50 2 ${exec rhythmbox-client --no-start --no-present --print-playing-format %tt | sed 's/.mp3/\ /g' | sed 's/.ape/\ /g' | sed 's/.flac/\ /g' | sed 's/.mpc/\ /g'}}${alignr}${exec rhythmbox-client --no-start --no-present --print-playing-format %te} / ${exec rhythmbox-client --no-start --no-present --print-playing-format %td}
${font Snap.se:style=Bold:size=12}${alignc}Volume (${if_match "${execi 6 expr length "`rhythmbox-client --print-volume | sed 's/Głośność odtwarzania wynosi /x/g' | sed 's/x1,000000./1/g'`"}" == "1"}${execi 6 rhythmbox-client --print-volume | sed 's/\,000000\./\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g' | sed 's/1/100/g' }${else}${execi 6 rhythmbox-client --print-volume | sed 's/0000\./\ /g' | sed 's/0,/\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g'}${endif}% )
${if_match "${execi 6 expr length "`rhythmbox-client --print-volume | sed 's/Głośność odtwarzania wynosi /x/g' | sed 's/x1,000000./1/g'`"}" == "1"}${execibar 6 rhythmbox-client --print-volume | sed 's/\,000000\./\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g' | sed 's/1/100/g' }${else}${execibar 6 rhythmbox-client --print-volume | sed 's/0000\./\ /g' | sed 's/0,/\ /g' | sed 's/Głośność odtwarzania wynosi /\ /g'}${endif}
${hr 2}I would like my conky calendar to start with monday instead of sunday.
I use this line:
${color}${font Mono:bold:size=10}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color}'" "/}
cal -m should be the way, but it won't work.... ![]()
Edit:
I figured out this has something to do with the settings for locale....
so i need help on that... i will post somewhere else
Last edited by Tunafish (2010-03-31 13:31:29)
nothing particularly groundbreaking, but have written a couple of lua functions to convert numbers and dates to text
so 19 becomes "nineteen"
and 23 (as in 23rd of month) becomes "twenty third"UPDATED--------------
you can get stuff like this:here is the script that made the above:
currently the number conversion function only goes up to 999
i have made a separate time to words function
This is great but I can't work out how to add it to my conky, any help would be great (I have conky-lua installed, running Arch)
mrpeachy wrote:nothing particularly groundbreaking, but have written a couple of lua functions to convert numbers and dates to text
so 19 becomes "nineteen"
and 23 (as in 23rd of month) becomes "twenty third"UPDATED--------------
you can get stuff like this:here is the script that made the above:
currently the number conversion function only goes up to 999
i have made a separate time to words functionThis is great but I can't work out how to add it to my conky, any help would be great (I have conky-lua installed, running Arch)
glad you like it
you have to save the script for example as "words.lua"
then in the conky config, after the settings part, but before the "TEXT"
have lines like this:
lua_load /~path to lua script~/words.lua
lua_draw_hook_pre draw_text
if you can already run other lua scripts in conky you will be fine... but I understand that the version of conky available in the arch repos may not support lua... as in anonymous' post http://crunchbanglinux.org/forums/post/58708/#p58708
I made a fuzzyclock. Because it's nice to be vague. and boy, does this clock get vague - try setting 'fuzziness' to 'pointless' and see where that gets you. ![]()
It's running top left on this screenshot. Some of ali's frankly delicious rings are on the far right.

Here's the Lua script. Thanks to mrpeachy and londonali1010 for inspiration and the odd line of code here and there. Although, friendly note to mrpeachy: indenting and comments are your friends! ![]()
--[[
jt's fuzzyclock, shamelessly ripped off mrpeachy's words and londonali1010's rings
Usage (in .conkyrc):
lua_load /path/to/fuzzyclock.lua
lua_draw_hook_pre conky_fuzzyclock
]]
-- make customisation easier
-- most people shouldn't need to change anything outside this table
settings = {
pre_text="it is ", -- printed before the time
post_text=" o'clock", -- printed after the time
fuzziness="human", --choose from: human, vague, stupid, pointless
posx=10, -- x position in pixels
posy=60, -- y position in pixels
font="Droid Sans",
font_size=22,
font_colour=0xffff00, -- your favourite hex codes for colours
font_alpha=0.5, -- zero to one, where 0 is transparent
}
require "cairo"
function fuzzyclock(fuzziness)
-- because let's face it, only train drivers need time accurate to more than ten minutes
-- get time, as numbers so it can be manipulated/checked easily
hours=tonumber(os.date("%I"))
mins=tonumber(os.date("%M"))
-- convert minutes to words
if fuzziness=="vague" then
-- accurate to 30 minutes!
if mins >= 0 and mins < 30 then
div="sometime after"
else
div="approaching"
to_next_hour=true
end
elseif fuzziness=="human" then
-- accurate to ten minutes!
if mins >= 0 and mins < 10 then
div="just past"
elseif mins >= 10 and mins < 20 then
div="around a quarter past"
elseif mins >= 20 and mins < 30 then
div="almost half past"
elseif mins >= 30 and mins < 40 then
div="just after half past"
elseif mins >= 40 and mins < 50 then
div="roughly quarter to"
to_next_hour=true
elseif mins >= 50 then
div="nearly"
to_next_hour=true
end
elseif fuzziness=="stupid" then
-- accurate to six hours!
-- this is called such 'cos I've always liked programs with the options "stupid" and "pointless"
h24=tonumber(os.date("%H"))
if h24 >= 18 then
div="night"
elseif h24 >= 0 and h24 < 6 then
div="late night"
elseif h24 >= 6 and h24 < 12 then
div="morning"
elseif h24 >= 12 and h24 < 18 then
div="afternoon"
end
return ((settings['pre_text']) .. (div))
elseif fuzziness=="pointless" then
-- because THIS needs calculating.
cen=tonumber(os.date("%C"))
cen=cen+1
return ((settings['pre_text']) .. "the " .. cen .. "st century")
end
-- do we need to add one to hours (for "x to hours o'clock")
if to_next_hour==true then
if hours < 12 then
hours=hours+1
else
hours=1
end
to_next_hour=false
end
-- convert hours to words
if hours==1 then
hr="one"
elseif hours==2 then
hr="two"
elseif hours==3 then
hr="three"
elseif hours==4 then
hr="four"
elseif hours==5 then
hr="five"
elseif hours==6 then
hr="six"
elseif hours==7 then
hr="seven"
elseif hours==8 then
hr="eight"
elseif hours==9 then
hr="nine"
elseif hours==10 then
hr="ten"
elseif hours==11 then
hr="eleven"
elseif hours==12 then
hr="twelve"
end
-- assemble and return
return ((settings['pre_text']) .. (div) .. " " .. (hr) .. (settings['post_text']))
end
-- and just what is wrong with hex colours, eh?
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
-- this is the function to call in your .conkyrc
function conky_fuzzyclock()
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num > 5 then
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
-- if I set this var to local, will that stop it breaking other cairo bits in different lua scripts?
local cr=cairo_create(cs)
--set font, font size and color
cairo_select_font_face (cr, settings['font'], CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, settings['font_size']);
cairo_set_source_rgba(cr,rgb_to_r_g_b(settings['font_colour'],settings['font_alpha']))
-- position
cairo_move_to (cr, settings['posx'], settings['posy']);
-- do it do it do it
cairo_show_text (cr, fuzzyclock(settings['fuzziness']))
end
endLast edited by johnnytruant (2010-04-03 02:24:31)
I love this idea. I will maybe do one in French ![]()
tawan wrote:has anyone here seen this? (yes I stole the graphic from it)
It is an amazing bit of work by sen7 (link)
As anyone tried this setup? I've been trying, but i cant figure out how to do it.
I stumbled across this a couple of weeks back and started using it, was a pain in the ass to set up. You need to build conky from source, follow the readme and make sure you satisfy all your dependencies and you'll be golden.
Although, friendly note to mrpeachy: indenting and comments are your friends!
very true ![]()
this one kinda was!
http://crunchbanglinux.org/forums/post/57623/#p57623
unfortunately i'm out of the conky script game... just when i was starting to bother about that kind of thing ![]()
Quick update for the fuzzy clock - drop this in below the line starting "mins=tonumber(os.date..."
-- is it: uk, summer, saturday, close to 18:20?
if hours == 6 and mins > 5 and mins < 20 and (os.date("%Z")) == "BST" and (os.date("%w")) == "6" and (os.date("%p")) == "PM" then
return((settings['pre_text']) .. "nearly time for Doctor Who!")
end![]()
mrpeachy, ever think about using
cat /dev/randomin a Matrix style conky?
Mine is a simple one, stolen somewhere from this forum.
After upgrading to Statler Alpha1, it doesn't show my network upload/download speed and total. changing this line in conky do solve it
original
${if_existing /proc/net/route wlan0}Up: ${upspeed wlan0} ${alignr}${upspeedgraph wlan0 8,60 BEBEBE BEBEBE}
Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 BEBEBE BEBEBE}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route eth0}Up: ${upspeed eth0} ${alignr}${upspeedgraph eth0 8,60 BEBEBE BEBEBE}
Down: ${downspeed eth0} ${alignr}${downspeedgraph eth0 8,60 BEBEBE BEBEBE}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}${endif}${else}Network Unavailable${endif}
modified
${if_existing /proc/net/route eth0}Up: ${upspeed wlan0} ${alignr}${upspeedgraph wlan0 8,60 BEBEBE BEBEBE}
Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 BEBEBE BEBEBE}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route wlan0}Up: ${upspeed eth0} ${alignr}${upspeedgraph eth0 8,60 BEBEBE BEBEBE}
Down: ${downspeed eth0} ${alignr}${downspeedgraph eth0 8,60 BEBEBE BEBEBE}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}${endif}${else}Network Unavailable${endif}
it's quite weird though as i'm using wlan0 and /proc/net/route also shows wlan0....
This may have been covered. But here is a battery indicator that you can use for a laptop. Your battery may be BAT0.
Battery: $alignr ${battery_percent BAT1}%
${battery_bar BAT1}
Hey Guys
I dont use crunchbang I use a distro called antiX. I will be giving this distro a try over the next few weeks though. This thread is possibly the best conky thread on the whole internet. I took a lot of ideas from here so thought I would share mine as well. I use 11 conky rc's so not sure where to stick them all. Would take up a lot of forum space. Anyway for now here is a screenie and a tiny youtube clip.
http://www.youtube.com/watch?v=7kPgNuFtjgQ
I couldnt get the lua matrix scripts to work right, so I cheated and use matrix code fonts with a very mixed up PID list
Thanks again for all your setups to help me out.
If anyone wanted to look at the configs I have them over on the mepis linux site attached to a post, I didnt see an option to attach files on here:
http://mepislovers.org/forums/showthrea amp;page=5
Last edited by voorhees1979 (2010-04-23 13:35:36)
Hello everyone. I'm having a strange issue with conky and network graphs. Downspeed and upspeed graphs don't update, ever, despite changing network use. Conky will accurately report the current download and upload speeds as text, but for some reason will not graph it. The graphs are just empty boxes. Could anybody point me in the direction of a solution?
Here's my config:
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 800 800
maximum_width 1024
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color black
default_bar_size 250 6
alignment top_left
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
# Output
##############################################
TEXT
${font Linux Libertine O C:size:14}
${offset 10}Core ${offset 25}${cpubar cpu0}${offset 350}Memory $membar
${offset 10}Charge${offset 10}${battery_bar}${offset 353}Swap${offset 26}$swapbar
${voffset 35}
${color FFFFFF}SYSTEM STATUS $alignr NETWORK STATUS
${color 669966}Uptime: ${color grey}$uptime ${offset 710}${color 669966}BSSID:${color grey}$alignr${wireless_ap wlan0}
${color 669966}Temperature: ${color grey}$acpitemp${offset 710} ${color 669966}$alignr ESSID: ${color grey}${wireless_essid wlan0}
${color 669966}Store usage: ${color grey}${fs_used /}/${fs_size /}${color 669966}$alignr Gateway: ${color grey}$gw_ip
${color 669966}Core Consumption: ${color grey}${top pid 1}/${top name 1}${color 669966}$alignr Mode: ${color grey}${wireless_mode wlan0}
${color 669966}Memory Consumption: ${color grey}${top_mem pid 1}/${top_mem name 1} ${color 669966}$alignr Bitrate: ${color grey}${wireless_bitrate wlan0}
${color 669966}$alignr Quality: ${color grey}${wireless_link_qual_perc wlan0}%
${color FFFFFF}ATMOSPHERIC CONDITIONS $alignr ${color 669966}IP: ${color grey}${addr wlan0}
${color 669966}Temperature: ${color grey}${execi 500 conkyForecast -l USMA0046 -d HT -i}${color 669966}$alignr Total Down:${color grey} ${totaldown wlan0}
${color 669966}Barometric Pressure: ${color grey}${execi 500 conkyForecast -l USMA0046 -d BR} ${color 669966}$alignr Total Up: ${color grey}${totalup wlan0}
${color 669966}Barometric Trend: ${color grey}${execi 500 conkyForecast -l USMA0046 -d BD}
${color 669966}Humidity: ${color grey}${execi 500 conkyForecast -l USMA0046 -d HM -i}
${color 669966}Precipitation Chance: ${color grey}${execi 500 conkyForecast -l USMA0046 -d PC}
${color 669966}Wind Speed: ${color grey}${execi 500 conkyForecast -l USMA0046 -d WS -i}
${color 669966}Wind Direction: ${color grey}${execi 500 conkyForecast -l USMA0046 -d WD}
${color 669966}Skies: ${color grey}${execi 500 conkyForecast -l USMA0046 -d CT -i}
${voffset 20}
${offset 20}Store Reads ${offset 65}Store Writes ${offset 460} Downstream ${offset 70}Upstream
${diskiograph_read 50, 125}${offset 30}${diskiograph_write 50, 125}${offset 435}${downspeedgraph wlan0, 50,125}${offset 30}${upspeedgraph wlan0, 50, 125}Posts [ 951 to 975 of 2,565 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » My Conky Config
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.