Δημοσιεύτηκε: 12 Δεκ 2009, 11:25
από mixalns
Πριν ήταν το πρώτο μέρος, :lol:
Εδώ είναι τα δικά μου για να πάρεις και ένα παράδειγμα απευθείας.
Autostart το ακόλουθο: ".conky_autostart.sh"
Τα δευτερόλεπτα που βλέπεις είναι ανάλογα των γούστων, Βασικό! το Conky να φορτώνει τελευταίο, Άρχισε με 5δτλ. και δες τι σου ταιριάζει.

Κώδικας: Επιλογή όλων
#!/bin/bash

sleep 25 &&
conky -d -c /home/michael/.conkyrc1 &
sleep 27 &&
conky -d -c /home/michael/.conkyrc2 &
sleep 30 &&
conky -d -c /home/michael/.conkyrc3 &
exit


Τα ακόλουθα είναι για τρία Conky σε μια οθόνη με 1440χ900.
*Εκεί που γράφει * ΠΟΛΗΧΩΡΙΟ" (".conkyrc2",".conkyrc3" ) πρέπει να βάλεις το κωδικό zip της περιοχή σου, δες πρώτο post.

".conkyrc1"


Κώδικας: Επιλογή όλων
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below
double_buffer yes
use_spacer yes
use_xft yes
xftalpha 0.8
xftfont Arial:size=10
update_interval 1.0
maximum_width 300
minimum_size 1000
draw_shades no
draw_outline no
draw_borders no
uppercase no
mail_spool $MAIL
stippled_borders 10
border_margin 4
border_width 1
default_color grey
own_window_colour brown
own_window_transparent yes
alignment top_right
override_utf8_locale yes
gap_x 10
gap_y 10

