Postavite Vaš .conkyrc sa screenshot-om

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]

Mrsko mi je stvarno pisati sve to toliko…

http://omploader.org/vMXl0ZA - skripta
http://omploader.org/vMXl0ZQ - screenshot

Ma sve super, ja sam samo napravio uvod pošto je ipak početak teme,

Screenshot i .conkyrc su sasvim dovoljni:)

@listener: nice…
evo moga. keep ti simple

.conkyrc:

[code]background no
font Sans:size=8
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color green
alignment top_right
gap_x 12
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
uppercase yes # set to yes if you want all text to be in uppercase

TEXT
${color white}Debian Lenny ${hr 1}${color}

Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp}C

CPU: ${alignr}${freq} MHz
$font${color white}CPU ${cpu}% ${cpubar}
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}

${color white}Filesystem ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
SDA1: ${alignr}${fs_free /home/david/windows} / ${fs_size /home/david/windows}
${fs_bar 4 /home/david/windows}

${color white}NETWORK ${hr 1}${color}

Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}[/code]

Evo i mog. Koristim custom font za ovaj logo.

A evo i .conkyrc - a:

[code] background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.0
update_interval 0.5
total_run_times 0
on_bottom yes
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 no
default_color gray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 10
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
text_buffer_size 256

TEXT

${voffset -25}${color Tan1}${font OpenLogos:size=150}v$font$color

${voffset -110}
${color DimGray}
${font}
${font Arial:bold:size=10}${color Tan1}SYSTEM ${color DarkSlateGray} ${hr 2}

$font${color DimGray}$sysname $kernel $alignr $machine
Intel Core2Duo $alignr${freq_dyn_g cpu0}Ghz
Uptime $alignr${uptime}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color DarkSlateGray}${hr 2}

$font${color DimGray}CPU1 ${cpu cpu1}% ${cpubar cpu1}
CPU2 ${cpu cpu2}% ${cpubar cpu2}

${font Arial:bold:size=10}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}

$font${color DimGray}RAM $alignc ${mem} / $memmax $alignr ${memperc}%
${membar 6}$color

${font Arial:bold:size=10}${color Tan1}HDD ${color DarkSlateGray}${hr 2}

$font${color DimGray}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
/windows $alignc ${fs_used /media/windows} / ${fs_size /media/windows} $alignr ${fs_free_perc /media/windows}%
${fs_bar /media/windows}
/storage $alignc ${fs_used /media/storage} / ${fs_size /media/storage} $alignr ${fs_free_perc /media/storage}%
${fs_bar /media/storage}

${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color DarkSlateGray}${hr 2}

${color DimGray}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font Arial:bold:size=10}${color Tan2}NETWORK ${color DarkSlateGray}${hr 2}

$font${color DimGray}IP on eth0 $alignr ${addr eth0}
Down $alignr ${downspeed eth0} kb/s
Up $alignr ${upspeed eth0} kb/s
Downloaded: ${alignr}${totaldown eth0}
Uploaded: ${alignr}${totalup eth0}

$font${color DimGray}IP on wlan0 $alignr ${addr wlan0}
   Down $alignr ${downspeed wlan0} kb/s
   Up $alignr ${upspeed wlan0} kb/s
   Downloaded: ${alignr}${totaldown wlan0}
   Uploaded: ${alignr}${totalup wlan0}

${font Arial:bold:size=10}${color Tan2}TIME ${color DarkSlateGray}${hr 2}
${color Tan1} ${font :size=20}$alignc${time %H:%Mh}
${voffset -20}${font :bold:size=10}$alignc${time %d %b. %Y}
${font :bold:size=8}$alignc${time %A}
$endif[/code]

Nemojte zamjerit zbog windows particije. Treba mi za neke igrice i VS.NET :D:D:D:P

mogao je neko vala i objasniti šta je .conkyrc :smiley:

http://conky.sourceforge.net/screenshots.html

Slažem se :slight_smile:

Evo za one koji nisu do sada koristili conky ja sam pisao članak na svom weblog-u ovdje.

p.s. Nije reklama već mi se ne da pisati ponovo, ako kršim neka pravila sklanjam odmah.