~/.conkyrc dosyanız

Başlatan raixu, 14 Mart 2008 - 19:37:13

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

agritux

Aslında onlar resim değil. Yazı tipi. Örnek olarak vereyim, A harfi cpu resmini B harfi ram resmini vs temsil ediyor.
conkyrc dosyasına göz gezdirirsen anlarsın :)

badhero

xftfont Dingbats Regular
olay bu mu?

agritux

TEXT kısmından öncesi conky özelliklerini, sonrası conky de görünenleri yansıtır.
TEXT kısmına baktığımızda şöyle şeyler görüyorum ben. (bir önceki sayfada benim verdiğim örnekte)



${font HandelGotDLig:size=16}SYSTEM${font} ${hr 2}

${font OpenLogos:size=16}u${font}${voffset -5}   Kernel:  ${alignr}${kernel}

${font StyleBats:size=16}A${font}${voffset -5}   CPU: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}

${font StyleBats:size=16}g${font}${voffset -5}   RAM: $memperc% ${alignr}${membar 8,60}

${font StyleBats:size=16}j${font}${voffset -5}   SWAP: $swapperc% ${alignr}${swapbar 8,60}

${font StyleBats:size=16}q${font}${voffset -5}   Uptime: ${alignr}${uptime}

${font HandelGotDLig:size=16}PROCESSES${font} ${hr 2}

NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
   
${font HandelGotDLig:size=16}HD${font} ${hr 2}

${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root: ${alignr}${fs_bar 8,60 /}

${font Pie charts for maps:size=14}7${font}   ${voffset -5}Store: ${alignr}${fs_bar 8,60 /media/depo}

${font Pie charts for maps:size=14}7${font}   ${voffset -5}Mid: ${alignr}${fs_bar 8,60 /media/ortak}

${font Pie charts for maps:size=14}7${font}   ${voffset -5}Win: ${alignr}${fs_bar 8,60 /media/windows}

${font HandelGotDLig:size=16}NETWORK${font} ${hr 2}

${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0}  ${alignr}${upspeedgraph eth0 10,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0}  ${alignr}${downspeedgraph eth0 10,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}

${font HandelGotDLig:size=16}MUSIC${font} ${hr 2}

${alignc 28}${font Buttons and Switches JL:size=30}J${font}
${font HandelGotD:size=10}
${alignc}${exec rhythmbox-client --no-start --print-playing-format %aa}
${alignc}${exec rhythmbox-client --no-start --print-playing-format %tt}




Buna göre de ${font PizzaDude Bullets:size=14} kısmı kastettiğim yer oluyor.

http://www.dafont.com/pizzadude-bullets.font
buradanda yazı tipini görebilirsin...

Sanırım biraz daha açıklayıcı oldu :)

badhero

Bana kendimi kötü hissettirecek kadar açıklayıcı oldu ama benden sonraki meraklılar için de kaynak olacaktır bu açıklama. Teşekkürler.

agritux

:( öyle bir şey yapmak istememiştim ben

badhero

Biliyorum, sorun benim anlama güçlüğü çekmemden kaynaklandı. Conky'de yeniyim.

agritux

Yeni olmana rağmen paylaştığın masa üstü resmi çok hoş :) daha dur neler keşfedeceksin :) analok saat falan lua scriptler oh oh conky nin sonu yok :D

badhero

#132
Resimde de dikkat ettiysen RAM kullanımı normal seviyede görünmüyor. Onu nasıl düzeltebilirim. Çünkü bellek kullanımının o kadar olmadığını biliyorum.

Direkt tüm dosyayı paylaşayım. Sorun yok gibi görünüyor ama...
background yes
use_xft yes
xftfont Sans:size=7
xftalpha 0.8
out_to_console no
update_interval 2
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
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 5
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 47
no_buffers no
uppercase no
override_utf8_locale yes
use_spacer no
maximum_width 300

