Avatar

Conky

Table of contents

After a lot of trouble with the KDE version of Ubuntu (Kubuntu), which used a lot of resources, so I tried installing Gnome and later on Unity, both without any success, I fell in love with Linux Mint with Cinnamon as window manager. I can configure anything to my demands with a CSS file. This was so easy that I decided to re-install Conky. With this a couple of processes can be visualized with widgets on the desktop, which are also 100% configurable. At this moment, 12 of these are running: System; CPU; MEM; Highest CPU; Highest MEM; Music; Weather; RSS; Clock; NET; Email and Twitter. I guess there are more to come, while it fits my screen.

Shared settings

1background yes
2
3own_window yes
4own_window_type normal
5own_window_class Conky
6own_window_transparent yes
7own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
8minimum_size 358 760
9maximum_width 384
10
11double_buffer yes
12no_buffers yes
13update_interval 2.0
14total_run_times 0
15cpu_avg_samples 2
16net_avg_samples 2
17top_cpu_separate true
18
19override_utf8_locale no
20use_xft yes
21xftfont Purisa:size=9
22xftalpha 0.8
23default_color eeeeff
24color0 aaaaff
25color1 5555ff
26color2 222222

System

1alignment top_left
2gap_x 0
3gap_y 0
4
5TEXT
6${font Purisa:size=12}Linux Mint 14 Nadia ${color1}${hr 3}${font }
7${offset 20}${color0}User${color }${alignr}${uid_name 1000}
8${offset 20}${color0}Host${color }${alignr}${nodename}
9${offset 20}${color0}$sysname $kernel${color }${alignr}$machine
10${voffset 10}
11${offset 20}${color0}Load${alignr}${color }$loadavg
12${offset 20}${color2}${cpugraph 32,334 ffffff aaaaff s}
13${voffset 10}
14${offset 20}${color0}Processes${alignr}${color }${processes}
15${offset 20}${color0}Running${alignr}${color }${running_processes}

CPU

1alignment top_left
2gap_x 384
3gap_y 0
4
5TEXT
6${font Purisa:size=12}CPU (${freq_g cpu0}) ${color1}${hr 3}${font }
7${offset 20}${color0}\\#1${alignr}${color } ${cpu cpu0}% ${cpubar cpu0 8,60}
8${offset 20}${color0}\\#2${alignr}${color } ${cpu cpu1}% ${cpubar cpu0 8,60}
9${offset 20}${color0}\\#3${alignr}${color } ${cpu cpu2}% ${cpubar cpu0 8,60}
10${offset 20}${color0}\\#4${alignr}${color } ${cpu cpu3}% ${cpubar cpu0 8,60}
11${offset 20}${color0}\\#5${alignr}${color } ${cpu cpu4}% ${cpubar cpu0 8,60}
12${offset 20}${color0}\\#6${alignr}${color } ${cpu cpu5}% ${cpubar cpu0 8,60}
13${offset 20}${color0}\\#7${alignr}${color } ${cpu cpu6}% ${cpubar cpu0 8,60}
14${offset 20}${color0}\\#8${alignr}${color } ${cpu cpu7}% ${cpubar cpu0 8,60}
15
16${offset 20}${color0}CPU Temp${alignr}${color }${execi 60 sensors | grep 'CPU Temperature' | cut -c 20-28}
17${offset 20}${color0}CPU Fan${alignr}${color }${execi 60 sensors | grep 'CPU Fan Speed' | cut -c 20-28}
18${offset 20}${color0}Power Fan${alignr}${color }${execi 60 sensors | grep 'Power Fan Speed' | cut -c 20-28}
19${offset 20}${color0}Vcore${alignr}${color }${execi 60 sensors | grep 'Vcore Voltage' | cut -c 20-28}
20${offset 20}${color0}MB Temp${alignr}${color }${execi 60 sensors | grep 'MB Temperature' | cut -c 20-28}

MEM

1alignment top_left
2gap_x 768
3gap_y 0
4
5TEXT
6${font Purisa:size=12}MEM ${color1}${hr 3}${font }
7${offset 20}${color0}MEM${goto 200}${color }$memperc%${goto 260}$mem${alignr}$memmax
8${offset 20}${membar 16,334}
9${voffset 10}
10${offset 20}${color0}SWAP${goto 200}${color }$swapperc%${goto 260}$swap${alignr}$swapmax
11${offset 20}${swapbar 16,334}
12${voffset 10}
13${offset 20}${color0}STOR${goto 200}${color }${fs_free /}${goto 260}${fs_size /}${alignr}${fs_type}
14${offset 20}${fs_bar 16,334}

Highest CPU