TEXT
${color yellow}CPU:${cpu}% ${freq}MHz${goto 150}${color green}Load:${loadavg}
${voffset -4}${cpugraph cpu1 20,300 000033 3299cc}
${color yellow}RAM:$memperc%${goto 100}RAM in use: $mem / $memmax
${color #009bf9}${membar 6}
${color orange}Battery: ${battery_percent BAT0}% ${color red}${alignr}${battery_bar 8,180 BAT0}
${color green}CPU:${color yellow}${acpitemp}C ${alignr}Samsung:${color #f7bb2b}${hddtemp /dev/sdb localhost 7634)}°C
${color green}NvidiaAmbient:${color yellow}${execi 60 nvidia-settings -t -q GPUAmbientTemp}C${alignr}${color green}NvidiaCore:${color yellow}${execi 60 nvidia-settings -t -q GPUCoreTemp}C
${color orange}HDD I/O:${color yellow}$diskio${goto 180}Hitachi:${color #f7bb2b}${hddtemp /dev/sda localhost 7634)}°C
${color red}${diskiograph 20,300 0000ff 00ff00}
${color1}${font Vibrocentric:style=bold:size=12}Top Processes$font${color3}${voffset 1}${hr 0}$color
${voffset 3}${color2}${hr 0}
${voffset -20}${color2}Name${goto 125}PID${goto 182}CPU%${goto 250}RAM%$color
${color yellow}${top name 1}${goto 115}${top pid 1}${goto 178}${top cpu 1}${goto 245}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 178}${top cpu 2}${goto 245}${top mem 2}
${top name 3}${goto 115}${top pid 3}${goto 178}${top cpu 3}${goto 245}${top mem 3}
${top name 4}${goto 115}${top pid 4}${goto 178}${top cpu 4}${goto 245}${top mem 4}
${top name 5}${goto 115}${top pid 5}${goto 178}${top cpu 5}${goto 245}${top mem 5}
${voffset 5}${color2}${hr 0}
${voffset -20}${color2}Name${goto 125}PID${goto 182}CPU%${goto 250}RAM%$color
${color yellow}${top_mem name 1}${goto 115}${top_mem pid 1}${goto 178}${top_mem cpu 1}${goto 245}${top_mem mem 1}
${top_mem name 2}${goto 115}${top_mem pid 2}${goto 178}${top_mem cpu 2}${goto 245}${top_mem mem 2}
${top_mem name 3}${goto 115}${top_mem pid 3}${goto 178}${top_mem cpu 3}${goto 245}${top_mem mem 3}
${top_mem name 4}${goto 115}${top_mem pid 4}${goto 178}${top_mem cpu 4}${goto 245}${top_mem mem 4}
${top_mem name 5}${goto 115}${top_mem pid 5}${goto 178}${top_mem cpu 5}${goto 245}${top_mem mem 5}
#${color}RAM: $memperc% ${membar 6}$color
${color #AFAAA2}IN:${addr eth1}${alignr}OUT:${execi 3600 wget -O - http://ip.tupeux.com | tail}
${color #009bf9}Down: ${color #009bf9}${downspeed eth1} k/s ${alignr}Up: ${color #009bf9}${upspeed eth1} k/s
${downspeedgraph eth1 20,140 000000 ff0000} ${alignr}${upspeedgraph eth1 20,140 000000 00ff00}
${color yellow}Total: ${totaldown eth1} ${alignr}Total: ${totalup eth1}
${color #009bf9}AP-MAC:${wireless_ap eth1}
${color yellow}Ssid:${wireless_essid eth1}
${color yellow}Wlan:${wireless_link_qual eth1}%${alignr}${color green}Bitrate:${wireless_bitrate eth1}
${color #009bf9}${wireless_link_bar 8 eth1}
${color yellow}Port(s)Total:${tcp_portmon 1 65535 count}${alignr}#Connections
${color yellow}Inbound: ${tcp_portmon 1 32767 count} Outbound: ${alignr} ${tcp_portmon 1 65535 count}
${color green}Outbound Connection ${alignr} Remote Service/Port$color
${color yellow} ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${tcp_portmon 32768 61000 rhost 8} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
${tcp_portmon 32768 61000 rhost 9} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
${tcp_portmon 32768 61000 rhost 10} ${alignr} ${tcp_portmon 32768 61000 rservice 10}
${color green}Inbound Connection ${alignr} Local Service/Port$color
${color yellow} ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${color #ffffff}@gmail ${color #FC9462}${execi 100 sh /home/michael/.conky/gmail.sh}
${color green}FORTUNE ${hr 2}$color
${color yellow}${execi 120 fortune -s | fold -w50}


GMAIL
Κώδικας: Επιλογή όλων
#!/bin/bash

gmail_login="XXXXXXXXXXXXXX" #Το Όνομα σου#
gmail_password="XXXXXXXXXXXXXXXX" #Το Kωδικό σου#

dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"

if [ -z "$dane" ]; then
echo "! "
else
echo "$dane Unread"
fi




".conkyrc2"


Κώδικας: Επιλογή όλων
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated below sticky skip_taskbar skip_pager
own_window_colour black
background yes
#draw_borders no
#draw_outline no
#draw_shades no
double_buffer yes
cpu_avg_samples 2
net_avg_samples 2
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
update_interval 1
minimum_size 120
maximum_width 450
border_margin 0
border_width 0
draw_outline no
double_buffer yes
#default_color black
#default_shade_color black
#default_outline_color black
#alignment bottom_left
#gap_x 20
#gap_y 20
use_spacer yes
no_buffers yes
uppercase no


TEXT
${color orange}${font :size=20}${time %H:%M}:${time %S %P}
${color yellow}${font :size=15}${uptime}
${color #009bf9}${font :size=15}${time %A}
${color green}${font :size=15}${time %d %b. %Y}
${color #A69A86}${font :size=12}${execi 3600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=MP}
${voffset -30}${alignr 42}${font MoonPhases:size=28}
${execi 3600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=MF}${font}
${color orange}${font :size=15}Καιρός${hr 2}
${color white}${font :size=8}${voffset 0}Άνέμοι: ${alignr}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --hideunits --datatype=WD}
${voffset 0}Ώρες Ήλιου: ${alignr}${execi 3600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=SR} ~ ${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=SS}
${voffset 0}Υγρασία: ${alignr}${execi 300 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HM}
${voffset 0}Βροχόπτωση: ${alignr}${execi 300 conkyForecast --imperial --location=ΠΟΛΗΧΩΡΙΟ --datatype=PC --startday=0}
${voffset 0}Βαρ. Ένταση: ${alignr}${execi 300 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=BD}

${if_existing /proc/net/route eth1}
${color #A69A86}${voffset -10}${alignr 100}${font ConkyWeather:style=Bold:size=40}${execi 300 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=WF}${font}
${color red}${voffset -50}${font Weather:size=40}y${font}${color #009bf9}${voffset -38}${font Arial Black:size=26}${execi 300 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT}${font}

${color white}${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=4 --shortweekday}
${color #009bf9}${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${color white}${voffset 0}${font DejaVu Sans:size=10}${alignc 48}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${else}${if_existing /proc/net/route eth1}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 10}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 70}${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Weather Unavailable


".conkyrc3"


Κώδικας: Επιλογή όλων

background no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=9
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window no
double_buffer yes
minimum_size 400 0
maximum_width 800
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color white
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 450
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer right
color1 white
color2 A7D33A
text_buffer_size 2048

TEXT

${color2}${voffset -20}${offset 30}${font ChopinScript:size=75}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=CT}${font}


${color1}${font ConkyWeather:style=Bold:size=80}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=WF}${font}${voffset -85}${font Bitstream Vera Sans Mono:size=35}${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=HT --centeredwidth=4}/${execi 600 conkyForecast --location=ΠΟΛΗΧΩΡΙΟ --datatype=LT --centeredwidth=4}${font}


(To "eth1" είναι για το δίκτυο, εάν δεν σου ταιριάζει, δοκίμασε το "eth0" ή wlan00...)

το conky είναι "αρρώστια" Πρόσεχε :lol: