Anunţ

Caută printre mesajele de pe forum înainte de a scrie unul nou!
Formulează corect întrebarea sau problema pe care o ai.
Respectă regulile forumului și Codul de Conduită!

#1 17 Feb 2010 22:04:59

Aly007
Membru
Înregistrat: 09 Jan 2007
Mesaje: 38

Configuratie conky [ script + screenshot ]

Am facut acest topic ca userii acestui forum sa posteze configuratia pe care o folosesc in conky.
Scriptul conky se afla in directorul "home/user" sub numele .conkyrc
Postul fiecarui user va arata in felul urmator:

http://img685.imageshack.us/img685/701/screensh0ot.th.jpg

Cod:

use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes

text_buffer_size 2048
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 1
cpu_avg_samples 1

background yes
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

default_color D8D8D8
draw_borders no
border_width 1
border_margin 10
draw_graph_borders yes
draw_outline no
draw_shades no

color0 E6E6E6
color1 3465A4
color2 E6E6E6

alignment top_right
gap_x 25
gap_y 50
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

imlib_cache_size 0

TEXT
${font Liberation Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
${color0}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 38}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 38}Uptime: ${alignr}${color2}${uptime}${color}
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 38}CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu1 8,50 204A87 3465A4}${color}
${goto 38}CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 1' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu2 8,50 204A87 3465A4}${color}
${color0}${font Poky:size=16}M${font}${color}${goto 38}${voffset -7}RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color2}${membar 4,18}${color}${goto 38}${voffset -2}F: ${color2}${memeasyfree}${color} U: ${color2}${mem}${color}
${voffset 2}${color0}${font Poky:size=15}a${font}${color}${goto 38}${voffset -10}Processes: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 46}${color2}${top name 1}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 127}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 46}${color2}${top name 2}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 127}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 46}${color2}${top name 3}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 127}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 46}${color2}${top name 4}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 127}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 46}${color2}${top name 5}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 127}${top cpu 5}${alignr }${top mem 5}${color}${font}
${voffset 4}${font Liberation Sans:style=Bold:size=8}DATE $stippled_hr${font}
${voffset -10}${alignc 46}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color}
${alignc}${time %d %B %Y}
${voffset -2}${color0}${font Poky:size=15}d${font}${color}${voffset -8}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%-d`; cal -m | sed 's/^/${goto 38} /' | sed '1d' | sed s/" $DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color}${font}${font Liberation Mono:size=8}'" "/}${font}${font}${voffset -14}
${voffset 4}${font Liberation Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
${if_existing /proc/net/route wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup wlan0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown wlan0}${color}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 38} ${voffset -2}Signal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 38}${voffset -8}Local IP: ${alignr}${color2}${addr wlan0}${color}
${goto 38}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup eth0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown eth0}${color}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 38}${voffset -4}Local IP: ${alignr}${color2}${addr eth0}${color}
${goto 38}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup ppp0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown ppp0}${color}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 38}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 38}Network Unavailable${endif}${endif}
${voffset -8}${font Liberation Sans:style=Bold:size=8}WEATHER $stippled_hr${font}
${if_existing /proc/net/route wlan0}
${execpi 10800 ~/.conkycolors/bin/conkyForecast --location=ROXX0011 -t ~/.conkycolors/templates/conkyForecast.template}
${else}${if_existing /proc/net/route eth0}
${execpi 10800 ~/.conkycolors/bin/conkyForecast --location=ROXX0011 -t ~/.conkycolors/templates/conkyForecast.template}
${endif}${else}${if_existing /proc/net/route ppp0}
${execpi 10800 ~/.conkycolors/bin/conkyForecast --location=ROXX0011 -t ~/.conkycolors/templates/conkyForecast.template}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 38}Weather Unavailable${endif}${endif}

Editat ultima oară de Aly007 (19 Feb 2010 14:20:09)

Offline

 

#2 18 Feb 2010 15:03:53

tzepu
GM
Locaţie: Bistrita
Înregistrat: 14 Feb 2008
Mesaje: 2240
Site web

Re: Configuratie conky [ script + screenshot ]

Tutorialul trebuie sa ramana tutorial. Nu insiruire de scripturi si alte poze.
Prin urmare il rog pe initiator sa isi editeze postul si sa explice exact modelul care ar tebui urmat (dand poate si un exemplu)
Explica tuturor te rog cat mai detaliat cu putinta viziunea ta si atunci cei care au postat in tutorial pot sa isi copieze postul aici, urmand sa sterg acele posturi.
Astfel avem un tutorial curat si o discutie de genul "Arata-ti desktopul aici " dar dedicata conky.


Cât trăiește omu'nvață și când moare tăt prost moare.

Offline

 

#3 18 Feb 2010 15:19:54

Mikaelll
Membru
Înregistrat: 03 Feb 2010
Mesaje: 176

Re: Configuratie conky [ script + screenshot ]

http://img192.imageshack.us/img192/7530/screenshot1zx.th.png

conkyrc:

Cod:

use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes

text_buffer_size 2048
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 1
cpu_avg_samples 1

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

default_color cccccc
draw_shades no

color0 white
color1 E07A1F
color2 white

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

imlib_cache_size 0

TEXT
${font Liberation Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
${color0}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
${goto 32}Updates: ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Packages${color}
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 32}CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpugraph cpu1 8,60 CE5C00 E07A1F}${color}
#${goto 32}CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}#${font} ${alignr}${color2}${cpugraph cpu2 8,60 CE5C00 E07A1F}${color}
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color2}${membar 4,18}${color}${goto 32}${voffset -2}F: ${color2}${memeasyfree}${color} U: ${color2}${mem}${color}
${voffset 4}${font Liberation Sans:style=Bold:size=8}DATE $stippled_hr${font}
${voffset -10}${alignc 46}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color}
${alignc}${time %d %B %Y}

${color slate grey}Load: ${color }$loadavg
${color slate grey}Processes: ${color }$processes  
${color slate grey}Running:   ${color }$running_processes

${color slate grey}Highest CPU:
${color #ddaa00} ${top name 1}${top cpu 1}
${color lightgrey} ${top name 2}${top cpu 2}
${color lightgrey} ${top name 3}${top cpu 3}
${color lightgrey} ${top name 4}${top cpu 4}

${color slate grey}Highest MEM:
${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
${membar 3,100}
${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${swapbar 3,100}

${color slate grey}ROOT:    ${color }${fs_free /}/${fs_size /}
${fs_bar 3,100 /}
${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
${fs_bar 3,100 /home}
${color slate grey}NET: 
${color}Up: ${color }${upspeed ppp0} k/s
${upspeedgraph ppp0 20,130 000000 ffffff}
${color}Down: ${color }${downspeed ppp0}k/s${color}
${downspeedgraph ppp0 20,130 000000 ffffff}
${color0}IP address: $alignr ${color0}${addr ppp0}

${color1}Port(s)${alignr 2}Conn.
${color2}Inb: ${color4}${tcp_portmon 1 65533 count} ${color}/ ${color2}Outb: ${color4}${tcp_portmon 1 65533 count}${alignr}${color2}ALL: ${color red}${tcp_portmon 1 65533 count}
${color1}Inb.Conn ${alignr 2}Loc.Serv./Port${color}
${tcp_portmon 1 65533 rip 0} ${alignr 2}${tcp_portmon 1 65533 lservice 0}
${tcp_portmon 1 65533 rip 1} ${alignr 2}${tcp_portmon 1 65533 lservice 1}
${tcp_portmon 1 65533 rip 2} ${alignr 2}${tcp_portmon 1 65533 lservice 2}
${tcp_portmon 1 65533 rip 3} ${alignr 2}${tcp_portmon 1 65533 lservice 3}
${tcp_portmon 1 65533 rip 4} ${alignr 2}${tcp_portmon 1 65533 lservice 4}
${tcp_portmon 1 65533 rip 5} ${alignr 2}${tcp_portmon 1 65533 lservice 5}
${color1}Outb.Conn. ${alignr 2}Rem.Serv./Port${color}
${tcp_portmon 1 65533 rip 0} ${alignr 2}${tcp_portmon 1 65533 rservice 0}
${tcp_portmon 1 65533 rip 1} ${alignr 2}${tcp_portmon 1 65533 rservice 1}
${tcp_portmon 1 65533 rip 2} ${alignr 2}${tcp_portmon 1 65533 rservice 2}
${tcp_portmon 1 65533 rip 3} ${alignr 2}${tcp_portmon 1 65533 rservice 3}
${tcp_portmon 1 65533 rip 4} ${alignr 2}${tcp_portmon 1 65533 rservice 4}
${tcp_portmon 1 65533 rip 5} ${alignr 2}${tcp_portmon 1 65533 rservice 5}

${color slate grey}Conky build/date/version:
${color0}${conky_build_arch}
${color0}${conky_build_date}${alignr 2}${color0}${conky_version}

pentru cei care folosesc transmission se poate folosi:

Cod:

 ${color lightgrey}Transmission
$color Seed:
${color #d70752}${exec transmission-remote -l | grep seeding | sed s/seeding\ at//g | sed s/\ GiB/G/g | sed s/\ MiB/M/g | sed s/'('//g | sed s/')'//g | sed s/\ KiB/k/g | sed s/\ \ /\ /g}
$color Download:
${color #d70752}${exec transmission-remote -l | grep -v seeding | sed s/Status\ //g | sed s/Downloading//g | sed s/\ GiB/G/g | sed s/\ MiB/M/g | sed s/'('//g | sed s/')'//g | sed s/\ KiB/k/g | sed s/\ \ /\ /g | sed s/UL\ at/-/g | sed s/done\ in\ //g}

sa nu uitati sa activati web clientul din Edit->Preferences -> Web Client


Linus Torvalds doesn't wear glasses anymore not because he had laser eye surgery, but because he finally got his xorg.conf properly configured in his head.

Offline

 

#4 18 Feb 2010 21:07:54

stanca
Membru
Locaţie: Bucuresti
Înregistrat: 03 May 2009
Mesaje: 1167
Site web

Re: Configuratie conky [ script + screenshot ]

N-am zis ca n-ar merge si pe Gnome,merge si la mine dar ar merge perfect daca ar fi restabilita linia:

Cod:

own_window_hints undecorated,below,sticky,skip_taskbar,skip

in

Cod:

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

.
Si merci pt sfat,o sa-l incerc.smile

Offline

 

#5 18 Feb 2010 21:57:15

bluelord
Membru
Înregistrat: 30 Nov 2009
Mesaje: 73

Re: Configuratie conky [ script + screenshot ]

Buna,
cand "cutreieram" netul documentandu-ma in legatura cu Ubuntu am vazut un script pentru conky care avea un ceas analog in forma logo-ului Ubuntu.
Poate sa imi de-a cineva scriptul? Eu am uitat sa pun "bookmark" la site sad.

P.s.: scuze de off topic

Offline

 

#6 19 Feb 2010 21:41:11

Mikaelll
Membru
Înregistrat: 03 Feb 2010
Mesaje: 176

Re: Configuratie conky [ script + screenshot ]


Linus Torvalds doesn't wear glasses anymore not because he had laser eye surgery, but because he finally got his xorg.conf properly configured in his head.

Offline

 

#7 21 Feb 2010 20:59:29

bluelord
Membru
Înregistrat: 30 Nov 2009
Mesaje: 73

Re: Configuratie conky [ script + screenshot ]

Mersi. Asta cautam.... dar am gasit scriptul pentru ce cautam eu mai exact...
http://ubuntuforums.org/showthread.php? … ost7191401 [ultimul post]
http://img37.imageshack.us/img37/5850/ubuntuclock.th.png

Offline

 

#8 02 Mar 2010 22:44:35

blix87
Membru nou
Înregistrat: 01 Feb 2010
Mesaje: 23

Re: Configuratie conky [ script + screenshot ]

bluelord : cum fac sa modific si eu Iconita din fata panoul (Aplications, Place, System) cea din stanga sus de la tine din imagine cea cu logo-ul ubuntu la mine ? sau se instaleaza ceva in plus ? si daca cumva stii cum se modifica celelalte iconite (volume control, si cea de la panoul utilizatorului - cu log-off, shut down, restart)

Offline

 

#9 25 May 2010 01:08:03

spooker
Membru
Locaţie: Bucale
Înregistrat: 21 Sep 2009
Mesaje: 42
Site web

Re: Configuratie conky [ script + screenshot ]

Neavand somn, am mai rasfoit cateva pagini de forum ubuntu si am dat peste acest topic interesant care imi aduce aminte de noptile care le-am petrecut in fata monitorului ca sa pesonalizez un conky pe placul si nevoile mele big_smile.
Varianta de mai jos a pornit de la un template luat de pe net, care bineinteles ca era "prea tipic" si nu ma coafa deloc. Asa am ajuns sa iau eu frumusel conkyrc-ul, sa il deletez tot si sa ma apuc sa bag in el, rand cu rand, fix ce vreau, cum vreau si cat vreau smile.
Si uite asa, dupa vreo 2 nopti am ajuns la varianta:

fara transparenta => http://img38.imageshack.us/img38/3775/31205931.th.jpg                  cu transparenta => http://img12.imageshack.us/img12/2149/87602924.th.jpg

conkyrc:

Cod:

    background yes
    use_xft yes
    xftfont Verdana:size=9
    xftalpha 0.8
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_colour black
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 50 300
    maximum_width 500
    draw_shades no
    draw_outline no
    draw_borders yes
    draw_graph_borders yes
    default_color gray
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 0
    gap_y 33
    no_buffers no
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale yes
    use_spacer right
    text_buffer_size 2048

    TEXT
${color Tan1}${voffset 8}${font Ubuntu\-Title:size=26}$alignc    ubuntu${offset -129}${font OpenLogos:size=26}u$font

 ${font Arial:bold:size=9}${color Tan1}DATE & TIME ${color DarkSlateGray}${hr 2}$font
${color #B1B1B1} ${font Verdana:bold:size=16}$alignc${time %H:%M:%S}${font :size=9}
${font Verdana:bold:size=9}${color DimGray}$alignc${time %A}    ${font Verdana:bold:size=9}${color DimGray}$alignc${time %d %b. %Y}$font

 ${font Arial:bold:size=9}${color Tan1}SYSTEM ${color DarkSlateGray}${hr 2}$font
  ${font Verdana:bold:size=9}${color DimGray}Hostname: $font$alignr $nodename  
  ${font Verdana:bold:size=9}${color DimGray}Uptime: $font$alignr $uptime  
  ${font Verdana:bold:size=9}${color DimGray}Kernel: $font$alignr $kernel  
  ${font Verdana:bold:size=9}${color DimGray}Load: $font$alignr $loadavg  

 ${font Ariall:bold:size=9}${color Tan1}PROCESSOR ${color DarkSlateGray}${hr 2}$font
  ${font Verdana:bold:size=9}${color DimGray}Frequency: ${font Verdana:size=9}$alignr ${freq_g cpu0} Ghz  
  ${font Verdana:bold:size=9}${color DimGray}Temperature: ${font Verdana:size=9}$alignr ${acpitemp}' C  
  ${font Verdana:bold:size=9}${color DimGray}Usage:     ${font Verdana:size=9}${cpu cpu1}%  ${cpubar cpu1}  
  ${cpugraph 25,220 000000 ffffff}  

 ${font Arial:bold:size=9}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}$font
 ${font Verdana:bold:size=9}${color DimGray}RAM ${font Verdana:size=9}$alignr $mem /  $memmax
  ${font Verdana:bold:size=9}${color DimGray}Usage:     ${font Verdana:size=9}$memperc%  $membar  
 ${font Verdana:bold:size=9}${color DimGray}SWAP ${font Verdana:size=9}$alignr $swap /  $swapmax
  ${font Verdana:bold:size=9}${color DimGray}Usage:     ${font Verdana:size=9}$swapperc%  $swapbar  

 ${font Arial:bold:size=9}${color Tan1}TOP PROCESSES ${color DarkSlateGray}${hr 2}$font
 ${font Verdana:bold:size=9}${color DimGray}NAME $alignr PID       CPU      
  $font${color DimGray}${top name 1}$alignr${top pid 1}   ${top cpu 1} %  
  $font${color DimGray}${top name 2}$alignr${top pid 2}   ${top cpu 2} %  
  $font${color DimGray}${top name 3}$alignr${top pid 3}   ${top cpu 3} %  

 ${font Arial:bold:size=9}${color Tan1}HDD ${color DarkSlateGray}${hr 2}$font
 ${font Verdana:bold:size=9}${color DimGray}ROOT ${font Verdana:size=9}$alignr ${fs_used /}/  ${fs_size /} 
  ${font Verdana:bold:size=9}${color DimGray}Usage:     ${font Verdana:size=9}${fs_free_perc /}%  ${fs_bar /}  
 ${font Verdana:bold:size=9}${color DimGray}HDD2 ${font Verdana:size=9}$alignr ${fs_used /media/HDD2}/  ${fs_size /media/HDD2} 
  ${font Verdana:bold:size=9}${color DimGray}Usage:     ${font Verdana:size=9}${fs_free_perc /media/HDD2}%  ${fs_bar /media/HDD2}  

 ${font Arial:bold:size=9}${color Tan1}NETWORK ${color DarkSlateGray}${hr 2}$font
 ${font Verdana:bold:size=9}${color DimGray}WAN IP (ppp0): ${font Verdana:size=9}$alignr ${addr ppp0} 
  ${font Verdana:bold:size=9}${color DimGray}TCP Connections: ${font Verdana:size=9}$alignr ${tcp_portmon 1 65535 count}  
  ${font Verdana:bold:size=9}${color DimGray}Down: ${font Verdana:size=9}${downspeed eth1}kb/s${font Verdana:bold:size=9}$alignr Up: ${font Verdana:size=9}${upspeed eth1}kb/s 
  ${downspeedgraph eth1 25,102 000000 ff0000}$alignr${upspeedgraph eth1 25,102 000000 00ff00}  
  ${font Verdana:bold:size=9}${color DimGray}Total: ${font Verdana:size=9}${totaldown eth1}${font Verdana:bold:size=9}$alignr Total: ${font Verdana:size=9}${totalup eth1}
 ${font Verdana:bold:size=9}${color DimGray}LAN IP (eth0): ${font Verdana:size=9}$alignr ${addr eth0} 

 ${font Arial:bold:size=9}${color Tan1}WEATHER ${color DarkSlateGray}${hr 2}$font
 ${font Verdana:bold:size=9}${color DimGray}${execi 300 conkyForecast --location=ROXX0003 --datatype=CN},  ${execi 300 conkyForecast --location=ROXX0003 --datatype=CO}
  ${font Verdana:bold:size=16}${color #B1B1B1}${execi 300 conkyForecast --location=ROXX0003 --datatype=HT}${font Verdana:bold:italic:size=11}    ${execi 300 conkyForecast --location=ROXX0003 --datatype=CC}$alignr$font${offset -50}${voffset -22}${font ConkyWeather:size=26}${execi 300 conkyForecast --location=ROXX0003 --datatype=WF}$font
  ${font Verdana:bold:size=9}${color DimGray}Feels like:$font$alignr${execi 300 conkyForecast --location=ROXX0003 --datatype=LT}  
  ${font Verdana:bold:size=9}${color DimGray}Wind:$font$alignr From ${execi 300 conkyForecast --location=ROXX0003 --datatype=WD} at ${execi 300 conkyForecast --location=ROXX0003 --hideunits --datatype=WS} km/h  
  ${font Verdana:bold:size=9}${color DimGray}Humidity:$font$alignr${execi 300 conkyForecast --location=ROXX0003 --datatype=HM}  
  ${font Verdana:bold:size=9}${color DimGray}Sunrise / set:$font$alignr${execi 300 conkyForecast --location=ROXX0003 --datatype=SR} / ${execi 300 conkyForecast --location=ROXX0003 --datatype=SS}  $font
  ${font Verdana:bold:size=9}${color DimGray}${execi 300 conkyForecast --location=ROXX0003 --datatype=DW -s 1 -e 1}:$font$alignr${execi 300 conkyForecast --location=ROXX0003 --datatype=CC -s 1 -e 1},  ${execi 300 conkyForecast --location=ROXX0003 --datatype=HT -s 1 -e 1}  
${font Vrinda:size=8}

UBUNTU 12.04 LTS  -->  ASUS P5G41T-M-LX  |  INTEL PENTIUM DUAL CORE E6700 3,2GHZ  |  KINGSTON DDR3 8GB  |  DAYTONA NVIDIA GT430 1GB GDDR3 128BIT | WESTERN DIGITAL CB 1TB 32MB | BENQ G2420HDBL LED 24"
ubuntu user #31443

Offline

 

#10 25 May 2010 15:57:36

stanca
Membru
Locaţie: Bucuresti
Înregistrat: 03 May 2009
Mesaje: 1167
Site web

Re: Configuratie conky [ script + screenshot ]

Bravo!Hai ca a iesit chiar bun.Mie-mi place.Ai avut ceva timp si rabdare.winksmile

Offline

 

#11 29 May 2010 20:44:01

calvarr
Membru
Înregistrat: 09 Sep 2007
Mesaje: 1742
Site web

Re: Configuratie conky [ script + screenshot ]

Buna ziua, cum pot schimba inaltimea? folosesc un notebook, nu se vede vremea...  (conkyrc spooker) multumesc

Editat ultima oară de calvarr (29 May 2010 20:45:31)


tvmaxe-cli
☢☣☠

Offline

 

#12 29 May 2010 22:10:04

drlabs
Membru
Înregistrat: 26 Feb 2010
Mesaje: 472

Re: Configuratie conky [ script + screenshot ]

micsoreaza dimensiunile fonturilor, sau mai redu din informatiile afisate.


Dau la schimb jaf cu megaavion smile Bonus cd cu manele!

Offline

 

#13 31 May 2010 13:12:12

AM@OR
Membru
Locaţie: Baia Mare
Înregistrat: 21 Feb 2006
Mesaje: 676

Re: Configuratie conky [ script + screenshot ]

pe Kubuntu 8.04 (fereastra transparenta) adaptat la ecran 19" 1152x864
http://img714.imageshack.us/img714/7055/snapshot2dp.th.png
-$HOME/.concyrc:

Cod:

# UBUNTU-CONKY luat de pe :
# http://www.ubuntugeek.com/conky-a-light-weight-system-monitor-for-Ubuntu-Linux-Systems 
# si de pe http://ubuntuforums.org/showthread.php?t=281865&page=1226&highlight=conky
# (partea de calendar si vreme cu adaptare la Baia Mare=RO 00XX47)
#
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
# own_window yes
 own_window_type override
# own_window_type desktop
own_window_transparent yes
# own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
 double_buffer yes

# fiddle with window
use_spacer right

#use_xft no
use_xft yes
xftfont DejaVu Sans:size=7
xftalpha 0.5

# Update interval in seconds
update_interval 5.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no

#font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 3

# border width
border_width 5

# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color green

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
alignment top_left

#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 6

no_buffers yes
override_utf8_locale yes
text_buffer_size 2048


# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color green}SYSTEM         Conky $conky_version ${hr 2}$color
$nodename $sysname $kernel on $machine
 

${color green}CPU ${hr 2}$color
${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
${color 00a9cb}$cpubar
${cpugraph 000000 00A9CB}${color}
${color green}NAME                PID         CPU%      MEM% ${hr 2}$color
${top name 1}     ${top pid 1}     ${top cpu 1}     ${top mem 1}
${top name 2}     ${top pid 2}     ${top cpu 2}     ${top mem 2}
${top name 3}     ${top pid 3}     ${top cpu 3}     ${top mem 3}
${top name 4}     ${top pid 4}     ${top cpu 4}     ${top mem 4}

${color green}MEMORY / DISK ${hr 2}$color
RAM:   $memperc%   ${membar 6}$color
Swap:  $swapperc%   ${swapbar 6}$color

Root:  ${fs_free_perc /}%   ${color 00a9cb}${fs_bar 6 /}$color
Home:  ${fs_free_perc /home}%  ${color 00a9bc} ${fs_bar 6 /home}$color

${color green}NETWORK  (${addr eth1}) ${hr 2}$color
Down: ${color}${downspeed eth1} k/s Tot: ${totaldown eth1}${alignr}  Up: ${upspeed eth1} k/s Tot: ${totalup eth1} 
In: ${tcp_portmon 1 32767 count}  Out: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
${color ffcc00}${downspeedgraph eth1 20,140 000000 ff0000} ${alignr}${upspeedgraph eth1
20,140 000000 00ff00}$color

${voffset -8}${font Trebuchet MS:bold:size=38}${alignc 18}${time %H}${font}
${voffset -46}${font Trebuchet MS:bold:size=20}${alignc -30}${time %M}${font}
${voffset -4}${color #e5e5e5}${font Trebuchet MS:bold:size=14}${alignc -30}${time %S}${font}${color}
${voffset 8}${color #e5e5e5}${font Trebuchet MS:bold:size=9}${alignc 62}${time %a}${font}${color}
${voffset -2}${color #ffcc00}${font Trebuchet MS:bold:size=24}${alignc 62}${time %d}${font}${color}
${voffset 0}${color #e5e5e5}${font Trebuchet MS:bold:size=7}${alignc 62}${time %B}${font}${color}
${voffset 0}${color #e5e5e5}${font Trebuchet MS:bold:size=7}${alignc 62}${time %Y}${font}${color}
${voffset -72}${font andale mono:size=7}${color ffffff}${execpi 600 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc -30} /' | sed /" $DJS "/s/" $DJS "/" "'${color 00A9CB}'"$DJS"'${color ffffff}'" "/}${font}

${voffset 3}${execpi 240 conkyForecast --location=ROXX0047 --template=/home/andrei/.conkyForecast.template}

${voffset -30}
${color green}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}

${color green}FORTUNE ${hr 2}$color
${execi 240 fortune -s | fold -w50}

ID-ul orasului (modifica dupa necesitati) Baia Mare  location=RO00XX47 si se obtine de aici: http://aspnetresources.com/tools/locid.aspx

pentru modulul de vreme trebuie sa ai in directorul userului curent fisierul ascuns /.conkyForecast.template cu urmatorul continut:

Cod:

${offset 5}${font ConkyWeather:style=Bold:size=28}[--datatype=WF]${font}
${voffset -20}${alignr 30}${font Trebuchet MS:size=24}[--datatype=HT]${font}
${voffset -30}${alignc}${voffset 0}[--datatype=CT]
${voffset 2}${alignc}[--datatype=BR] • [--datatype=HM] • [--datatype=WS] [--datatype=WD]
${voffset 3}${alignc}[--datatype=DW --startday=1 --shortweekday]          [--datatype=DW --startday=2 --shortweekday]            [--datatype=DW --startday=3 --shortweekday]            [--datatype=DW --startday=4 --shortweekday]
${voffset 0}${font ConkyWeather:size=15}${alignc}[--datatype=WF --startday=1 --endday=4 --spaces=4]${alignc}
${voffset 0}${font Trebuchet MS:size=8}${alignc}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]    [--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]  [--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]  [--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]${font}

B.r.

Offline

 

#14 31 May 2010 16:50:22

spooker
Membru
Locaţie: Bucale
Înregistrat: 21 Sep 2009
Mesaje: 42
Site web

Re: Configuratie conky [ script + screenshot ]

Mi-am mai modificat si eu conky-ul ca sa imi incapa si pe rezolutia de la laptop dar am intampinat o problema, nu imi vede temperatura proc-ului.
Am incercat cu variabilele $acpitemp si cu $adt746xcpu. Laptop-ul este un Toshiba Satellite L500-1EK iar SO este Ubuntu 10.04.
Are cineva vreo idee?
Si inca o chestie care mi s-a parut ciudata... la frecventa procesorului (variabila folosita este $freq_g) imi arata cand 1,2 ghz cand 2,1 ghz. Ce banuiesc eu este ca ubuntu are vreun sistem de management de consum al resurselor si cand vede ca nu e folosit procul ii reduce frecventa, respectiv consumul de curent.... altceva nu prea imi explic...

Editat ultima oară de spooker (31 May 2010 16:51:29)


UBUNTU 12.04 LTS  -->  ASUS P5G41T-M-LX  |  INTEL PENTIUM DUAL CORE E6700 3,2GHZ  |  KINGSTON DDR3 8GB  |  DAYTONA NVIDIA GT430 1GB GDDR3 128BIT | WESTERN DIGITAL CB 1TB 32MB | BENQ G2420HDBL LED 24"
ubuntu user #31443

Offline

 

#15 31 May 2010 17:50:14

ova
Membru
Locaţie: Timisoara
Înregistrat: 21 Jan 2007
Mesaje: 66

Re: Configuratie conky [ script + screenshot ]

cu toata transparenta se vede urat marginea la conky, si in plus n-ai nici compiz activ


( @ ) ( @ )

Offline

 

#16 09 Jun 2010 13:05:32

calvarr
Membru
Înregistrat: 09 Sep 2007
Mesaje: 1742
Site web

Re: Configuratie conky [ script + screenshot ]

http://www3.mediafire.com/imgbnc.php/a5fd1ed7d40a15b7c3d857a1cff91d6c0g.jpg adaptat pentru 1024X600
conkycr:

Cod:

use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes

text_buffer_size 2048
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 1
cpu_avg_samples 1

background yes
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

default_color d8d8d8
draw_borders no
border_width 1
border_margin 10
draw_graph_borders yes
draw_outline no
draw_shades no

color0 E6E6E6
color1 de2adc
color2 E6E6E6

alignment top_right
gap_x 25
gap_y 50
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

imlib_cache_size 0

TEXT
${font Liberation Sans:style=Bold:size=8}${color1}PEPPERMINT ${color0}$hr 2${font}
${color0}${voffset 6}${font OpenLogos:size=15}u${font}${color}${goto 38}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 38}Uptime: ${alignr}${color2}${uptime}${color}
${offset 1}${color0}${font Poky:size=12}P${font}${offset -15}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 38}CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu1 8,50 204A87 3465A4}${color}
${goto 38}CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 1' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu2 8,50 204A87 3465A4}${color}
${color0}${font Poky:size=12}M${font}${color}${goto 38}${voffset -7}RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc% ${color0}           $membar${color0}${font}
${offset 1}${voffset 2}${color2}${membar 4,18}${color}${goto 38}${voffset -2}F: ${color2}${memeasyfree}${color} U: ${color2}${mem}${color}
${voffset 4}${font Liberation Sans:style=Bold:size=8}SWAP ${font Liberation Sans:style=Bold:size=8}$alignr $swap /  $swapmax
  ${font Liberation Sans:style=Bold:size=8}${color0}Usage: ${font Liberation Sans:size=8}${color1}$swapperc% ${color0}                   $swapbar
${font Liberation Sans:style=Bold:size=8}${color0}Battery${font Liberation Sans:size=8}$alignr ${color1}${battery_percent BAT1}% ${battery_time BAT1}${color0}${battery_bar BAT1}
${font Liberation Sans:style=Bold:size=8}${color0}HDD ${color0}${hr 2}$font
 ${font Liberation Sans:style=Bold:size=8}${color0}ROOT ${font Liberation Sans:size=8}$alignr ${fs_used /}/  ${fs_size /} 
  ${font Liberation Sans:style=Bold:size=8}${color0}Usage:     ${font Liberation Sans:size=8}${color1}${fs_free_perc /}% ${color0} ${fs_bar /}
 ${font Liberation Sans:style=Bold:size=8}${color0}Personal ${font Liberation Sans:size=8}$alignr ${fs_used /personale}/  ${fs_size /personale} 
  ${font Liberation Sans:style=Bold:size=8}${color0}Usage:     ${font Liberation Sans:size=8}${color1}${fs_free_perc /personale}%  ${color0}${fs_bar /personale}
${font Trebuchet MS:size=15}${alignc}${color1}${time %H:%M:%S}${font}
${voffset 4}${font Trebuchet MS:size=8}${color0}${alignc}${time %A - %d - %B - %Y}${font}
${hr 1}${color0}${font LCDMono:size=8}${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 "/" "'${#1}'"$DJS"'${color0}'" "/}
${voffset -15}${font OpenSymbol:size=18}${color0}${voffset 4}${font Liberation Sans:style=Bold:size=8}NETWORK $hr 2${font}
${if_existing /proc/net/route wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup wlan0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown wlan0}${color}
${voffset -2}${color0}${font Poky:size=12}Y${font}${color}${goto 38} ${voffset -2}Signal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=12}w${font}${color}${goto 38}${voffset -8}Local IP: ${alignr}${color1}${addr wlan0}${color}
${goto 38}Public IP: ${alignr}${color1}${execi 3600 wget -O - http://whatismyip.org/ | tail}${color}
${else}${if_existing /proc/net/route eth1}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth1}${color}${font} ${alignr}${color2}${upspeedgraph eth1 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup eth1}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth1}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown eth1}${color}
${voffset -2}${color0}${font Poky:size=12}w${font}${color}${goto 38}${voffset -4}Local IP: ${alignr}${color1}${addr eth1}${color}
${goto 38}Public IP: ${alignr}${color1}${execi 3600 wget -O - http://whatismyip.org/ | tail}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 38}${voffset -6}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totalup ppp0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 38}${voffset -6}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 204A87 3465A4}${color}
${goto 38}Total: ${color2}${totaldown ppp0}${color}
${voffset -2}${color0}${font Poky:size=12}w${font}${color}${goto 38}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 38}Network Unavailable${endif}${endif}${font Liberation Sans:style=Bold:size=8}WEATHER ${color0}${hr 2}
$font${font Liberation Sans:style=Bold:size=8}${color0}${execi 300 conkyForecast --location=ROXX0046 --datatype=CN},  ${execi 300 conkyForecast --location=ROXX0046 --datatype=CO}
  ${font Liberation Sans:style=Bold:size=8}${color0}${execi 300 conkyForecast --location=ROXX0046 --datatype=HT}${font Liberation Sans:style=Bold:size=8}    ${execi 300 conkyForecast --location=ROXX0046 --datatype=CC}$alignr$font${offset -50}${voffset -22}${font ConkyWeather:size=26}${execi 300 conkyForecast --location=ROXX0046 --datatype=WF}$font
  ${font Liberation Sans:style=Bold:size=8}${color0}Feels like:$font$alignr${color1}${execi 300 conkyForecast --location=ROXX0046 --datatype=LT}  
  ${font Liberation Sans:style=Bold:size=8}${color0}Wind:$font$alignr ${color1}From ${execi 300 conkyForecast --location=ROXX0046 --datatype=WD} at ${execi 300 conkyForecast --location=ROXX0046 --hideunits --datatype=WS}km/h  
  ${font Liberation Sans:style=Bold:size=8}${color0}Humidity:$font$alignr${color1}${execi 300 conkyForecast --location=ROXX0046 --datatype=HM}  
  ${font Liberation Sans:style=Bold:size=8}${color0}Sunrise / set:$font$alignr${color1}${execi 300 conkyForecast --location=ROXX0046 --datatype=SR} / ${execi 300 conkyForecast --location=ROXX0046 --datatype=SS}  $font
  ${font Liberation Sans:style=Bold:size=8}${color0}${execi 300 conkyForecast --location=ROXX0046 --datatype=DW -s 1 -e 1}:$font$alignr${color1}${execi 300 conkyForecast --location=ROXX0046 --datatype=CC -s 1 -e 1},  ${execi 300 conkyForecast --location=ROXX0046 --datatype=HT -s 1 -e 1}  
${font Vrinda:size=8}${voffset 4}${voffset -8}${color0}${font Martin Vogel's Symbols:size=19}B${font}${color}${goto 32}Gmail: ${alignr}${font Liberation Sans:style=Bold:size=8}${color0}${execpi 3600 ~/.conky/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com -u ID@gmail.com -p password --ssl}${font}${color1}New email(s)

Editat ultima oară de calvarr (09 Jun 2010 13:10:02)


tvmaxe-cli
☢☣☠

Offline

 

#17 08 Jul 2010 17:37:00

RHADE
Membru
Locaţie: Brașov
Înregistrat: 10 Jul 2009
Mesaje: 434

Re: Configuratie conky [ script + screenshot ]

Cine mă poate ajuta să se afișeze cum trebuie această configurație. Sincer am preluat-o de la cineva și nu știu să o adaptez pentru calculatorul meu - rezoluția monitorului este de 1280x1024 și locația pentru vreme este Brașov și am procesor dual core.

Cod:

# Conky configuration
# of cbrman.
###For a correct work, edit it and delete all the lines that start with ### below the line called TEXT. They are notes about make it work.
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont sans:size=7:bold

# Text alpha when using Xft
xftalpha 0.8

# MPD host/port
#mpd_host localhost
#mpd_port 6600
#mpd_password tinker_bell

#Print everything to console?
out_to_console no

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour black

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 210 5

# Maximum width of window
maximum_width 215

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 1

# border margins
border_margin 4

# border width
border_width 0

# Default colors and also border colors
default_color #cccccc
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 5
gap_y 0 # To hide from tranparent window borders.

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
max_user_text 16384

TEXT
${voffset -5}${color #f8ec1e}${font undotum:size=30:bold}${time %e}${font}
${voffset -33}${goto 65}${#f8ec1e}${font undotum:size=10}${time %A}${font}, ${voffset -7}${#f8ec1e}${font undotum:size=12}${time %B}${font} ${voffset -7}${color #f8ec1e}${font undotum:size=12:bold}${time %G}${font}
${voffset -2}${goto 65}${color #f2f2f2}${font undotum:size=12:bold}${time %H:%M:%S%z %P}${font}
${voffset 12}${font openlogos:size=20}${font}${voffset -50}
${voffset 18}${goto 22}${color #28AF63}${color #28AF63}$sysname ${color #FF6600} $kernel ${color #28AF63}Ubuntu ${color #FF6600}$machine${voffset -18}
${voffset 16}${goto 22}${color #28AF63}Uptime:${color #FF6600} $uptime ${color #28AF63}Load:${color #FF6600} $loadavg${voffset -18}
${voffset 18}${goto 22}${color #28AF63}CPU: ${color #28AF63}${cpubar 7,92} ${color #FF6600} $cpu%
${voffset -27}${goto 500}${color #FF6600}${font Openlogos:size=20}${font}
${color #28AF63}${cpugraph 15,203 FF6600 f2f2f2}
${color #28AF63}RAM: ${color #FF6600}$mem/$memmax - $memperc% ${color #28AF63}${alignr 2}${membar 7,45}
${color #28AF63}Swap: ${color #FF6600}$swap/$swapmax - $swapperc% ${color #28AF63}${alignr 2}${swapbar 7,46}
${color #28AF63}Processes: ${color #FF6600}$processes ${color #28AF63}CPU freqency: ${color #FF6600}${freq 1}MHz
${color #f8ec1e}${font OpenLogos:size=25}J${color #f8ec1e}${font 28 Days Later:size=10} WEATHER $stippled_hr${font}
${offset 4}${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CN --refetch}
${color #28AF63}Today's Conditions:${offset 4}${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CT}
${offset 36}${voffset -4}${color #28AF63}${font Weather:size=54}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WF}${font}
${voffset -8}${color #28AF63}Temperature: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HT} ${color #28AF63}Windspeed: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WS}
${color #28AF63}Direction: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WD} ${color #28AF63}Humidity: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HM}
${color #28AF63}${stippled_hr 1}
${color #28AF63}Tomorrow: ${offset 4}${color #f8ec1e}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CT --startday=1 --endday=1}
${color #28AF63}${stippled_hr 1}
${offset 20}${color #f8ec1e}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=DW --shortweekday --startday=1 --endday=3 --spaces=15}
${offset 14}${color whitesmoke}${font Weather:size=30}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WF --startday=1 --endday=3 --spaces=9}${font}
${voffset -7}${color #28AF63}Max: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HT --startday=1 --endday=3 --spaces=13}
${color #28AF63}Min: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=LT --startday=1 --endday=3 --spaces=14}
${color #28AF63}Hum: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HM --startday=1 --endday=3 --spaces=13}
${color #f8ec1e}${font Poky:size=20}a${color #f8ec1e}${font 28 Days Later:size=10} PROCESSES $stippled_hr ${font}
${color #28AF63}Name ::. ${goto 110}PID${goto 138}CPU%${goto 175}MEM%
${color #FF6600}${top name 1} ${goto 105}${top pid 1}${goto 138}${top cpu 1}${goto 175}${top mem 1}
${color #FF6600}${top name 2} ${goto 105}${top pid 2}${goto 138}${top cpu 2}${goto 175}${top mem 2}
${color #FF6600}${top name 3} ${goto 105}${top pid 3}${goto 138}${top cpu 3}${goto 175}${top mem 3}
${color #FF6600}${top name 4} ${goto 105}${top pid 4}${goto 138}${top cpu 3}${goto 175}${top mem 4}
${color #28AF63}Memory ::.
${color #FF6600}${top_mem name 1} ${goto 105}${top_mem pid 1}${goto 138}${top_mem cpu 1}${goto 175}${top_mem mem 1}
${color #FF6600}${top_mem name 2} ${goto 105}${top_mem pid 2}${goto 138}${top_mem cpu 2}${goto 175}${top_mem mem 2}
${color #FF6600}${top_mem name 3} ${goto 105}${top_mem pid 3}${goto 138}${top_mem cpu 3}${goto 175}${top_mem mem 3}
${color #FF6600}${top_mem name 4} ${goto 105}${top_mem pid 4}${goto 138}${top_mem cpu 4}${goto 175}${top_mem mem 4}
${color #f8ec1e}${font Poky:size=20}f${color #f8ec1e}${font 28 Days Later:size=10} HARD DRIVE INFO $stippled_hr ${font}
${color #28AF63}Root ${goto 50}${color #FF6600}${fs_used /}/${fs_size /} ${color #28AF63}${alignr 2}${fs_bar 7,60 /}
${color #28AF63}Home ${goto 50}${color #FF6600}${fs_used /home}/${fs_size /home} ${color #28AF63}${alignr 2}${fs_bar 7,60 /home}
${color #f8ec1e}${font Poky:size=20}l${color #f8ec1e}${font 28 Days Later:size=10} MUSIC $stippled_hr${font}
${color #28AF63}${alignc}CURRENT SONG INFO ::.
${if_running rhythmbox}${color #28AF63}Artist: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %ta}
${color #28AF63}Title: ${color #FF6600}${goto 50}${exec rhythmbox-client --print-playing-format %tt}
${color #28AF63}Album: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %at}
${color #28AF63}Genre: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %ag}${goto 130}${color #28AF63}Year: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %ay}
${color #28AF63}Position: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %te}${goto 130}${color #28AF63}Length: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %td}${color #28AF63}$else${color #f2f2f2}${alignc}${font sans:size=6:bold}No Activity${font}$endif
${color #f8ec1e}${font Poky:size=20}w${color #f8ec1e}${font 28 Days Later:size=10} NETWORKING $stippled_hr ${font}
${color #28AF63}My IP Address: ${color #FF6600}${execi 10000 curl 'http://www.whatismyip.org'}
${color #28AF63}WiFi Network: ${color #FF6600} ${wireless_essid wlan0} ${color #FF6600} ${wireless_bitrate wlan0} ${wireless_link_qual wlan0}%
${color #28AF63}${wireless_link_bar wlan0}

http://img710.imageshack.us/img710/1015/conkyv.th.png

Uploaded with ImageShack.us


Prostia înseamnă să faci același lucru în mod repetat, așteptând rezultate diferite.

Offline

 

#18 10 Aug 2010 12:19:52

Ovidiu68
Oaspete

Re: Configuratie conky [ script + screenshot ]

Folosesc un PC cu configuratia urmatoare :
Amd athlon 2x64 Dual core ( 2CPU's) 2,3 Gh, 4 Gram, Video ATI Radeon hd 2400 512 .
Am instalat Conky de AICI, folosind pas cu pas tot ce scrie acolo (inclusiz si cele optionale, deci tot) si conky se pare ca afiseaza:
parerea mea... aiurea:
http://img203.imageshack.us/img203/3557/screenshot1kq.png
De asemenea nici Local IP nu afiseaza IPul local (sunt in spatele unui router care aloca ip prin dhcp, eg: 192.168.x.x), insa IPul extern il afiseaza:
http://img697.imageshack.us/img697/751/screenshot5jb.png
aici un alt EX, PIDGIN:
http://img15.imageshack.us/img15/4254/screenshot4et.png
Conki (cfg)arata asa:

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color 3C3B37

color0 292927
color1 C6B9A6
color2 292927

TEXT
${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Packages${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 32}CPU1: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu1 8,50 C6B9A6 C6B9A6}${color}
${goto 32}CPU2: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 1' | cut -c15-16}°C${color}${font}  ${color2}${cpugraph cpu2 8,50 C6B9A6 C6B9A6}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${color2}${memeasyfree}${color} U: ${color2}${mem}${color}
# |--CPU
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color2}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${color2}$swapmax${color} U: ${color2}$swap${color}
# |--PROC
${voffset 2}${color0}${font Poky:size=15}a${font}${color}${goto 32}${voffset -10}Processes: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 3}${alignr }${top mem 3}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${voffset -12}${goto 28}${font Arial Black:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Droid Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 100}${font Droid Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${goto 100}${time %d %b %Y}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font Poky:size=15}d${font}${color}${voffset -8}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%-d`; cal | sed 's/^/${goto 32} /' | sed '1d' | sed s/" $DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color}${font}${font Liberation Mono:size=8}'" "/}${font}${font}${voffset -14}
#################
# - RHYTHMBOX - #
#################
${voffset 4}${font Droid Sans:style=Bold:size=8}RHYTHMBOX $stippled_hr${font}
${execi 10 ~/.conkycolors/bin/conkyCover}${execpi 10 ~/.conkycolors/bin/conkyRhythmbox -t ~/.conkycolors/templates/conkyPlayer.template}
##############
# - NVIDIA - #
##############
${voffset 4}${font Droid Sans:style=Bold:size=8}NVIDIA $stippled_hr${font}
${color0}${voffset -4}${font Poky:size=17}N${font}${color}${goto 32}${voffset -8}GPU Temp:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${font}${color}°C
${goto 32}GPU Clock:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q GPU2DClockFreqs -t}${font}${color}MHz
${goto 32}Video RAM:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q VideoRam -t}${font}${color}KiB
${goto 32}Driver Version:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q NvidiaDriverVersion -t}${font}${color}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totalup wlan0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totaldown wlan0}${color}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 32} ${voffset -2}Signal: ${font Droid Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -8}Local IP: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totalup eth0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totaldown eth0}${color}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr eth0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totalup ppp0}${color}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 C6B9A6 C6B9A6}${color}
${goto 32}Total: ${color2}${totaldown ppp0}${color}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Network Unavailable${endif}${endif}