1alignment top_left
2gap_x 1152
3gap_y 0
4
5TEXT
6${font Purisa:size=12}Highest CPU ${color1}${hr 3}${font }
7${offset 20}${color0}${top name 1}${alignr}${top_mem cpu 1}
8${offset 20}${top name 2}${alignr}${top cpu 2}
9${offset 20}${top name 3}${alignr}${top cpu 3}
10${offset 20}${top name 4}${alignr}${top cpu 4}
11${offset 20}${top name 5}${alignr}${top cpu 5}
12${offset 20}${top name 6}${alignr}${top cpu 6}
13${offset 20}${top name 7}${alignr}${top cpu 7}
14${offset 20}${top name 8}${alignr}${top cpu 8}
15${offset 20}${top name 9}${alignr}${top cpu 9}

Highest MEM

1alignment top_left
2gap_x 1536
3gap_y 0
4
5TEXT
6${font Purisa:size=12}Highest MEM ${color1}${hr 3}${font }
7${offset 20}${color0}${top_mem name 1}${alignr}${top_mem mem 1}
8${offset 20}${top_mem name 2}${alignr}${top_mem mem 2}
9${offset 20}${top_mem name 3}${alignr}${top_mem mem 3}
10${offset 20}${top_mem name 4}${alignr}${top_mem mem 4}
11${offset 20}${top_mem name 5}${alignr}${top_mem mem 5}
12${offset 20}${top_mem name 6}${alignr}${top_mem mem 6}
13${offset 20}${top_mem name 7}${alignr}${top_mem mem 7}
14${offset 20}${top_mem name 8}${alignr}${top_mem mem 8}
15${offset 20}${top_mem name 9}${alignr}${top_mem mem 9}

Music

1alignment top_left
2gap_x 0
3gap_y 386
4
5TEXT
6${font Purisa:size=12}Music ${if_running banshee}(${execi 16 ~/conkywidgets/banshee.sh current-state}) ${endif}${color1}${hr 3}${font }
7${if_running banshee}
8${offset 20}${color0}Artist${alignr}${color }${execi 16 ~/conkywidgets/banshee.sh artist}
9${offset 20}${color0}Title${alignr}${color }${execi 16 ~/conkywidgets/banshee.sh title}
10${offset 20}${color0}Album${alignr}${color }${execi 16 ~/conkywidgets/banshee.sh album}
11${offset 20}${color0}Year${alignr}${color }${execi 16 ~/conkywidgets/banshee.sh year}
12
13${offset 20}${color0}Volume
14${offset 20}${color }${execibar 16 ~/conkywidgets/banshee.sh volume 16,334}
15
16${offset 20}${color0}Progress${alignr}${color }${execi 1 ~/conkywidgets/banshee.sh position} / ${execi 16 ~/conkywidgets/banshee.sh duration}
17${offset 20}${color }${execibar 1 ~/conkywidgets/banshee.sh progress 16,334}
18${endif}

Weather

1alignment top_left
2gap_x 384
3gap_y 386
4
5TEXT
6${font Purisa:size=12}Weather ${color1}${hr 3}${font }
7${offset 20}${color0}Conditions${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=CC}
8
9${color }${goto 200}${voffset -24}${font ConkyWeather:size=32}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WF}${font }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HT} ${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=LT}
10${offset 20}${color0}Wind${color }${alignr}${font Arrows:size=16}${color }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=BF}${font } ${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WS}
11
12${color0}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=DW --startday=1}${color } ${hr 1}
13
14${offset 20}${color0}Conditions${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=CT --startday=1}
15${offset 20}${color0}Chance of rain${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=PC --startday=1}
16${offset 20}${color0}Humidity${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HM --startday=1}
17${offset 20}${color0}Sunrise${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=SR --startday=1}
18${offset 20}${color0}Sunset${color }${alignr}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=SS --startday=1}
19${offset 20}${color0}Pollen count${color }${alignr}${execi 3600 curl --silent -q -d "affiliateid=6176&zip=73034" https://www.pollen.com/forecast.asp | cut -d'|' -f5} / 12${color } (${execi 3600 curl --silent -q -d "affiliateid=6176&zip=73034" https://www.pollen.com/forecast.asp | cut -d'|' -f11})
20
21${color0}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=DW --startday=1}${goto 90}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=DW --startday=2}${goto 180}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=DW --startday=3}${goto 270}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=DW --startday=4}${font}${color}
22${offset 20}${color }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HT --startday=1}/${execpi 1800 conkyForecast --location=NLXX0486 --datatype=LT --startday=1}${goto 110}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HT --startday=2}/${execpi 1800 conkyForecast --location=NLXX0486 --datatype=LT --startday=2}${goto 200}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HT --startday=3}/${execpi 1800 conkyForecast --location=NLXX0486 --datatype=LT --startday=3}${goto 290}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=HT --startday=4}/${execpi 1800 conkyForecast --location=NLXX0486 --datatype=LT --startday=4}${font}${color}
23${offset 20}${color }${font Arrows:size=16}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=BF --startday=1}${font }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WS --startday=1}${font Arrows:size=16}${goto 110}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=BF --startday=2}${font }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WS --startday=2}${font Arrows:size=16}${goto 200}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=BF --startday=3}${font }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WS --startday=3}${font Arrows:size=16}${goto 290}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=BF --startday=4}${font }${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WS --startday=4}${font}${color}${offset 20}${color }${font ConkyWeather:size=32}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WF --startday=1}${goto 120}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WF --startday=2}${goto 200}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WF --startday=3}${goto 290}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=WF --startday=4}${font}${color}
24${offset 20}${color }${font Moon Phases:size=16}${execpi 1800 conkyForecast --location=NLXX0486 --datatype=MF}${font }