TEXT
${color white}$alignc${exec whoami} @ $nodename
${color white}$alignc$sysname $kernel on $machine
${color white}$alignc Uptime: ${color white}$uptime
$color$stippled_hr
${color slate grey}CPU: ${color white}${cpu cpu0}% ${cpubar cpu0}
${color slate grey}CPU: ${color white}${cpu cpu1}% ${cpubar cpu1}
${color slate grey}RAM: ${color white}$memperc% $membar
$color$stippled_hr
${color slate grey}Highest CPU:
${color} ${top name 1} $alignr ${top cpu 1}
${color} ${top name 2} $alignr ${top cpu 2}
${color} ${top name 3} $alignr ${top cpu 3}
${color} ${top name 4} $alignr ${top cpu 4}
${color} ${top name 5} $alignr ${top cpu 5}
${color slate grey}Highest RAM:
${color} ${top_mem name 1} $alignr ${top_mem mem 1}
${color} ${top_mem name 2} $alignr ${top_mem mem 2}
${color} ${top_mem name 3} $alignr ${top_mem mem 3}
${color} ${top_mem name 4} $alignr ${top_mem mem 4}
${color} ${top_mem name 5} $alignr ${top_mem mem 5}
$color$stippled_hr
${color slate grey}File Systems:
${color white}Kök Dizin      $alignr     $color${fs_used /} / ${fs_size /} ${fs_bar 7,50 /}
${color white}Umut Media      $alignr     $color${fs_used /media/Umut} / ${fs_size /media/Umut} ${fs_bar 7,50 /media/Umut}
${color white}Depo2      $alignr     $color${fs_used /media/Depo2} / ${fs_size /media/Depo2} ${fs_bar 7,50 /media/Depo2}
$color$stippled_hr${if_up wlan0}
${color slate grey}İnternet $color
`--> ${color slate grey}IP: $color ${addr wlan0}
`--> ${color slate grey}Download: $color ${downspeed wlan0} Kb/s
`--> ${color slate grey}Upload: $color ${upspeed wlan0} Kb/s$endif
# $color$stippled_hr



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 07 Nisan 2010 - 22:44:42

O değil de; ben raixu'nun masaüstüne bittim. Her ne kadar ordaki yazılardan bir şey anlamasam da renkler, conky vs. çok uyumlu. Özellikle renk uyumu çok güzel. İnsana turkuazı sevdirir bu masaüstü. :)

badhero



alignment top_right
background yes
border_width 0
color1 696969
color2 696969
color3 696969
cpu_avg_samples 2
default_color 303030
double_buffer yes
draw_borders yes
draw_outline no
draw_shades yes
gap_x 30
gap_y 45
minimum_size 200
maximum_width 200
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window  yes
own_window_colour 000000
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
stippled_borders 0
total_run_times 0
update_interval .7
uppercase no
use_spacer right
use_xft yes
xftfont sans:size=8

TEXT
${font Fontin SmallCaps:size=12}${color2}System Info ${color3}${hr}${font}
${color1}Kernel:${color2}${alignr}${kernel}
${color1}CPU:${alignr}${color2}${pre_exec cat /proc/cpuinfo | grep 'model name' | sort -u | cut -c22-26,44-50,54-60}
${color1}Core1:         ${color2}${cpu cpu1}%${color3}${cpubar cpu1 6,95}${alignr}
${color1}Core2:         ${color2}${cpu cpu2}%${color3}${cpubar cpu2 6,95}${alignr}
${color1}Ram:     ${color2}    ${mem} / ${memmax}${color2}${alignr}${memperc}%
${color1}Swap:  ${color2}    ${swap} / ${swapmax}${color2}${alignr}${swapperc}%
${color1}UpTime:${color2}${alignr}${uptime}
${color1}Battery:${color2}${alignr}${battery}
${color1}Processes:${color2}${alignr}${processes} Sleeping
${color2}${alignr}${running_processes} Running

#NETWORK
${font Fontin SmallCaps:size=12}${color2}Network ${color3}${hr}${font}
${color1}Hostname:${color2}${alignr}${nodename}
${color1}Connected To:${color2}${alignr}${wireless_essid wlan0}
${color1}Up:${color2}   ${upspeed wlan0}${alignr}${color1}
${color3}${upspeedgraph wlan0 15,159 668ABF 9AB7DC}
${color1}Down:${color2}   ${downspeed wlan0}${alignr}${color1}
${color3}${downspeedgraph wlan0 15,159 668ABF 9AB7DC}

#DISKS
${font Fontin SmallCaps:size=12}${color2}Disks ${color3}${hr}${font}
${color1}Root:${color2}${alignr}${fs_used /}/${fs_size /} - ${fs_used_perc /}%
${color3}${fs_bar /}
${if_mounted /media/Umut}${color1}Umut:${color2}${alignr}${fs_used /media/Umut}/${fs_size /media/Umut} - ${fs_used_perc /media/Umut}%
${color3}${fs_bar /media/Umut}

blood4metal

mrblar arkadaslar,

ben bilgisayarımda temmuz ayı masaüstü yarışmasında 1. olanın aynısı 2 tane comky kullanıyorum. 1 saat 1 de sistem özelliklerini işlemciyi vs gostern bir conky.
iki conky i de baslangıç programlarına ekledim. sistem özelliklerini göstereni conky komutuyla, saat olanı "conky -c '/home/s3th/.conky_clock'" komutuyla çalıstırıyorum. çalışmalarında bir sorun yok ancak conkyrc  ve conky_clock (kodların yazıldığı iki conky için iki dosya)

"own_window_hints undecorate,sticky,below,skip_taskbar,skip_pager"

kodu olmasına rağmen sürekli "her zaman üstte" olucak şekide başlıyor. cokyrc ve conky_clock dosyalarına girip hiçbirşeyi değiştirmeden kaydet dediğim zaman düzeliyor. bunu nasıl çözebilirim?

biraz karışık olduysa özür dilerim.

stef_q

bethiro process yazan yerde slepping ve running var. onlar neyi işaret ediyor acaba ?

Bu çoğu kullanıcının conky sinde mevcut. alamını bilen birileri açıklama yaparsa güzel olur.

Birde tüm cpu lar için tek bir % göstermek istiyorum bunu nasıl yapabilirim ?

ironic





background no
font Sans:size=9
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 10.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 260 5
maximum_width 260
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 14
gap_y 70
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale no
#uppercase yes

TEXT
${color purple}${hr 2}${color}
${color yellow}  SYSTEM${color}
${color purple}${hr 2}${color}

#${color orange}Hostname:${color} $alignr$nodename
${color orange}Kernel:${color} $alignr$kernel
${color orange}Uptime:${color} $alignr$uptime
${color orange}Temp:${color} ${alignr}${acpitemp}C
#${color orange}CPU:${color} ${alignr}${freq} MHz
${color orange}Processes:${color} ${alignr}$processes ($running_processes running)
${color orange}Load:${color} ${alignr}$loadavg

${color orange}CPU1${color} ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
${color orange}CPU2${color} ${alignr}${cpu cpu2}%
${cpubar 4 cpu2}

${color orange}RAM${color} ${alignr}$mem / $memmax ($memperc%)
${membar 4}
${color orange}SWAP${color} ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

${color purple}${hr 2}${color}
${color yellow}   TOP CPU  $alignr CPU% MEM%${color}
${color purple}${hr 2}${color}

${color orange}${top name 1}${color}$alignr${top cpu 1}  ${top mem 1}
${color orange}${top name 2}${color}$alignr${top cpu 2}  ${top mem 2}
${color orange}${top name 3}${color}$alignr${top cpu 3}  ${top mem 3}

${color purple}${hr 2}${color}
${color yellow}   NOW PLAYING - DeaDBeeF $alignr ${color}
${color purple}${hr 2}${color}

${color orange}${execi 15 echo -e $(deadbeef --nowplaying 'Artist : %a \nTrack : %t \nLength : %l')}${color}

${color purple}${hr 2}${color}
${color yellow}   FILE SYSTEM ${color}
${color purple}${hr 2}${color}

${color orange}ROOT:${color} ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
${color orange}HOME:${color} ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}

${color purple}${hr 2}${color}
${color yellow}   NETWORK ${color}
${color purple}${hr 2}${color}

${color orange}Down${color} ${downspeed eth0} k/s ${alignr}${color orange}Up${color} ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
${color orange}Total${color} ${totaldown eth0} ${alignr}${color orange}Total${color} ${totalup eth0}




Sherlock Holmes

Görüntüsü:
[IMG]http://www5.picturepush.com/photo/a/3846718/640/3846718.png[/img]

Içeriği:
#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 0

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_right

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont BPG Chveulebrivi:size=7

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

#to prevent window from moving
use_spacer none
minimum_size 1367 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}  Kernel: ${color e0e0e0}$kernel${color}  Uptime: ${color e0e0e0}${uptime_short}${color}  |  Cpu: ${color e0e0e0}${cpu}%${color}  Cpu2: ${color e0e0e0}${cpu cpu1}%${color}  Ram: ${color e0e0e0}${memperc}%${color}  Swap: ${color e0e0e0}${swapperc}%${color}  Disk: ${color e0e0e0}${fs_used_perc /}%${color}  |  Battery: ${color e0e0e0}$battery${color}  Temp: ${color e0e0e0}$acpitemp${color}  Check: ${color e0e0e0}$threads${color}   |   ${if_existing /proc/net/route wlan0}Signal: ${color e0e0e0}${wireless_link_qual wlan0}%${color}  Up: ${color e0e0e0}${upspeed wlan0} kb/s${color}  Down: ${color e0e0e0}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color e0e0e0}${upspeed eth0} kb/s${color}  Down: ${color e0e0e0}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}

Sherlock Holmes

Görüntü:
[IMG]http://i34.tinypic.com/2mgp2e9.png[/img]


Içeriği:
background yes
use_xft yes
xftfont waree book:size=6
gap_x 4
gap_y 4
alignment top_left
xftalpha 0.8
own_window no
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_shade_color black
default_outline_color black
default_color black
use_spacer none
no_buffers yes
uppercase no
minimum_size 200
maximum_width 200

TEXT
${font}ZAMAN ${hr 2}
${color black}${voffset -10}
${alignc 35}${font defused:size=35}${time %H}${voffset -10}${font defused:size=23}${time :%M}${voffset -5}${font defused:size=10}${time :%S}
${voffset 10}
${alignc 20}${font Capture it 2:size=22}${time %d}${voffset -11}${alignr 20}${font Capture it 2:size=10}${time %B %Y}
${alignr  20}${font Capture it 2:size=10}${time %A}
${font}DISK ${hr 2}
${font PizzaDude Bullets:size=15}m${font} Yerel Disk : $alignr${fs_used /home} / ${fs_free /home}



${font}SISTEM ${hr 2}
${color 000000}${font StyleBats:size=17}A${font}  İşlemci-0:   ${cpu cpu0}% ${alignr}${cpubar 8,80 cpu0}
${font PizzaDude Bullets:size=15}i${font}   Zamanlama: $alignr${freq freq0}GHz
${font StyleBats:size=17}A${font}  İşlemci-1:   ${cpu cpu1}% ${alignr}${cpubar 8,80 cpu1}
${font PizzaDude Bullets:size=15}i${font}   Zamanlama: $alignr${freq freq1}GHz

${font StyleBats:size=18}H${font} Yük: ${alignr}${loadavg}

${font PizzaDude Bullets:size=15}Y${font} Bellek:  $memperc% ${alignr}${membar 8,80}
${font PizzaDude Bullets:size=15}Z${font} Takas Alanı: $swapperc% ${alignr}${swapbar 8,80}


${font StyleBats:size=17}P${font}    Başlama Süresi: ${alignr}${uptime}
${font StyleBats:size=17}U${font}    Pil Durumu:  ${alignr}${battery}
${font StyleBats:size=17}x ${font}Genel Sıcaklık: ${alignr}${acpitemp}°C


BAĞLANTI ${hr 2} 
${if_existing /proc/net/route wlan0}   
${font PizzaDude Bullets:size=15}v${font}   Gidenler: $alignr${upspeed wlan0} Kb/s
${font PizzaDude Bullets:size=15}r${font}   Gelenler: $alignr${downspeed wlan0} Kb/s

${font PizzaDude Bullets:size=15}D${font}   Sinyal Kalitesi:$alignr${wireless_link_qual wlan0}%

${font PizzaDude Bullets:size=15}M${font}   Yüklemeler: $alignr${totalup wlan0}
${font PizzaDude Bullets:size=15}S${font}   İndirmeler: $alignr${totaldown wlan0}

Sherlock Holmes

Görüntüsü:
[IMG]http://www1.picturepush.com/photo/a/4146959/640/4146959.png[/img]

Içeriği;

conkyrc,
######################
# - 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{freq cpu1

#############################
# - Window specifications - #
#############################

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 320 800
maximum_width 320

alignment bottom_right
gap_x -160
gap_y -40

#####################
# -Graphic Setting- #
#####################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont zero:size=24
xftalpha 0.4
uppercase no
default_color 999999

#####################
# - Lua Load      - #
#####################
lua_load /home/kullanıcı_ismi/istenilen_yer/ringo.lua
lua_draw_hook_pre ring_stats

TEXT

${font zero:size=7}
 


                             ${color 585858}${cpu cpu1}%${color}



            ${color 000000}Işlemciler${color}
              ${color 585858}${freq cpu0}Mhz${color}



    ${color 585858}${cpu cpu0}%${color}                           
         
   
               ${color 000000}Bellek${color}        ${color 585858}${memperc}%${color} 

      ${color 585858}${mem} / ${memfree}${color}

             

              ${color 585858}${swapmax}${color}
${color 585858}$swapperc%${color}         ${color 000000}Takas${color}       

           
                 ${color 000000}Yük${color}



        ${color 585858}${loadavg}${color}






               ${color 000000}Disk${color}

              ${color 585858}${fs_free}${color}

${color 585858}${fs_free_perc}%${color}                        ${color 585858}${fs_used_perc}%${color}

      ${color 585858}${fs_used} / ${fs_size}${color}


#${voffset 53}${goto 120}${font zero:size=11}${time %A, %d %B %Y}


#${voffset 46}${goto 164}${font zero:size=9}${time %H:%M:%S}


ringo.lua

settings_table = {
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=170,
radius=52,
thickness=4,
start_angle=0,
end_angle=170
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=170,
radius=52,
thickness=4,
start_angle=-180,
end_angle=-10
},
{
name='memperc',
arg='',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=299,
radius=50,
thickness=4,
start_angle=-90,
end_angle=85
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=300,
radius=50,
thickness=4,
start_angle=90,
end_angle=-95
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=61, y=558,
radius=50,
thickness=4,
start_angle=10,
end_angle=80
},
{
name='fs_free_perc',
arg='/',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=557,
radius=50,
thickness=4,
start_angle=-83,
end_angle=-20
},
{
name='fs_size',
arg='/',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=560,
radius=50,
thickness=4,
start_angle=97,
end_angle=264
},
{
name='acpitemp',
arg='',
max=100,
bg_colour=0x888888,
bg_alpha=0.7,
fg_colour=0x000000,
fg_alpha=1.0,
x=60, y=425,
radius=50,
thickness=4,
start_angle=15,
end_angle=345
},

}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
end





Görüntüsü:
[IMG]http://www1.picturepush.com/photo/a/4146979/640/4146979.png[/img]

içeriği;

conkyrc2,

######################
# - Conky settings - #
######################
background no
net_avg_samples 2
cpu_avg_samples 2
no_buffers yes
double_buffer yes
update_interval 1

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

border_inner_margin 0
border_outer_margin 0
default_color black
color1 99a663
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
stippled_borders 0
draw_outline no
draw_shades no
show_graph_scale no
show_graph_range no

use_xft yes
xftfont Zeror:size=20
xftalpha 0.8
uppercase no

minimum_size 1366 300
maximum_width 1366
use_spacer none
alignment tm
gap_x 0
gap_y 50



lua_load /home/kullanıcı_ismi/istenilen_yer/ringo2.lua
lua_draw_hook_pre conky_widgets

TEXT
${voffset 80}${alignc}${time %A, %d %B %Y}


ringo2.lua,
--[[
Changelog:
+ v1.1 -- Simplified calls to widgets by implementing a global drawing surface, and included imlib2 by default (03.11.2009)
+ v1.0 -- Original release (17.10.2009)
]]

require 'cairo'
require 'imlib2'

--[[ Options (xc, yc, size):
"xc" and "yc" are the x and y coordinates of the centre of the clock, in pixels, relative to the top left of the Conky window
"size" is the total size of the widget, in pixels ]]

function air_clock(xc, yc, size)
local offset = 0

shadow_width = size * 0.03
shadow_xoffset = 0
shadow_yoffset = size * 0.01

if shadow_xoffset >= shadow_yoffset then
offset = shadow_xoffset
else offset = shadow_yoffset
end

local clock_r = (size - 3 * offset) / (3 * 1.25)

show_seconds=true

-- Grab time

local hours=os.date("%I")
local mins=os.date("%M")
local secs=os.date("%S")

secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins
hours_arc=(2*math.pi/12)*hours+mins_arc/12

-- Drop shadow

local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0.2)
cairo_pattern_add_color_stop_rgba(ds_pat,1,0,0,0,0)

cairo_move_to(cr,0,0)
cairo_line_to(cr,conky_window.width,0)
cairo_line_to(cr,conky_window.width, conky_window.height)
cairo_line_to(cr,0,conky_window.height)
cairo_close_path(cr)
cairo_new_sub_path(cr)
cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source(cr,ds_pat)
cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
cairo_fill(cr)

-- Glassy border

cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr,1)
cairo_stroke(cr)

local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)

cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,1,0.7)
cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,1,1,1,1,0.7)
cairo_set_source(cr,border_pat)
cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
cairo_close_path(cr)
cairo_set_line_width(cr,clock_r*0.25)
cairo_stroke(cr)

-- Set clock face

cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
cairo_close_path(cr)

local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)

cairo_pattern_add_color_stop_rgba(face_pat,0,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,0.5,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,1,0.9,0.9,0.9,0.9)
cairo_set_source(cr,face_pat)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr, 1)
cairo_stroke (cr)

-- Draw hour hand

xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)

cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,0,0,0,0.5)
cairo_stroke(cr)

-- Draw minute hand

xm=xc+0.9*clock_r*math.sin(mins_arc)
ym=yc-0.9*clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)

cairo_set_line_width(cr,3)
cairo_stroke(cr)

-- Draw seconds hand

if show_seconds then
xs=xc+0.9*clock_r*math.sin(secs_arc)
ys=yc-0.9*clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)

cairo_set_line_width(cr,1)
cairo_stroke(cr)
end

cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT)
end

--[[ Options (xc, yc, colour, alpha, show_secs, size):
"xc" and "yc" are the x and y coordinates of the centre of the clock hands, in pixels, relative to the top left corner of the Conky window
"colour" is the colour of the clock hands, in Ox33312c formate
"alpha" is the alpha of the hands, between 0 and 1
"show_secs" is a boolean; set to TRUE to show the seconds hand, otherwise set to FALSE
"size" is the total size of the widget (e.g. twice the length of the minutes hand), in pixels ]]

function clock_hands(xc, yc, colour, alpha, show_secs, size)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys

secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")

secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12

xh=xc+0.4*size*math.sin(hours_arc)
yh=yc-0.4*size*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)

cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,rgb_to_r_g_b(colour,alpha))
cairo_stroke(cr)

xm=xc+0.5*size*math.sin(mins_arc)
ym=yc-0.5*size*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)

cairo_set_line_width(cr,3)
cairo_stroke(cr)

if show_secs then
xs=xc+0.5*size*math.sin(secs_arc)
ys=yc-0.5*size*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)

cairo_set_line_width(cr,1)
cairo_stroke(cr)
end

cairo_set_line_cap(cr,CAIRO_LINE_CAP_BUTT)
end

--[[ Options (album_dir, xc, yc, w_max, h_max, t, update_interval)
    "album_dir" is the directory containing the images for your photo album; please note that the path must be absolute (e.g. no "~")
    "xc" and "yc" are the coordinates of the centre of the photo album, relative to the top left corner of the Conky window, in pixels
    "w_max" and "h_max" are the maximum dimensions, in pixels, that you want the widget to be.  The script will ensure that the photo album fits inside the box bounded by w_max and h_max
    "t" is the thickness of the frame, in pixels
    "update_interval" is the number of Conky updates between refreshes ]]

function photo_album(album_dir, xc, yc, w_max, h_max, t, update_interval)
    local function get_file_to_use()
        num_files = tonumber(conky_parse("${exec ls -A " .. album_dir .. " | wc -l}"))
        if num_files == nil then num_files = 0 end
        if num_files == 0 then return "none" end
   
        updates = tonumber(conky_parse("${updates}"))
        whole = math.ceil(updates/update_interval)
   
        if whole <= num_files
        then
            num_file_to_show = whole
        else
            whole = whole % num_files
            num_file_to_show = whole
        end
   
        return conky_parse("${exec ls " .. album_dir .. " | sed -n " .. num_file_to_show .. "p}")
    end

    function init_drawing_surface()
        imlib_set_cache_size(4096 * 1024)
        imlib_context_set_dither(1)
    end

    function draw_frame()
        cairo_rectangle(cr, xc - width/2 - t, yc - height/2 - t, width + 2*t, height + 2*t)
        cairo_set_source_rgba(cr, 1, 1, 1, 0.8)
        cairo_fill(cr)   
    end

    function draw_image()
        init_drawing_surface()
   
        image = imlib_load_image(album_dir .. filename)
        if image == nil then return end
        imlib_context_set_image(image)

    w_img, h_img = imlib_image_get_width(), imlib_image_get_height()
    if w_img >= h_img
    then
        width = w_max - 2*t
        height = width * (h_img/w_img)
    else
        height = h_max - 2*t
        width = height * (w_img/h_img)
    end
   
    draw_frame()
   
    buffer = imlib_create_image(width, height)
    imlib_context_set_image(buffer)
   
    imlib_blend_image_onto_image(image, 0, 0, 0, w_img, h_img, 0, 0, width, height)
    imlib_context_set_image(image)
    imlib_free_image()
   
    imlib_context_set_image(buffer)
    imlib_render_image_on_drawable(xc - width/2, yc - height/2)
    imlib_free_image()
    end

    if conky_window == nil then return end
    filename = get_file_to_use()
    if filename == "none"
    then
        print(album_dir .. ": No files found")
    else
        draw_image()
    end
end

--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]

function ring(name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local function draw_ring(pct)
local angle_0 = sa * (2 * math.pi/360) - math.pi/2
local angle_f = ea * (2 * math.pi/360) - math.pi/2
local pct_arc = pct * (angle_f - angle_0)

-- Draw background ring

cairo_arc(cr, xc, yc, r, angle_0, angle_f)
cairo_set_source_rgba(cr, rgb_to_r_g_b(bgc, bga))
cairo_set_line_width(cr, t)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr, xc, yc, r, angle_0, angle_0 + pct_arc)
cairo_set_source_rgba(cr, rgb_to_r_g_b(fgc, fga))
cairo_stroke(cr)
end

local function setup_ring()
local str = ''
local value = 0

str = string.format('${%s %s}', name, arg)
str = conky_parse(str)

value = tonumber(str)
if value == nil then value = 0 end
pct = value/max

draw_ring(pct)
end

local updates = conky_parse('${updates}')
update_num = tonumber(updates)

if update_num > 5 then setup_ring() end
end

--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, counter-clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, counter-clockwise from top. Value can be either positive or negative, but must be larger (e.g. more counter-clockwise) than start_angle. ]]

function ring_ccw(name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local function draw_ring(pct)
local angle_0 = sa * (2 * math.pi/360) - math.pi/2
local angle_f = ea * (2 * math.pi/360) - math.pi/2
local pct_arc = pct * (angle_f - angle_0)

-- Draw background ring

cairo_arc_negative(cr, xc, yc, r, angle_0, angle_f)
cairo_set_source_rgba(cr, rgb_to_r_g_b(bgc, bga))
cairo_set_line_width(cr, t)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc_negative(cr, xc, yc, r, angle_0, angle_0 - pct_arc)
cairo_set_source_rgba(cr, rgb_to_r_g_b(fgc, fga))
cairo_stroke(cr)
end

local function setup_ring()
local str = ''
local value = 0

str = string.format('${%s %s}', name, arg)
str = conky_parse(str)

value = tonumber(str)
if value == nil then value = 0 end
pct = value/max

draw_ring(pct)
end

local updates = conky_parse('${updates}')
update_num = tonumber(updates)

if update_num > 5 then setup_ring() end
end

--[[ Options (x0, y0, width, height, radius, colour, alpha):
"x0" and "y0" are the coordinates (in pixels) of the top left of the rectangle, relative to the top left of the Conky window.
"width" and "height" are the width and height of the rectangle, respectively.
"radius" is the rounding radius of the corners, in pixels.
"colour" is the colour of the rectangle, in format 0xRRGGBB.
"alpha" is the transparency of the rectangle, from 0.0 (transparent) -> 1.0 (opaque) ]]

function round_rect(x0, y0, w, h, r, colour, alpha)
local function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

cairo_move_to(cr, x0, y0)
cairo_rel_move_to(cr, r, 0)
cairo_rel_line_to(cr, w-2*r, 0)
cairo_rel_curve_to(cr, r, 0, r, 0, r, r)
cairo_rel_line_to(cr, 0, h-2*r)
cairo_rel_curve_to(cr, 0, r, 0, r, -r, r)
cairo_rel_line_to(cr, -(w-2*r), 0)
cairo_rel_curve_to(cr, -r, 0, -r, 0, -r, -r)
cairo_rel_line_to(cr, 0, -(h-2*r))
cairo_rel_curve_to(cr, 0, -r, 0, -r, r, -r)
cairo_close_path(cr)

cairo_set_source_rgba(cr, rgb_to_r_g_b(colour, alpha))
cairo_fill(cr)
end

function conky_widgets()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)

ring('time', '%S', 60, 0x000000, 0.2, 0x000000, 0.8, 463, 55, 50, 5, 0, 360)
clock_hands(463, 55, 0x000000, 0.8, false, 85)
ring('battery_percent', 'BAT1', 100, 0x000000, 0.2, 0x000000, 0.8, 573, 55, 50, 5, 0, 360)
ring('cpu', 'cpu0', 100, 0x000000, 0.2, 0x000000, 0.8, 683, 55, 50, 5, 0, 360)
ring('memperc', '', 100, 0x000000, 0.2, 0x000000, 0.8, 793, 55, 50, 5, 0, 360)
ring('fs_used_perc', '/', 100, 0x000000, 0.2, 0x000000, 0.8, 903, 55, 50, 5, 0, 360)


cairo_destroy(cr)
end





Görüntüsü:
[IMG]http://www2.picturepush.com/photo/a/4146995/640/4146995.png[/img]

içeriği;

conkyrc3,
######################
# - 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

#############################
# - Window specifications - #
#############################

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 320 800
maximum_width 320

alignment top_left
gap_x -37
gap_y 49

#####################
# -Graphic Setting- #
#####################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont zero:size=24
xftalpha 0.4
uppercase no
default_color 999999

#####################
# - Lua Load      - #
#####################
lua_load /home/kullanıcı_ismi/istenilen_yer/ringo3.lua
lua_draw_hook_pre ring_stats

TEXT
#${voffset 53}${goto 120}${font zero:size=11}${time %A, %d %B %Y}


                 
             ${font zero:size=14}${time %H:%M:%S}




${font zero:size=7}
                                   ${color 000000}${downspeed wlan0}${color}                ${color 000000}${upspeed wlan0}${color}


                                             ${color 000000}Wifi${color}
                                             ${color 585858}${wireless_link_qual wlan0}%${color}


                                ${color 000000}${totalup wlan0}${color}       ${color 000000}${totaldown wlan0}${color}




${color 000000}                                               
${font zero:size=6}                                            ${uptime_short} ${color}         
                         

                                           ${color 000000}Başlangıç${color} 
           

                 ${color 000000}PIL${color}    ${color 000000}${battery_percent}%${color}     


                                            ${color 000000}Sıcaklık${color}


                                             ${color 000000}${font zero:size=7}${acpitemp}°C${color}



         


ringo3.lua,


settings_table = {
{
-- Edit this table to customise your rings.
-- You can create more rings simply by adding more elements to settings_table.
-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
name='time',
-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
arg='%I.%M',
-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
max=12,
-- "bg_colour" is the colour of the base ring.
bg_colour=0x888888,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.5,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0x000000,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.6,
-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
x=125, y=147,
-- "radius" is the radius of the ring.
radius=21,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=3,
-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
start_angle=90,
-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
end_angle=388
},
{
name='time',
arg='%M.%S',
max=60,
bg_colour=0x888888,
bg_alpha=0.5,
fg_colour=0x000000,
fg_alpha=0.6,
x=133, y=147,
radius=40,
thickness=3,
start_angle=90,
end_angle=420
},
{
name='time',
arg='%S',
max=60,
bg_colour=0x888888,
bg_alpha=0.5,
fg_colour=0x000000,
fg_alpha=0.6,
x=140, y=147,
radius=60,
thickness=3,
start_angle=90,
end_angle=430
},
{
name='Wifi',
arg='-',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=130, y=308,
radius=20,
thickness=3,
start_angle=-170,
end_angle=-20
},
{
name='Wifi',
arg='-',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=160, y=308,
radius=20,
thickness=3,
start_angle=20,
end_angle=-190
},
{
name='orta',
arg='wlan0',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=125, y=308,
radius=30,
thickness=4,
start_angle=-170,
end_angle=-20
},
{
name='orta',
arg='wlan0',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=165, y=308,
radius=30,
thickness=4,
start_angle=20,
end_angle=-190
},
{
name='dış ',
arg='wlan0',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=118, y=308,
radius=40,
thickness=5,
                start_angle=-170,
end_angle=-20
},
{
name='dış',
arg='wlan0',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=173, y=308,
radius=40,
thickness=5,
start_angle=20,
end_angle=-190
},
{
name='-',
arg='üst iç',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=148, y=425,
radius=20,
thickness=3,
start_angle=106,
end_angle=-106
},
{
name='-',
arg='üst dış',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=148, y=425,
radius=20,
thickness=3,
start_angle=-76,
end_angle=76
},
{
name='-',
arg='üst sağ',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=168, y=465,
radius=40,
thickness=3,
start_angle=0,
end_angle=90
},
{
name='-',
arg='üst sol',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=128, y=465,
radius=40,
thickness=3,
start_angle=-90,
end_angle=0
},
{
name='-',
arg='sol dış',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=88, y=485,
radius=20,
thickness=3,
start_angle= 194,
end_angle=-14
},
{
name='-',
arg='sol iç',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=88, y=485,
radius=20,
thickness=3,
start_angle= 14,
end_angle=-194
},
{
name='-',
arg='alt sol',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=128, y=505,
radius=40,
thickness=3,
start_angle=180,
end_angle=270
},
{
name='-',
arg='alt dış',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=148, y=545,
radius=20,
thickness=3,
start_angle=106,
end_angle=-106
},
{
name='-',
arg='alt iç',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=148, y=545,
radius=20,
thickness=3,
start_angle=-76,
end_angle=76
},
{
name='-',
arg='alt sağ',
max=100,
bg_colour=0x888888,
bg_alpha=0.3,
fg_colour=0x000000,
fg_alpha=1.0,
x=168, y=505,
radius=40,
thickness=3,
start_angle=90,
end_angle=180
},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
end


Conkyler çalıştırıldıktan sonra, ekrandaki yer ve konum olarak tekrar düzenlemeniz gerekebilir.
Paylaştığım conkyler içerisinde lua_load sonrasında yazan kısıma,
sizin lua'ları yerleştirdiğiniz konumları belirtiniz.


badhero

Sonunda bu başlıkta biraz hareketlilik görmek iyi geldi. Uzun zamandır aynısını* kullandığım için yeni bir şeyler koyamıyorum. :)




Alıntı yapılan: yokohama_11 - 21 Temmuz 2010 - 17:04:19
bethiro process yazan yerde slepping ve running var. onlar neyi işaret ediyor acaba ?

Bu çoğu kullanıcının conky sinde mevcut. alamını bilen birileri açıklama yaparsa güzel olur.

Birde tüm cpu lar için tek bir % göstermek istiyorum bunu nasıl yapabilirim ?

"running" çalışan uygulama sayısını belirtiyor ama diğerini tam olarak tanımlayamıyorum.

sem

"running" çalışan uygulama sayısını belirtiyor ama diğerini tam olarak tanımlayamıyorum.

O da askıya alınmış, süreç (process) tablosu dışına çıkartılmış geri alınmayı bekleyen ya da arka planda çalışan (deamon) programlar diye tahmin ediyorum...
".NET çemberinden geçen lirisist etkisi bir 'Volcano', bir yüzüm Java bir yüzüm Badalamenti Don Tano"
----------------------------------------------------------------------------------------------------------------------
"Her yer ölüm yine, burası dünya
Derken ölüm bile bu nasıl dünya?
Benden ölüm dile, batıyor gün yine
Burası dünya?

Sherlock Holmes

Görüntüsü:
[IMG]http://www3.picturepush.com/photo/a/4148086/640/4148086.png[/img]

içeriği;

conkyrc:
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tl
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load /home/kullanıcı_ismi/istenilen_yer/lua.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color 3399FF}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=36}${time %e}${font}
${color FFFFFF}${voffset -30}${color 3399FF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 3399FF}${hr}
${voffset 140}${font caviar dreams:size=10}Başlama${alignr}Pil${font}
${font caviar dreams:size=12}${color FFFFFF}$uptime_short${alignr}${battery_percent}%${font}
${color 3399FF}${voffset 4}${sysname}${alignr}${kernel}${machine}
${hr}
${color FFFFFF}${goto 25}${voffset 35}${cpu cpu0}%
${color 3399FF}${goto 8}işlemci
${color FFFFFF}${goto 50}${voffset 23}${memperc}%
${color 3399FF}${goto 40}bellek
${color FFFFFF}${goto 75}${voffset 23}${swapperc}%
${color 3399FF}${goto 68}takas
${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%
${color 3399FF}${goto 100}disk
${color FFFFFF}${goto 125}${voffset 25}${upspeedf wlan0 eth0}
${color FFFFFF}${goto 125}${downspeedf wlan0 eth0}
${color 3399FF}${goto 125}net
işlemler${hr}

${color FFFFFF}${top name 1}${color}  ${color 3399FF}${alignr} ${top cpu 1} 
${color FFFFFF}${top name 2}${color}  ${color 3399FF}${alignr} ${top cpu 2} 
${color FFFFFF}${top name 3}${color}  ${color 3399FF}${alignr} ${top cpu 3}


lua.lua:

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x3399cc,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.4,
        x=50, y=300,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=75, y=350,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=100, y=400,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
        {
        name='upspeedf',
        arg='rtls0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=150, y=500,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
        {
        name='downspeedf',
        arg='rtls0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
   
    secs=os.date("%S")   
    mins=os.date("%M")
    hours=os.date("%I")
       
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
       
    -- Draw hour hand
   
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
   
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,0.2,0.6,1,0.4)
    cairo_stroke(cr)
   
    -- Draw minute hand
   
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
   
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
   
    -- Draw seconds hand
   
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
   
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
   
    draw_clock_hands(cr,clock_x,clock_y)
end

Sherlock Holmes

Önce'ki ile biraz vakit geçirmiştim.  :)

Görüntüsü:

[IMG]http://www2.picturepush.com/photo/a/4165950/640/4165950.png[/img]

İçeriği;
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tl
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont takaoPGothic:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load /home/Kullanıcı_ismi/Herhangi_bir_konum/halkalı_şeker.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color 3399FF}${font takaoPGothic:size=20}${time %A}${font}
${voffset -8}${alignr 50}${color FFFFFF}${font zekton:size=26}${time %e}${font}
${color FFFFFF}${voffset -30}${color 3399FF}${font takaoPGothic:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 3399FF}${hr}
${voffset 140}${font caviar dreams:size=10}Başlama${alignr}Pil${font}
${font zekton:size=12}${color FFFFFF}$uptime_short${alignr}${battery_percent}%${font}
${color 3399FF}${voffset 4}${sysname}${alignr}${kernel}${machine}
${hr}

${color FFFFFF}${font zekton:size=7}${goto 54}${cpu cpu0}% ${alignc}                                 ${color FFFFFF}${cpu cpu1}%${font}
${color 3399FF}${goto 79}işlemciler 
${color FFFFFF}${font zekton:size=6}${goto 17}${freq cpu0}                                                              ${goto 170}${freq cpu0}
${color 3399FF}${font takaoPGothic:size=6}${goto 17}Mhz                                                                     Mhz
${font}
${color 3399FF}${goto 86}bellek
${color FFFFFF}${font zekton:size=6}${goto 88}${voffset 15}${memmax}
${color 3399FF}${font takaoPGothic:size=7}${goto 88}toplam
${color FFFFFF}${font zekton:size=6}${goto 45}${mem} ${alignc}                            ${memfree}           
${color 3399FF}${font takaoPGothic:size=7}${goto 42}kullanilan                boş
${color FFFFFF}${font zekton:size=7}${goto 97}${swapperc}%
${color 3399FF}${font takaoPGothic:size=8}${goto 90}${voffset 6}takas



${color 3399FF}${font takaoPGothic:size=8}${goto 90}disk
${color FFFFFF}${font zekton:size=6}${goto 87}${fs_size}


${color FFFFFF}${font zekton:size=6}${goto 45}${fs_used}                            ${fs_free}

${color FFFFFF}${goto 51}${fs_used_perc /}%                                  ${fs_free_perc}%
${color 3399FF}${font takaoPGothic:size=7}${goto 36}kullanilan                 Boş     


${color 3399FF}${font takaoPGothic:size=8}işlemler${hr}

${color FFFFFF}${top name 1}${color}  ${color 3399FF}${alignr} ${top cpu 1} 
${color FFFFFF}${top name 2}${color}  ${color 3399FF}${alignr} ${top cpu 2} 
${color FFFFFF}${top name 3}${color}  ${color 3399FF}${alignr} ${top cpu 3}


.lua
--[[
Clock Rings by londonali1010 (2009) Edited by jpope

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
   
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit (05.10.2009)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x3399cc,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x3399cc,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=62, y=300,
        radius=25,
        thickness=4,
        start_angle=-233,
        end_angle=90
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=142, y=300,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=237
    },   
{
        name='freq',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.2,
        x=27, y=320,
        radius=20,
        thickness=2,
        start_angle=100,
        end_angle=-90
    },
{
        name='freq',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.2,
        x=177, y=320,
        radius=20,
        thickness=2,
        start_angle=-20,
        end_angle=-100
    }, 
{
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=102, y=380,
        radius=30,
        thickness=4,
        start_angle=33,
        end_angle=323
    },
    {
        name='memperc',
        arg='used',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xffffff,
        fg_alpha=0.1,
        x=64, y=404,
        radius=30,
        thickness=2,
        start_angle=105,
        end_angle=-350
    },
    {
        name='memperc',
        arg='free',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.1,
        x=143, y=404,
        radius=30,
        thickness=2,
        start_angle=-17,
        end_angle=257
    },
{
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x33ccff,
        fg_alpha=0.8,
        x=102, y=410,
        radius=30,
        thickness=4,
        start_angle=132,
        end_angle=225
    },
        {
        name='upspeedf',
        arg='wlan0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=100, y=515,
        radius=40,
        thickness=4,
        start_angle=-80,
        end_angle=80
    },
        {
        name='swapperc',
        arg='-',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=140, y=534,
        radius=30,
        thickness=3,
        start_angle=3,
        end_angle=155
    },
{
        name='swapperc',
        arg='-',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=140, y=534,
        radius=30,
        thickness=3,
        start_angle=200,
        end_angle=-10
    },
  {
        name='swapperc',
        arg='-',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=58, y=534,
        radius=30,
        thickness=3,
        start_angle=13,
        end_angle=159
    },
{
        name='swapperc',
        arg='-',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3399cc,
        fg_alpha=0.3,
        x=58, y=534,
        radius=30,
        thickness=3,
        start_angle=200,
        end_angle=0
    },
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
   
    secs=os.date("%S")   
    mins=os.date("%M")
    hours=os.date("%I")
       
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
       
    -- Draw hour hand
   
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
   
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,0.2,0.6,1,0.4)
    cairo_stroke(cr)
   
    -- Draw minute hand
   
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
   
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
   
    -- Draw seconds hand
   
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
   
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
   
    draw_clock_hands(cr,clock_x,clock_y)
end


hitokiri

Teşekkürler @9N0M3 tam oturdu temaya siyah mavi :)
bu lua olayınıda pek anlamamıştım ama ilk kez birlikte gördüm bende conky ile :D

nomercy

Şekiller gözükmüyor nedendir acaba bilgisi olan varmı?

Sherlock Holmes

Alıntı yapılan: nomercy - 13 Eylül 2010 - 18:31:46
Şekiller gözükmüyor nedendir acaba bilgisi olan varmı?

conky -v
çıktınızı buraya aktarabilirmisiniz.?

nomercy

Conky 1.8.0 compiled Fri Apr 23 10:38:37 UTC 2010 for Linux 2.6.24-27-server (i686)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

Music detection:
  * MPD
  * MOC

General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * config-output
  * Imlib2
  * ALSA mixer support
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2


conky -v çıktısı

Kenzi

Alıntı yapılan: nomercy - 13 Eylül 2010 - 18:31:46
Şekiller gözükmüyor nedendir acaba bilgisi olan varmı?

yaourt'tan conky-lua-nv paketini kurmak gerekiyor,lua çalışmadı bende ama conky yerine bu paketi kurunca düzeldi çemberler.


Şimdilik sorun yazıların çemberlerin içine oturmamasında, bunu nasıl çözebiliriz?



Sherlock Holmes

@kenzi, çözünürlükten dolayı olabilir belki.
Lua otomatik sığıyorken, conky betiği uyarlanması gerekiyor anlaşılan.
Conkyrc içeriğinde bulunan,
Alıntı Yapminimum_size
maximum_width
değerlerini değiştirerek,
yada font'un boyutunu veyahutta tipini değiştirerek deneyiniz.

@nomercy conky çıktınızda lua ve Imlib2 beliriyor bu hali ile çalışması gerekir.
Belki conky içeriğinde'ki belirtmeniz gereken konumlarda bir karakter problemi sebep olmuş olabilir, çalışmamasına.
# Lua Load  #
sonrasındaki konumlar eksiksiz belirtilmelidir. (büyük/küçük harflere dikkat)