Editat ultima oară de Ovidiu68 (10 Aug 2010 12:30:06)

 

#19 10 Aug 2010 13:04:23

Ăla mic
Moderator
Locaţie: Constanța
Înregistrat: 10 Feb 2010
Mesaje: 5592

Re: Configuratie conky [ script + screenshot ]

OFF :

Pt. blur și  numerotare poți încerca opțiunile dedicate :  (@vladi m-a invățat)
http://img261.imageshack.us/img261/4854/capturecran17.th.png

OFF
.

Editat ultima oară de Ăla micu' (10 Aug 2010 13:10:08)


[REZOLVAT] ? => DONEAZĂ !   GRUB2   E1-571    Ce este un forum?   Anti-troll   Ubuntu = umanitate către ceilalți

Offline

 

#20 10 Aug 2010 17:01:33

AM@OR
Membru
Locaţie: Baia Mare
Înregistrat: 21 Feb 2006
Mesaje: 676

Re: Configuratie conky [ script + screenshot ]

@Ovidiu68

daca mai conteaza, conky colors actualizat il gasesti aici .

- pentru adresa LAN ar fi bine de vazut rezultatul comenzii ifconfig (sau sa inlocuiesti una din wlan0//ppp0//eth0 cu ce ai tu de fapt).

B.r.

Offline

 

#21 10 Aug 2010 17:19:29

AM@OR
Membru
Locaţie: Baia Mare
Înregistrat: 21 Feb 2006
Mesaje: 676

Re: Configuratie conky [ script + screenshot ]

RHADE a scris:

Cine mă poate ajuta să se afișeze cum trebuie această configurație. Sincer am preluat-o de la cineva și nu știu să o adaptez pentru calculatorul meu - rezoluția monitorului este de 1280x1024 și locația pentru vreme este Brașov și am procesor dual core.

Cod:

# Conky configuration
# of cbrman.
###For a correct work, edit it and delete all the lines that start with ### below the line called TEXT. They are notes about make it work.
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont sans:size=7:bold

# Text alpha when using Xft
xftalpha 0.8

# MPD host/port
#mpd_host localhost
#mpd_port 6600
#mpd_password tinker_bell

#Print everything to console?
out_to_console no

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour black

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 210 5

# Maximum width of window
maximum_width 215

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 1

# border margins
border_margin 4

# border width
border_width 0

# Default colors and also border colors
default_color #cccccc
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 5
gap_y 0 # To hide from tranparent window borders.

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
max_user_text 16384

TEXT
${voffset -5}${color #f8ec1e}${font undotum:size=30:bold}${time %e}${font}
${voffset -33}${goto 65}${#f8ec1e}${font undotum:size=10}${time %A}${font}, ${voffset -7}${#f8ec1e}${font undotum:size=12}${time %B}${font} ${voffset -7}${color #f8ec1e}${font undotum:size=12:bold}${time %G}${font}
${voffset -2}${goto 65}${color #f2f2f2}${font undotum:size=12:bold}${time %H:%M:%S%z %P}${font}
${voffset 12}${font openlogos:size=20}${font}${voffset -50}
${voffset 18}${goto 22}${color #28AF63}${color #28AF63}$sysname ${color #FF6600} $kernel ${color #28AF63}Ubuntu ${color #FF6600}$machine${voffset -18}
${voffset 16}${goto 22}${color #28AF63}Uptime:${color #FF6600} $uptime ${color #28AF63}Load:${color #FF6600} $loadavg${voffset -18}
${voffset 18}${goto 22}${color #28AF63}CPU: ${color #28AF63}${cpubar 7,92} ${color #FF6600} $cpu%
${voffset -27}${goto 500}${color #FF6600}${font Openlogos:size=20}${font}
${color #28AF63}${cpugraph 15,203 FF6600 f2f2f2}
${color #28AF63}RAM: ${color #FF6600}$mem/$memmax - $memperc% ${color #28AF63}${alignr 2}${membar 7,45}
${color #28AF63}Swap: ${color #FF6600}$swap/$swapmax - $swapperc% ${color #28AF63}${alignr 2}${swapbar 7,46}
${color #28AF63}Processes: ${color #FF6600}$processes ${color #28AF63}CPU freqency: ${color #FF6600}${freq 1}MHz
${color #f8ec1e}${font OpenLogos:size=25}J${color #f8ec1e}${font 28 Days Later:size=10} WEATHER $stippled_hr${font}
${offset 4}${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CN --refetch}
${color #28AF63}Today's Conditions:${offset 4}${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CT}
${offset 36}${voffset -4}${color #28AF63}${font Weather:size=54}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WF}${font}
${voffset -8}${color #28AF63}Temperature: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HT} ${color #28AF63}Windspeed: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WS}
${color #28AF63}Direction: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WD} ${color #28AF63}Humidity: ${color whitesmoke}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HM}
${color #28AF63}${stippled_hr 1}
${color #28AF63}Tomorrow: ${offset 4}${color #f8ec1e}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=CT --startday=1 --endday=1}
${color #28AF63}${stippled_hr 1}
${offset 20}${color #f8ec1e}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=DW --shortweekday --startday=1 --endday=3 --spaces=15}
${offset 14}${color whitesmoke}${font Weather:size=30}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=WF --startday=1 --endday=3 --spaces=9}${font}
${voffset -7}${color #28AF63}Max: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HT --startday=1 --endday=3 --spaces=13}
${color #28AF63}Min: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=LT --startday=1 --endday=3 --spaces=14}
${color #28AF63}Hum: ${color #FF6600}${execi 1680 python /home/deepu/.scripts/conkyForecast.py --location=USKS0620 --datatype=HM --startday=1 --endday=3 --spaces=13}
${color #f8ec1e}${font Poky:size=20}a${color #f8ec1e}${font 28 Days Later:size=10} PROCESSES $stippled_hr ${font}
${color #28AF63}Name ::. ${goto 110}PID${goto 138}CPU%${goto 175}MEM%
${color #FF6600}${top name 1} ${goto 105}${top pid 1}${goto 138}${top cpu 1}${goto 175}${top mem 1}
${color #FF6600}${top name 2} ${goto 105}${top pid 2}${goto 138}${top cpu 2}${goto 175}${top mem 2}
${color #FF6600}${top name 3} ${goto 105}${top pid 3}${goto 138}${top cpu 3}${goto 175}${top mem 3}
${color #FF6600}${top name 4} ${goto 105}${top pid 4}${goto 138}${top cpu 3}${goto 175}${top mem 4}
${color #28AF63}Memory ::.
${color #FF6600}${top_mem name 1} ${goto 105}${top_mem pid 1}${goto 138}${top_mem cpu 1}${goto 175}${top_mem mem 1}
${color #FF6600}${top_mem name 2} ${goto 105}${top_mem pid 2}${goto 138}${top_mem cpu 2}${goto 175}${top_mem mem 2}
${color #FF6600}${top_mem name 3} ${goto 105}${top_mem pid 3}${goto 138}${top_mem cpu 3}${goto 175}${top_mem mem 3}
${color #FF6600}${top_mem name 4} ${goto 105}${top_mem pid 4}${goto 138}${top_mem cpu 4}${goto 175}${top_mem mem 4}
${color #f8ec1e}${font Poky:size=20}f${color #f8ec1e}${font 28 Days Later:size=10} HARD DRIVE INFO $stippled_hr ${font}
${color #28AF63}Root ${goto 50}${color #FF6600}${fs_used /}/${fs_size /} ${color #28AF63}${alignr 2}${fs_bar 7,60 /}
${color #28AF63}Home ${goto 50}${color #FF6600}${fs_used /home}/${fs_size /home} ${color #28AF63}${alignr 2}${fs_bar 7,60 /home}
${color #f8ec1e}${font Poky:size=20}l${color #f8ec1e}${font 28 Days Later:size=10} MUSIC $stippled_hr${font}
${color #28AF63}${alignc}CURRENT SONG INFO ::.
${if_running rhythmbox}${color #28AF63}Artist: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %ta}
${color #28AF63}Title: ${color #FF6600}${goto 50}${exec rhythmbox-client --print-playing-format %tt}
${color #28AF63}Album: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %at}
${color #28AF63}Genre: ${color #FF6600}${goto 50}${exec rhythmbox-client --no-start --print-playing-format %ag}${goto 130}${color #28AF63}Year: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %ay}
${color #28AF63}Position: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %te}${goto 130}${color #28AF63}Length: ${color #FF6600}${exec rhythmbox-client --no-start --print-playing-format %td}${color #28AF63}$else${color #f2f2f2}${alignc}${font sans:size=6:bold}No Activity${font}$endif
${color #f8ec1e}${font Poky:size=20}w${color #f8ec1e}${font 28 Days Later:size=10} NETWORKING $stippled_hr ${font}
${color #28AF63}My IP Address: ${color #FF6600}${execi 10000 curl 'http://www.whatismyip.org'}
${color #28AF63}WiFi Network: ${color #FF6600} ${wireless_essid wlan0} ${color #FF6600} ${wireless_bitrate wlan0} ${wireless_link_qual wlan0}%
${color #28AF63}${wireless_link_bar wlan0}

http://img710.imageshack.us/img710/1015/conkyv.th.png

daca nu e prea tarziu,
vezi ce apare daca

# Minimum size of text area
comentezi "minimum_size 210 5" (pui # in pozitia 1)
si
# Maximum width of window
#maximum_width 215  #comentezi pentru a nu limita latimea ferestrei (sau modifici dupa necesitati)

pentru afisare pe verticala lucrezi in sectiunea TEXT din /.config.rc :
${voffset -5} inseamna ca va scrie mai sus cu 5pixeli ,  ${voffset 5} mai jos cu 5px;
-daca vrei sa scrie in linia lui (curenta) dai ${voffset 0} unde 0=zero; 
apoi : ${font undotum:size=30:bold} jonglezi peste tot cu size si pui sau nu bold (font ingrosat);

b.r.

Offline

 

#22 10 Aug 2010 18:32:24

Ovidiu68
Oaspete

Re: Configuratie conky [ script + screenshot ]

AM@OR a scris:

@Ovidiu68

daca mai conteaza, conky colors actualizat il gasesti aici .

Am zis deja ca am instalat Conky colors de AICI tutorial complect (vorbim de aceeasi sursa smile ) .

AM@OR a scris:

pentru adresa LAN ar fi bine de vazut rezultatul comenzii ifconfig (sau sa inlocuiesti una din wlan0//ppp0//eth0 cu ce ai tu de fapt)

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX 
          inet addr:192.168.178.45  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::219:21ff:fe03:cc38/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:725899 errors:0 dropped:0 overruns:0 frame:0
          TX packets:424848 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1055802547 (1.0 GB)  TX bytes:26999770 (26.9 MB)
          Interrupt:16

Editat ultima oară de Ovidiu68 (10 Aug 2010 18:37:18)

 

#23 10 Aug 2010 19:35:00

Bobses
Membru
Locaţie: Iaşi
Înregistrat: 05 Jun 2006
Mesaje: 436
Site web

Re: Configuratie conky [ script + screenshot ]

Am cîteva ore de cînd mă chinui și nu reușesc să văd cum aflu:
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
M-am înregistrat pe weather.com, dar nu găsesc niciunde valorile respective.

Mă poate ajuta cineva?

Offline

 

#24 10 Aug 2010 19:39:22

AM@OR
Membru
Locaţie: Baia Mare
Înregistrat: 21 Feb 2006
Mesaje: 676

Re: Configuratie conky [ script + screenshot ]

@Bobses

linkul asta: http://aspnetresources.com/tools/locid.aspx nu te ajuta?

Editat ultima oară de AM@OR (10 Aug 2010 19:40:30)

Offline

 

#25 10 Aug 2010 19:42:33

Bobses
Membru
Locaţie: Iaşi
Înregistrat: 05 Jun 2006
Mesaje: 436
Site web

Re: Configuratie conky [ script + screenshot ]

Nu. Nu vreau ID-ul orașului (ăsta îl aflu foarte ușor din url), ci strict valorile respective, valori care trebuie introduse în conkyForecast.config, pentru a putea să-mi afișez cu conky-colors și vremea.

Offline

 
Feed

Antet forum

Powered by FluxBB