RSS

1alignment top_left
2gap_x 768
3gap_y 386
4
5TEXT
6${font Purisa:size=12}RSS ${color1}${hr 3}${font }
7${color0}${execi 300 conkyGoogleReader -u ***@gmail.com -p *** -t ~/conkywidgets/rss.txt}
8${offset 20}${execi 300 conkyGoogleReader -u ***@gmail.com -p *** -S -s ~/conkywidgets/rss_total.txt}

Clock

1alignment top_left
2gap_x 1152
3gap_y 386
4
5#${offset 20}${color0}Updates${alignr}${execi 300 ~/Bin/debupdates.sh}
6TEXT
7${font Purisa:size=12}Clock ${color1}${hr 3}${font }
8${offset 20}${color0}Time${alignr}${color }${time %H:%M:%S} ${time %d-%m-%y}
9${offset 20}${color0}Uptime${alignr}${color }$uptime
10
11${color0}${execi 120 fortune -s | fold -w44}

NET

1alignment top_left
2gap_x 1536
3gap_y 386
4
5TEXT
6${font Purisa:size=12}NET ${color1}${hr 3}${font }
7${offset 20}${color0}IP Addr${alignr}${color }${addr eth0}
8${offset 20}${color0}IP Addr${alignr}${alignr}${color }${execi 3600 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' }
9${offset 20}${color0}ESSID${alignr}${color }${wireless_essid eth0} on eth0
10${offset 20}${color0}Up${alignr}${color }${upspeed eth0} k/s
11${offset 20}${color2}${upspeedgraph eth0 32,334 ffffff aaaaff s}
12${voffset 10}
13${offset 20}${color0}Down${alignr}${color }${downspeed eth0}k/s
14${offset 20}${color2}${downspeedgraph eth0 32,334 ffffff aaaaff s}
15${voffset 10}
16${offset 20}${color0}${tcp_portmon 32768 61000 rhost 0}${alignr}${color }${tcp_portmon 32768 61000 rservice 0}
17${offset 20}${color0}${tcp_portmon 32768 61000 rhost 1}${alignr}${color }${tcp_portmon 32768 61000 rservice 1}
18${offset 20}${color0}${tcp_portmon 32768 61000 rhost 2}${alignr}${color }${tcp_portmon 32768 61000 rservice 2}
19${offset 20}${color0}${tcp_portmon 32768 61000 rhost 3}${alignr}${color }${tcp_portmon 32768 61000 rservice 3}
20${offset 20}${color0}${tcp_portmon 32768 61000 rhost 4}${alignr}${color }${tcp_portmon 32768 61000 rservice 4}
21${offset 20}${color0}${tcp_portmon 32768 61000 rhost 5}${alignr}${color }${tcp_portmon 32768 61000 rservice 5}

E-mail

1alignment top_left
2gap_x 0
3gap_y 786
4
5TEXT
6${font Purisa:size=12}Email ${color1}${hr 3}${font }
7${offset 20}${color0}swimmer@example.com${alignr}${color }${execi 300 python ~/conkywidgets/imap.py}

Twitter

1alignment top_left
2gap_x 768
3gap_y 786
4
5#${offset 20}${color0}${exec python ~/conkywidgets/twitter.py mentions}
6#${offset 20}${color0}${exec python ~/conkywidgets/twitter.py timeline}
7#${offset 20}${color0}${exec python ~/conkywidgets/twitter.py followers}
8TEXT
9${font Purisa:size=12}Twitter (${exec python ~/conkywidgets/twitter.py limit}) ${color1}${hr 3}${font }
10${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline0}
11${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline1}
12${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline2}
13${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline3}
14${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline4}
15${offset 20}${color0}${execi 60 python ~/conkywidgets/twitter.py htimeline5}

Example screenshots

Screenshot 1Screenshot 2Some other examples