Kako sam u windows-u koristio rainmeter i pisao za njega skipte, conky mi je došao odlično kao zamijena za rainmeter u Linux-u, skripte je jako jednostavno pisati a nevjerovatno su konfigurabilne tako da skoro ne postoje dva ista .conkyrc fajla, svako sebi prilagodi skriptu na svoj način. Pošto nisam našao na forumu ovakvu temu a pretpostavljam da dosta ljudi koristi conky mislim da bi lijepo bilo da postamo svoje .conkyrc fajlove zajedno sa screenshot-ovima.
Evo prilažem za početak svoj .conkyrc, pošto mi je računar povezan na kućni Wi-Fi morao sam posebnom skriptom uzimati WAN IP tako što sam propustio query dyndns stranici kroz parser, skripta izgleda ovako.
wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'
Skripta se nalazi kao što vidite iz linije u kojoj piše “WAN IP:” u “/home/listener/Skripte/” i skripta se zove “wanip.sh” kao što se vidi iz ove linije koja pokreće skriptu, potrebno je samo nakon što napišete skriptu omogućiti izvršavanje fajla i promijeniti lokaciju skripte u ovoj liniji i to je to.
.conkyrc izgleda ovako
[code]background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color gray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 10
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
TEXT
${font Monospace:bold:size=10}${color Tan1}SYS Info${color DarkSlateGray} ${hr 2}
${font Monospace:size=8}${color DarkGray}$sysname $kernel $alignr $machine
${color DimGray}${font Monospace:bold:size=8}Uptime ${font Monospace:size=8}${color DarkGray}$alignr${uptime}
${font Monospace:bold:size=10}${color Tan1}CPU Info${color DarkSlateGray} ${hr 2}
${color DimGray}${font Monospace:bold:size=8}Temperatura CPU-a:${font Monospace:size=8}${color DarkGray}$alignr${execi 1 sensors | grep “temp1:” | cut -d+ -f2 | cut -c1-7}
${color DimGray}${font Monospace:bold:size=8}GPU Temp: $color ${font Monospace:size=8}${color DarkGray}$alignr${execi 30 nvidia-settings -q gpucoretemp | grep ‘):’ | awk ‘{print $4}’ | cut -c -2}°C
${color DimGray}${font Monospace:bold:size=8}Jezgra 1: ${font Monospace:size=8}${color DarkGray}${cpu cpu0}%
${cpugraph cpu0 30,240 878787 878787}
${color DimGray}${font Monospace:bold:size=8}Jezgra 2: ${font Monospace:size=8}${color DarkGray}${cpu cpu1}%
${cpugraph cpu1 30,240 878787 878787}
${color DimGray}${font Monospace:bold:size=8}Name ${color DimGray}${font Monospace:bold:size=8}PID ${color DimGray}${font Monospace:bold:size=8}CPU% ${color DimGray}${font Monospace:bold:size=8}MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color DimGray}${font Monospace:bold:size=8}Mem usage
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${font Monospace:bold:size=10}${color Tan1}Network Info${color DarkSlateGray} ${hr 2}
${color DimGray}${font Monospace:bold:size=8}Hostname $alignr ${font Monospace:size=8}${color DarkGray}$nodename
${color DimGray}${font Monospace:bold:size=8}Network name:$alignr ${font Monospace:size=8}${color DarkGray}${wireless_essid wlan0}
${color DimGray}${font Monospace:bold:size=8}LAN IP: $alignr ${font Monospace:size=8}${color DarkGray}${addr wlan0}
${color DimGray}${font Monospace:bold:size=8}WAN IP:$alignr${font Monospace:size=8}${color DarkGray}${execi 600 /home/listener/Skripte/wanip.sh}
${color DimGray}${font Monospace:bold:size=8}Wi-Fi Bitrate:$alignr ${font Monospace:size=8}${color DarkGray}${wireless_bitrate wlan0}
${color DimGray}${font Monospace:bold:size=8}Wi-Fi Kvalitet:$alignr ${font Monospace:size=8}${color DarkGray}${wireless_link_qual_perc wlan0}
${color DimGray}${font Monospace:bold:size=8}Down:${font Monospace:size=8}${color DarkGray}${downspeedf wlan0}kb/s ${color DimGray}${font Monospace:bold:size=8} Up:${font Monospace:size=8}${color DarkGray}${upspeedf wlan0}kb/s
${downspeedgraph wlan0 30,110 878787 878787} ${upspeedgraph wlan0 30,110 878787 878787}
${font Monospace:bold:size=10}${color Tan1}Memorija${color DarkSlateGray} ${hr 2}
${color DimGray}${font Monospace:bold:size=8}RAM: ${font Monospace:size=8}${color DarkGray}$memperc% $mem/$memmax
${membar}
${color DimGray}${font Monospace:bold:size=8}SWAP: ${font Monospace:size=8}${color DarkGray}$swapperc% $swap/$swapmax
${swapbar}
${font Monospace:bold:size=10}${color Tan1}HDD${color DarkSlateGray} ${hr 2}
${color DimGray}${font Monospace:bold:size=8}File System ${font Monospace:size=8}$alignr${color DarkGray}${fs_type}
${color DimGray}${font Monospace:bold:size=8}ROOT: ${font Monospace:size=8}${color DarkGray}${fs_free /}/${fs_size /}
${fs_bar 6,250 /}
${color DimGray}${font Monospace:bold:size=8}HOME: ${font Monospace:size=8}${color DarkGray}${fs_free /home}/${fs_size /home}
${fs_bar 6,250 /home}[/code]