~/.conkyrc dosyanız

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

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

kaspara

merhabalar bende bir remix yaptım
ip ekledim

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 top_right
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/fişman/falan/feşmekan/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 3399FF}${font Monospace:size=8}Bağlantı${hr}
${if_existing /proc/net/route wlan0}   
${color 3399FF}${font caviar dreams:size=11}Gönderme Hızı:${color 3399FF}${font font caviar dreams:size=8}$alignr${upspeed wlan0} Kb/s
${color 3399FF}${font caviar dreams:size=11}İndirme Hızı:${color 3399FF}${font zekton:size=8}$alignr${downspeed wlan0} Kb/s
${color 3399FF}${font caviar dreams:size=11}Sinyal Kalitesi:${color 3399FF}${font zekton:size=8}$alignr${wireless_link_qual wlan0}%
${color 3399FF}${font caviar dreams:size=11}Yüklemeler: ${color 3399FF}${font zekton:size=8}$alignr${totalup wlan0}
${color 3399FF}${font caviar dreams:size=11}İndirmeler: ${color 3399FF}${font zekton:size=8}$alignr${totaldown wlan0}
${color 3399FF}${font caviar dreams:size=11}İp:${color 3399FF}${font zekton:size=8}$alignr${execi 60 ~/.conky/ip.sh}
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
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
    },

}

-- 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


ip.sh
#!/bin/bash
# eigene öffentliche ip anzeigen

wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'




yanlız bende bir sorun var,başından beri pil seviyesini yüzde sıfır gösteriyor,  bu neden oluyor? pil kodlarıyla hiç oynamadım.

Sherlock Holmes

Alıntı yapılan: kaspara - 02 Kasım 2010 - 01:03:57
yanlız bende bir sorun var,başından beri pil seviyesini yüzde sıfır gösteriyor,  bu neden oluyor? pil kodlarıyla hiç oynamadım.

${battery_short}%$ yada ${battery_time}%$ gibi bir değişiklik yaparak,
bilgi elde edebiliyormusunuz.?

stratovarius

Zaman için acpi yüklemesi gerekmez mi?

Sherlock Holmes

(default BAT0)
Yani gnome panelde'ki pil durumu ile ilgili zaman tahminine ulaşılabildiğinden,
şart olabileceğini zannetmiyorum.
Örneğin: Kuralı yarım saatten fazla olmuş. :)
[IMG]http://www4.picturepush.com/photo/a/4455632/640/4455632.png[/img]

stratovarius

battery_time kısmını ben pil ömrünü gösteriyor gibi düşündüm. Doluluk yüzdesini gösteriyor onu biliyorum ama şu kadar süre kullanılabilir için acpi gerekiyor diye biliyorum.

Sherlock Holmes

Varyasyonların ne gibi sonuç vereceğini anlamaktı aslında belirtiğim örnek.
Bu durumda şöyle sıralayalım;
-battery_bar
-battery_time
-battery BAT0
-battery BAT1
-battery_percent
-battery_short

Herhalde
ls /proc/acpi/battery
komutun çıktısı ile daha uygun tanımlanmış olur.


kaspara

#181
Alıntı yapılan: 9N0M3 - 02 Kasım 2010 - 18:27:17
Alıntı yapılan: kaspara - 02 Kasım 2010 - 01:03:57
yanlız bende bir sorun var,başından beri pil seviyesini yüzde sıfır gösteriyor,  bu neden oluyor? pil kodlarıyla hiç oynamadım.

${battery_short}%$ yada ${battery_time}%$ gibi bir değişiklik yaparak,
bilgi elde edebiliyormusunuz.?

${battery_short}%$ yazınca conky görünümü sürekli bozuluyor ve sürekli değişiyor.
${battery_time}%$ yazınca durum aynı yüzde 0 gösteriyor gene.
bende pilin doluluk oranını gösteriyor diye düşündüm, başka ne gösterebilir ki yalnız şunu fark ettim laptopun fişini çekince conky kapanıyor.
o komutunun çıktısını bana mı sordunuz? neyse ben yinede yazayım :)
$ ls /proc/acpi/battery
BAT1


başka bir conky temasında %100 olarak gösteriyordu ama hangisi tam haıtlarlamıyorum bulabilirsem ordaki satırı, buraya eklesem bir sorun olur mu?


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 02 Kasım 2010 - 22:00:54

%100 olarak görünen temada şöyle bir satır var

Battery: ${battery_percent BAT1}% ${alignr}${color 7B9494}${battery_bar 8,60 BAT1}$

nereye nasıl eklesem bilemedim

Sherlock Holmes

Alıntı yapılan: kaspara - 02 Kasım 2010 - 21:41:48
başka bir conky temasında %100 olarak gösteriyordu ama hangisi tam haıtlarlamıyorum bulabilirsem ordaki satırı, buraya eklesem bir sorun olur mu?

Tabi'ki sorun olmaz. :)
Doğru kısmı aktardığınız sürece.
Çıktınızdaki BAT1, conky tarafından otomatik algılanıp göstermesi gerek halbuki.
Benim durumumda BAT0 örneğin.
Pil kısmındaki satırı şu şekilde değiştirip conky'yi tekrar başlatırmısınız.
${battery_percent BAT1}%$


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 02 Kasım 2010 - 22:06:19

Bulmuşsunuz zaten. :)
yapacağınız işlem şu;
Alıntı Yap${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}
kısmı
Alıntı Yap${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 BAT1}%${font}
${color 3399FF}${voffset 4}${sysname}${alignr}${kernel}${machine}
${hr}
olarak değiştirmek.

kaspara

@9N0M3
teşekkür ederim dediğiniz gibi yaptım fakat sadece satır olarak görünümü geldi.

bir kaç şey daha sormak istiyorum; sağde ve solda iki tane farklı temada conky açabilir miyim? bir de

http://guaydeque-sandbox.wikidot.com/guayadeque-and-conky

burda ki görünümü nasıl elde edebilirim?

http://ubuntuforums.org/showpost.php?p=9721860&postcount=13516

siteden anlatılan .conkyrc'in sadece guaydeque kısmını yapmak istiyorum ingilizcem yok anladığım kadar yapıyorum ama gözükmüyor.
yardımcı olursanız çok sevinirim.

stratovarius

kaspara saolasın yeni bir music player öğrenmiş oldum :D

kaspara

@stratovarius
rica ederim.idda ediyorum bir gün herkes guaydeque kullanacak
gayet güzel bir player :)

Sherlock Holmes

Alıntı yapılan: kaspara - 02 Kasım 2010 - 22:29:34
teşekkür ederim dediğiniz gibi yaptım fakat sadece satır olarak görünümü geldi.

Satırıda bir yalnışlık olmalı,
$battery_percent $} gibi olmadığına kontrol ediniz.

Alıntı yapılan: kaspara - 02 Kasım 2010 - 22:29:34
sağde ve solda iki tane farklı temada conky açabilir miyim?

iki conky aynı anda çalıştırmak için,
mevcut .conkyrc'e ek .conkyrc2 oluşturup,
conky -c /home/kaspara/.conkyrc2 &
olarak başlatmayı deneyiniz.
Sorun olmadığında komutu başlangıç uyuglamalarına ekleyiniz.

Alıntı yapılan: kaspara - 02 Kasım 2010 - 22:29:34
siteden anlatılan .conkyrc'in sadece guaydeque kısmını yapmak istiyorum ingilizcem yok anladığım kadar yapıyorum ama gözükmüyor.

Oradaki arkadaş kendi yazmış olduğu betik ile çalıştırmakta, fakat
Conky Guayadeque bağımlılığını karşılayıp,
ayrıca bir conky içeriği oluşturup,
belirtiğiniz bağlantıdaki .conkyrc içeriği ile conkyGuayadeque.template içeriğini harmanlayıp çalıştırma olasılığı var fikrimce.
Deneyip gelişmelerden haberdar edeceğim.
:)


kaspara

Alıntı yapılan: 9N0M3 - 02 Kasım 2010 - 23:08:14
Satırıda bir yalnışlık olmalı,
$battery_percent $} gibi olmadığına kontrol ediniz.
@9N0M3
öyle olmadığına eminim bu conky benim pile uyumlu değil sanırım :D
gelişmeleri büyük bir merakla bekliyoruz

Sherlock Holmes

Alıntı yapılan: kaspara - 02 Kasım 2010 - 23:37:50
öyle olmadığına eminim bu conky benim pile uyumlu değil sanırım

Garip,  :-\

Alıntı yapılan: kaspara - 02 Kasım 2010 - 21:41:48
Battery: ${battery_percent BAT1}% ${alignr}${color 7B9494}${battery_bar 8,60 BAT1}$

%100 olarak gösteren satır ile aynı,
yani uyuşması gerekir.
Şu şekilde eklemeyi denermisiniz.
Alıntı YapPil Durumu: ${battery_percent BAT1}%


kaspara

bu conky bende tuhaf çalışıyor
bu sefer dediğiniz gibi yapınca oldu teşekkür ederim
örneğin düzgün çalışan bir conkyrc vardı bugün açtım, yoldan çıkmış, sapıtmış :)

yeni conky buldum baya sevdim paylaşıyım


conkyrc
# Use Xft?
use_xft yes
xftfont calibri bold caps:size=7
xftalpha 0.8
text_buffer_size 2048

# 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
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

maximum_width 1300
minimum_size 1300 270

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 0

# border width
border_width 0

# Default colors and also border colors
default_color ffffff
color0 ffffff
#color1
#color2
#default_shade_color black
#default_outline_color white
own_window_colour 262626

# 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
# same thing as passing -x at command line
gap_x 40
gap_y 90

# 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 1

# 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

# -- Lua Load -- #
lua_load /falan/conky_widgets.lua
lua_draw_hook_pre conky_widgets

TEXT
${goto 1000}${voffset 144}${font calibri bold caps:size=30}${time %H.%M}${font}
${color #fdfbfb}${goto 150}${hr 2}${color}
${goto 440}${font calibri bold caps:size=20}${time %A, %d %B %Y}
#{image ~/.conkytheme/logo.png -p 1090,190 -s 213x73}
${voffset -60}${offset 208}${font calibri bold caps:size=20}cpu$font
${voffset 5}${offset 202}${font calibri bold caps:size=14}diskler$font
############## RED ###############
${color #8a0000}${voffset -70}${offset 1150}${font PizzaDude Bullets:size=24}N${font}${color} ${voffset -2} ${upspeed wlan0} kb/s ${alignr}${upspeedgraph ppp0 8,60}
${color #8a0000}${voffset 40}${offset 1150}${font PizzaDude Bullets:size=24}T${font}${color}${voffset -2} ${downspeed wlan0} kb/s ${alignr}${downspeedgraph ppp0 8,60}


conky_widgets.lua
--[[
Conky Widgets by londonali1010 (2009)

This script is meant to be a "shell" to hold a suite of widgets for use in Conky.

To configure:
+ Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(" somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
+ To call the widget, add the following between "cr = cairo_create(cs)" and "cairo_destroy(cr)" at the end of the script:
NAME_OF_FUNCTION(cr, OPTIONS)
+ Replace OPTIONS with the options for your widget (should be specified in the widget's code block)

Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
lua_load ~/scripts/conky_widgets.lua
lua_draw_hook_pre widgets

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'

--[[ RING WIDGET ]]
--[[ v1.1 by londonali1010 (2009) ]]
--[[ 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

--[[ END RING WIDGET ]]

--[[ RING (COUNTER-CLOCKWISE) WIDGET ]]
--[[ v1.1 by londonali1010 (2009) ]]
--[[ 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

--[[ END RING (COUNTER-CLOCKWISE) WIDGET ]]

--[[ ROUNDED RECTANGLE WIDGET ]]
--[[ v1.0 by londonali1010 (2009) ]]
--[[ 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

--[[ END ROUNDED RECTANGLE WIDGET ]]

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, 0xd4d4d4, 0.2, 0xd4d4d4, 0.5, 50, 50, 60, 5, 0, 360)
--clock_hands(75, 70, 0xd4d4d4, 0.5, false, 100)
--ring('battery_percent', 'BAT1', 100, 0x000000, 0.2, 0x000000, 0.8, 573, 55, 50, 5, 0, 360)
ring('cpu', 'cpu0', 100, 0xd06016, 0.9, 0xffffff, 0.9, 235, 189, 80, 10, 270, 450)
ring('memperc', '', 100, 0xf23d16, 0.5, 0xffffff, 0.9,235, 189, 60, 20, 270, 400)
ring('swapperc', '', 100, 0xf23d16, 0.2, 0xffffff, 0.9, 235, 189, 40, 5, 270, 360)
ring('fs_used_perc', '/', 100, 0x8a0000, 0.9, 0xffffff, 0.9, 235, 191, 80, 10, 90, 270)
ring('fs_used_perc', '/home', 100, 0xf23d16, 0.5, 0xffffff, 0.9, 235, 191, 60, 15, 90, 220)
ring('fs_used_perc', '/media/49D1-70F9', 100, 0xf23d16, 0.2, 0xffffff, 0.9, 235, 191, 40, 10, 90, 250)

cairo_destroy(cr)
end



Sherlock Holmes

Basit bir gölgeli-conky

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

İçeriği;

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
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window yes
own_window_transparent yes
own_window_argb_visual yes
border_inner_margin 0
border_outer_margin 0
minimum_size 1300 750
alignment tl
gap_x 310
gap_y 430
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# -- Lua load -- #
lua_load /home/kullanıcı_ismi/müsait_konum/text.lua
lua_draw_hook_post main_bars
lua_draw_hook_pre draw_text

TEXT


text.lua;
--[[TEXT REFLECTION  by 9N0M3
]]
require 'cairo'
function conky_draw_text()
local col0,col1,col2=0x00ffff,0x00ff00,0x0000ff -- 0xFFFFCC,0xCCFF99,0x99FF00
local colbg=0xffff00--99CCFF
    text_settings={
{
    text=conky_parse("${acpitemp}°C"),
    font_name="Ubuntu",
font_size=18,
h_align="c",
bold=true,
x=166,
y=48,
reflection_alpha=0.9,
reflection_length=0.8,
colour={{0,0x000000,0.5},{0.5,0x000000,3},{1,0x000000,0.5}},
        },
{
    text="acpi",
    font_name="Ubuntu",
font_size=13,
h_align="c",
bold=true,
x=213,
y=18,
reflection_alpha=0.6,
reflection_length=0.9,
colour={{0,0x000000,0.5},{0.5,0x000000,1},{1,0x000000,0.5}},
                },
{
text=conky_parse("${cpu cpu0}%"),
font_name="Ubuntu",
font_size=18,
h_align="c",
bold=true,
x=350,
y=43,
reflection_alpha=0.9,
reflection_length=0.8,
colour={{0,0x000000,0.5},{0.5,0x000000,3},{1,0x000000,0.5}},
},
               {
text=conky_parse("${cpu cpu1}%"),
font_name="Ubuntu",
font_size=18,
h_align="c",
bold=true,
x=460,
y=43,
reflection_alpha=0.9,
reflection_length=0.8,
colour={{0,0x000000,0.5},{0.5,0x000000,3},{1,0x000000,0.5}},
},
               {
    text="cpu's",
    font_name="Ubuntu",
font_size=13,
h_align="c",
bold=true,
x=406,
y=20,
reflection_alpha=0.6,
reflection_length=0.9,
colour={{0,0x000000,0.5},{0.5,0x000000,1},{1,0x000000,0.5}},
        },

{
    text=conky_parse("${nvidia temp}°C"),
    font_name="Ubuntu",
font_size=18,
h_align="c",
bold=true,
x=640,
y=48,
reflection_alpha=0.9,
reflection_length=0.8,
colour={{0,0x000000,0.5},{0.5,0x000000,3},{1,0x000000,0.5}},
        },
{
    text="gpu",
    font_name="Ubuntu",
font_size=13,
h_align="c",
bold=true,
x=592,
y=20,
reflection_alpha=0.6,
reflection_length=0.9,
colour={{0,0x000000,0.5},{0.5,0x000000,1},{1,0x000000,0.5}},
        },

    }
    if conky_window == nil then return end
    if tonumber(conky_parse("$updates"))<3 then return end
   
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)

    for i,v in pairs(text_settings) do
    cr = cairo_create (cs)
display_text(v)
    cairo_destroy(cr)
    end

cairo_surface_destroy(cs)

end

function rgb_to_r_g_b2(tcolour)
    colour,alpha=tcolour[2],tcolour[3]
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function display_text(t)

local function set_pattern()
--this function set the pattern
if #t.colour==1 then
    cairo_set_source_rgba(cr,rgb_to_r_g_b2(t.colour[1]))
else
local pat

if t.radial==nil then
local pts=linear_orientation(t,te)
pat = cairo_pattern_create_linear (pts[1],pts[2],pts[3],pts[4])
else
pat = cairo_pattern_create_radial (t.radial[1],t.radial[2],t.radial[3],t.radial[4],t.radial[5],t.radial[6])
end

    for i=1, #t.colour do
        cairo_pattern_add_color_stop_rgba (pat, t.colour[i][1], rgb_to_r_g_b2(t.colour[i]))
    end
    cairo_set_source (cr, pat)
end
    end
   
    local slant = CAIRO_FONT_SLANT_NORMAL
    local weight =CAIRO_FONT_WEIGHT_NORMAL
    if t.italic then slant = CAIRO_FONT_SLANT_ITALIC end
    if t.oblique then slant = CAIRO_FONT_SLANT_OBLIQUE end
    if t.bold then weight = CAIRO_FONT_WEIGHT_BOLD end
   
    cairo_select_font_face(cr, t.font_name, slant,weight)

    for i=1, #t.colour do   
        if #t.colour[i]~=3 then
        print ("error in color table")
        t.colour[i]={1,0xFFFFFF,1}
        end
    end

local matrix0 = cairo_matrix_t:create()
rotx,roty=t.rotx/t.font_size,t.roty/t.font_size
cairo_matrix_init (matrix0, 1,roty,rotx,1,0,0)
cairo_transform(cr,matrix0)
cairo_set_font_size(cr,t.font_size)
te=cairo_text_extents_t:create()
    cairo_text_extents (cr,t.text,te)

set_pattern()



    mx,my=0,0
   
    if t.h_align=="c" then
    mx=-te.width/2
    elseif t.h_align=="r" then
    mx=-te.width
end
    if t.v_align=="m" then
    my=-te.height/2-te.y_bearing
    elseif t.v_align=="t" then
    my=-te.y_bearing
end
cairo_move_to(cr,mx,my)

    cairo_show_text(cr,t.text)




   if t.reflection_alpha ~= 0 then
local matrix1 = cairo_matrix_t:create()
cairo_set_font_size(cr,t.font_size)

cairo_matrix_init (matrix1,1,0,0,-1*t.reflection_scale,0,(te.height+te.y_bearing+my)*(1+t.reflection_scale))
cairo_set_font_size(cr,t.font_size)
te=cairo_text_extents_t:create()
cairo_text_extents (cr,t.text,te)


cairo_transform(cr,matrix1)
set_pattern()
cairo_move_to(cr,mx,my)
cairo_show_text(cr,t.text)


local pat2 = cairo_pattern_create_linear (0,
(te.y_bearing+te.height+my),
0,
te.y_bearing+my)
cairo_pattern_add_color_stop_rgba (pat2, 0,1,0,0,1-t.reflection_alpha)
cairo_pattern_add_color_stop_rgba (pat2, t.reflection_length,0,0,0,1)


cairo_set_line_width(cr,0)
dy=te.x_bearing
if dy<0 then dy=dy*(-1) end
cairo_rectangle(cr,mx+te.x_bearing,te.y_bearing+te.height+my,te.width+dy,-te.height*1.05)
cairo_clip_preserve(cr)
cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)
--cairo_stroke(cr)
cairo_mask(cr,pat2)
cairo_pattern_destroy(pat2)
cairo_set_operator(cr,CAIRO_OPERATOR_OVER)
    end
   
end


function linear_orientation(t,te)
local w,h=te.width,te.height
local xb,yb=te.x_bearing,te.y_bearing

    if t.h_align=="c" then
    xb=xb-w/2
    elseif t.h_align=="r" then
    xb=xb-w
    end
    if t.v_align=="m" then
    yb=-h/2
    elseif t.v_align=="t" then
    yb=0
    end
   
if t.orientation=="nn" then
p={xb+w/2,yb,xb+w/2,yb+h}
elseif t.orientation=="ne" then
p={xb+w,yb,xb,yb+h}
elseif t.orientation=="ww" then
p={xb,h/2,xb+w,h/2}
elseif vorientation=="se" then
p={xb+w,yb+h,xb,yb}
elseif t.orientation=="ss" then
p={xb+w/2,yb+h,xb+w/2,yb}
elseif vorientation=="ee" then
p={xb+w,h/2,xb,h/2}
elseif t.orientation=="sw" then
p={xb,yb+h,xb+w,yb}
elseif t.orientation=="nw" then
p={xb,yb,xb+w,yb+h}
end
return p
end

stratovarius

#191
Gerekli fontlar ; OpenLogos , Defused, 321impact , Caviar dreams , PizzaDude Bullets , StyleBats (google ile kolayca bulup yükleyebilirsiniz)

Siyah conky;

background no
use_xft yes
xftfont waree book:size=7
gap_x 10
gap_y 0
alignment top_right
xftalpha 0.8
own_window 1
own_window_transparent 1
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
                ${color 000000}${font OpenLogos:size=100}K${font}
${color 000000}${voffset -10}  ${alignc 50}${font defused:size=35}${time %H}${voffset -10}${font defused:size=23}${time :%M}${voffset -5}${font defused:size=10}${time :%S}
${voffset 10}
${color 000000}${alignc 10}${font defused:size=22}${time %d}${voffset -11}${alignr 20}${font Ubuntu:size=12:bold}${time %B %Y}
${alignr  20}${font Ubuntu:size=10:bold}${time %A}

${color 000000}${font OpenLogos:size=17:bold}t${font Droid Sans:size=8}  Kernel:  ${alignr}${kernel}

${font caviar dreams:size=10:bold}${color 000000}DISK ${hr 2}

${color 000000}${font PizzaDude Bullets:size=15}m${font Droid Sans:size=8}  EvDizini:$alignr${fs_used /home} / ${fs_free /home}

${color 000000}${font PizzaDude Bullets:size=15}m${font Droid Sans:size=8}  DePo:$alignr${fs_used /media/DePo} / ${fs_free /media/DePo}

${font caviar dreams:size=10:bold}${color 000000}SISTEM ${hr 2}

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

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

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

${font caviar dreams:size=10:bold}${color 000000}BAĞLANTI ${hr 2}
${if_existing /proc/net/route wlan0}$endif 
${color 000000}${font PizzaDude Bullets:size=15}v${font Droid Sans:size=8}   Gidenler: $alignr${upspeed wlan0} Kb/s
${color 000000}${font PizzaDude Bullets:size=15}r${font Droid Sans:size=8}   Gelenler: $alignr${downspeed wlan0} Kb/s

${color 000000}${font PizzaDude Bullets:size=15}D${font Droid Sans:size=8}   Sinyal Kalitesi:$alignr${wireless_link_qual wlan0}%

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

${font caviar dreams:size=10:bold}${color 000000}İŞLEMLER${hr 2}

${color 000000}${font StyleBats:size=17}A${font Droid Sans:size=8}    ${top name 1}   ${font Droid Sans:size=8}${alignr} ${top cpu 1}
${color 000000}${font StyleBats:size=18}H${font Droid Sans:size=8}    ${top name 2}   ${font Droid Sans:size=8}${alignr} ${top cpu 2}
${color 000000}${font PizzaDude Bullets:size=15}Z${font Droid Sans:size=8}    ${top name 3} ${font Droid Sans:size=8}${alignr} ${top cpu 3}


Renklendirilmiş hali ;

background no
use_xft yes
xftfont waree book:size=7
gap_x 5
gap_y 5
alignment top_right
xftalpha 0.8
own_window 1
own_window_transparent 1
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
                    ${color A70B1E}${font OpenLogos:size=100}D${font}
${color 6778B5}${voffset -10}  ${alignc 50}${font defused:size=35}${time %H}${voffset -10}${font defused:size=23}${time :%M}${voffset -5}${font defused:size=10}${time :%S}
${voffset 10}
${color 6778B5}${alignc 10}${font defused:size=22}${time %d}${voffset -11}${alignr 20}${font 321impact:size=10}${time %B %Y}
${alignr  20}${font 321impact:size=10}${time %A}

${color 983743}${font OpenLogos:size=17:bold}t${font Droid Sans:size=8:bold}  Kernel:  ${alignr}${kernel}

${font caviar dreams:size=10:bold}${color 697F8E}DISK ${hr 2}

${color 966A99}${font PizzaDude Bullets:size=15:bold}m${font Droid Sans:size=8:bold} Yerel Disk : $alignr${fs_used /home} / ${fs_free /home}

${color 6D526D}${font PizzaDude Bullets:size=15:bold}m${font Droid Sans:size=8:bold} DePo : $alignr${fs_used /mnt/sda3} / ${fs_free /mnt/sda3}

${font caviar dreams:size=10:bold}${color 697F8E}SISTEM ${hr 2}

${color 974810}${font StyleBats:size=17:bold}A${font Droid Sans:size=8:bold}  İşlemci-0:   ${cpu cpu0}% ${alignr}${cpubar 8,80 cpu0}
${color C18A59}${font PizzaDude Bullets:size=15:bold}i${font Droid Sans:size=8:bold}   Zamanlama: $alignr${freq freq0}GHz
${color 974810}${font StyleBats:size=17:bold}A${font Droid Sans:size=8:bold}  İşlemci-1:   ${cpu cpu1}% ${alignr}${cpubar 8,80 cpu1}
${color C18A59}${font PizzaDude Bullets:size=15:bold}i${font Droid Sans:size=8:bold}   Zamanlama: $alignr${freq freq1}GHz

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

${color 59A225}${font StyleBats:size=17:bold}P${font Droid Sans:size=8:bold}    Başlama Süresi: ${alignr}${uptime}
${color 22A200}${font StyleBats:size=17:bold}U${font Droid Sans:size=8:bold}    Pil Durumu:  ${alignr}${battery}
${color 025B23}${font StyleBats:size=17:bold}x ${font Droid Sans:size=8:bold}Genel Sıcaklık: ${alignr}${acpitemp}°C

${font caviar dreams:size=10:bold}${color 697F8E}BAĞLANTI ${hr 2}
${if_existing /proc/net/route wlan0}$endif 
${color 07B68F}${font PizzaDude Bullets:size=15:bold}v${font Droid Sans:size=8:bold}   Gidenler: $alignr${upspeed wlan0} Kb/s
${color 125A60}${font PizzaDude Bullets:size=15:bold}r${font Droid Sans:size=8:bold}   Gelenler: $alignr${downspeed wlan0} Kb/s

${color 4CAEF3}${font PizzaDude Bullets:size=15:bold}D${font Droid Sans:size=8:bold}   Sinyal Kalitesi:$alignr${wireless_link_qual wlan0}%

${color 1941A8}${font PizzaDude Bullets:size=15:bold}M${font Droid Sans:size=8:bold}   Yüklemeler: $alignr${totalup wlan0}
${color 3D19A8}${font PizzaDude Bullets:size=15:bold}S${font Droid Sans:size=8:bold}   İndirmeler: $alignr${totaldown wlan0}

${font caviar dreams:size=10:bold}${color 697F8E}İŞLEMLER${hr 2}

${color 8A9E04}${font StyleBats:size=17:bold}A${font Droid Sans:size=8:bold}    ${top name 1}   ${font Droid Sans:size=8:bold}${alignr} ${top cpu 1}
${color 9E8804}${font StyleBats:size=18:bold}H${font Droid Sans:size=8:bold}    ${top name 2}   ${font Droid Sans:size=8:bold}${alignr} ${top cpu 2}
${color 9E4F04}${font PizzaDude Bullets:size=15:bold}Z${font Droid Sans:size=8:bold}    ${top name 3} ${font Droid Sans:size=8:bold}${alignr} ${top cpu 3}



Kullandığınız disklerin konumunu kendinize göre düzenleyiniz. Yukarıdaki logolar openlogos fontu harfleridir. Kendinize göre harfi değiştiriniz. Hangi harfin hangi logoya denk geldiği;

http://www.dafont.com/openlogos.font


Kde masaüstü kullanan arkadaşlar arkaplanda şeffaklık elde etmek için yazılım merkezinden feh kurunuz. Sonra conkyrc dosyanızın sonuna aşağıdaki kodu ekleyiniz(kullandığınız wallpaper yolunu belirtmeyi unutmayınız). Aslında bu şeffaflık olmuyor ama feh ile kullandığınız wallpaper arkaplana alınıyor.

${texeci 10 feh --bg-scale arka/plan/konumu/x.jpg}

Örn;

${texeci 10 feh --bg-scale /usr/kde/4/share/wallpapers/Air/contents/images/1920x1080.jpg}

 

Sherlock Holmes

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

Conkywizard'ın kurulum sonrası,
alttaki içerikleri dahil etmenizde,
düzgün kullanım için gerekebilir.

ConkyWizardTheme:
# Generated with Conky Wizard
# Copyright (C) 2010 José David Abad García
# GPL Version 3
#
# WARNING! All changes made in this file will be lost if the program runs again!

# Default Fonts
use_xft yes
xftfont Ubuntu:size=8
override_utf8_locale yes

# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024

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

# Window border
draw_borders no
draw_shades no

# Default Color
default_color E0DFDE

# Color Title.
color0 E2E2E2

# Size and position
minimum_size 1366 120
gap_x 0
gap_y 0
alignment bottom_left

# Lua Load  #
lua_load /home/Kullanıcı_ismi/.ConkyWizardTheme/scripts/clock.lua
lua_load /home/Kullanıcı_ismi/.ConkyWizardTheme/scripts/text.lua
lua_draw_hook_pre clock_rings
lua_draw_hook_post draw_text


TEXT
${image /home/Kullanıcı_Ismi/.ConkyWizardTheme/pix/background.png -p 0,0 -s 1366x185}

${GOTO 277}${color #DD3A21}${font Ubuntu:size=12}Işlemci${GOTO 380}Genel ve Grafik${GOTO 585}Ağ${GOTO 765}Işlemler${GOTO 923}Takas ve Bellek${GOTO 1117}Disk${font}${color}


${GOTO 275}${cpu cpu1}%${GOTO 315}${cpu cpu0}% ${GOTO 530}Indirilen:${GOTO 614}${totaldown wlan0} ${GOTO 705}${cpubar cpu0 4,182}${GOTO 920}Takas:${GOTO 990}${swapmax}/${swapperc}%${GOTO 1080}Yazma:${GOTO 1160}${diskio_write}
${GOTO 36}Çekirdek:${GOTO 120}${kernel}${GOTO 252}${cpugraph cpu0 10,95 (-l)}${GOTO 530}Gönderilen:${GOTO 614}${totalup wlan0}${GOTO 380}Pil:${GOTO 463}${battery_percent}%${GOTO 705}${top name 1}${GOTO 790}${top cpu 1}%${GOTO 850}${top mem 1}%${GOTO 920}Toplam:${GOTO 1010}${memmax}${GOTO 1080}Okuma:${GOTO 1160}${diskio_read}
${GOTO 36}Mimari:${GOTO 120}${machine}${GOTO 283}${freq cpu0}mhz${GOTO 530}Gelen:${GOTO 614}${downspeedgraph wlan0 10,55 B7B2AD B7B2AD}${GOTO 380}Başlayalı:${GOTO 463}${uptime}${GOTO 705}${top name 2}${GOTO 790}${top cpu 2}%${GOTO 850}${top mem 2}%${GOTO 920}Kullanılan:${GOTO 1010}${mem}${GOTO 1080}Kullanılabilir::${GOTO 1160}${fs_free} / ${fs_free_perc}%
${GOTO 36}Yük:${GOTO 120}${loadavg}${GOTO 530}Giden:${GOTO 614}${upspeedgraph wlan0 10,55 B7B2AD B7B2AD}${GOTO 380}gpu clock:${GOTO 463}${nvidia gpufreq} mhz${GOTO 705}${top name 3}${GOTO 790}${top cpu 3}%${GOTO 850}${top mem 3}%${GOTO 920}Kullanılabilir:${GOTO 1010}${memeasyfree}${GOTO 1080}Kullanıllan:${GOTO 1160}${fs_used} / ${fs_used_perc}%
${GOTO 36}${loadgraph 10,150}${GOTO 252}Sıcaklık:${GOTO 322}${acpitemp}ºC ${GOTO 380}gpu Sıcaklık:${GOTO 463}${nvidia temp}°C${GOTO 530}Bağlanılan Ağ:${GOTO 614}${wireless_essid wlan0}${GOTO 705}${color #DD3A21}Işlem Adı${GOTO 795}Işlemci${GOTO 856}Bellek${color}${GOTO 920}Entropy:${GOTO 983}${entropy_poolsize}/${entropy_perc}%/${entropy_avail}${GOTO 1080}Toplam:${GOTO 1160}${fs_size} / ${fs_type}${GOTO 1240}${time %d} ${time %B}, ${time %A} ${time %Y}


Ipucu:
Şayet Nvidia kullanmıyorsanız,
içerikteki nvidia_ olan satırlar n/a olarak gözükecektir Conky'de.
Satırları tekrar düzenlemeniz gerekebilir.
Ağ ile ilgili olarak,
eğer'ki kablolu bağlantı kullanıyorsanız wlan0 yazılı satırları eth0 olarak değiştiriniz.

Clock.lua
--[[
Changelog:
+ v1.0 -- Original release
   v1.1p -- Jpope edit
]]

settings_table = {


    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xDD3A21,
        bg_alpha=0.0,
        fg_colour=0xFFFFFF,
        fg_alpha=1.0,
        x=1319, y=37,
        radius=37,
        thickness=1,
        start_angle=0,
        end_angle=360
    },
    {
        name='cpu',
        arg='cpu0',
        max=60,
        bg_colour=0xFFFFFF,
        bg_alpha=0.1,
        fg_colour=0xFFFFFF,
        fg_alpha=1.0,
        x=300, y=115,
        radius=54,
        thickness=1,
        start_angle=-60,
        end_angle=60
    },
    {
        name='cpu',
        arg='cpu1',
        max=60,
        bg_colour=0xFFFFFF,
        bg_alpha=0.1,
        fg_colour=0xFFFFFF,
        fg_alpha=1.0,
        x=300, y=65,
        radius=58,
        thickness=1,
        start_angle=125,
        end_angle=235
    },

}

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

clock_r=44

-- "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=1320
clock_y=40

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,4)
    cairo_set_source_rgba(cr,0.9,0.9,9,1.0)
    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,2)
    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


Text.lua:
--[[
v1.0 07/06/2010, Original release
v1.1 10/06/2010 Add "orientation" parameter
v1.2 15/06/2010  Add "h_align", "v_align" and "radial" parameters
v1.3 25/06/2010  Add "reflection_alpha", "reflection_length", "reflection_scale",
]]
require 'cairo'

function conky_draw_text()
--BEGIN OF PARAMETRES
    text_settings={

{
text=conky_parse("${time %H }"),
font_name="Ubuntu",
font_size=38,
h_align="c",
bold=true,
x=1272,
y=120,
colour={{1,0XFFFFFF,1},{1.0,0x999999,1}, {1,0x999999,1}},
},
{
text=conky_parse("${time :%M}"),
font_name="Ubuntu",
font_size=29,
h_align="c",
bold=true,
x=1315,
y=120,
colour={{1,0XFFFFFF,1},{1.0,0x999999,1}, {1,0x999999,1}},
},
{
text=conky_parse("${time :%S}"),
font_name="Ubuntu",
font_size=20,
h_align="c",
bold=true,
x=1350,
y=120,
colour={{1,0XFFFFFF,1},{1.0,0x999999,1}, {1,0x999999,1}},
},

   }


           
   
   
--------------END OF PARAMETERES----------------
    if conky_window == nil then return end
    if tonumber(conky_parse("$updates"))<3 then return end
       
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)

    for i,v in pairs(text_settings) do   
        cr = cairo_create (cs)
        display_text(v)
        cairo_destroy(cr)
    end
   
    cairo_surface_destroy(cs)
   


end

function rgb_to_r_g_b2(tcolour)
    colour,alpha=tcolour[2],tcolour[3]
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function display_text(t)

    local function set_pattern()
        --this function set the pattern
        if #t.colour==1 then
            cairo_set_source_rgba(cr,rgb_to_r_g_b2(t.colour[1]))
        else
            local pat
           
            if t.radial==nil then
                local pts=linear_orientation(t,te)
                pat = cairo_pattern_create_linear (pts[1],pts[2],pts[3],pts[4])
            else
                pat = cairo_pattern_create_radial (t.radial[1],t.radial[2],t.radial[3],t.radial[4],t.radial[5],t.radial[6])
            end
       
            for i=1, #t.colour do
                cairo_pattern_add_color_stop_rgba (pat, t.colour[i][1], rgb_to_r_g_b2(t.colour[i]))
            end
            cairo_set_source (cr, pat)
        end
    end
   
    --set default values if needed
    if t.text==nil then t.text="Conky is good for you !" end
    if t.x==nil then t.x = conky_window.width/2 end
    if t.y==nil then t.y = conky_window.height/2 end
    if t.colour==nil then t.colour={{1,0xFFFFFF,1}} end
    if t.font_name==nil then t.font_name="Free Sans" end
    if t.font_size==nil then t.font_size=14 end
    if t.angle==nil then t.angle=0 end
    if t.italic==nil then t.italic=false end
    if t.oblique==nil then t.oblique=false end
    if t.bold==nil then t.bold=false end
    if t.radial ~= nil then
        if #t.radial~=6 then
            print ("error in radial table")
            t.radial=nil
        end
    end
    if t.orientation==nil then t.orientation="ww" end
    if t.h_align==nil then t.h_align="l" end
    if t.v_align==nil then t.v_align="b" end   
    if t.reflection_alpha == nil then t.reflection_alpha=0 end
    if t.reflection_length == nil then t.reflection_length=1 end
    if t.reflection_scale == nil then t.reflection_scale=1 end
    if t.skew_x==nil then t.skew_x=0 end
    if t.skew_y==nil then t.skew_y=0 end   
    cairo_translate(cr,t.x,t.y)
    cairo_rotate(cr,t.angle*math.pi/180)
    cairo_save(cr)       
     


    local slant = CAIRO_FONT_SLANT_NORMAL
    local weight =CAIRO_FONT_WEIGHT_NORMAL
    if t.italic then slant = CAIRO_FONT_SLANT_ITALIC end
    if t.oblique then slant = CAIRO_FONT_SLANT_OBLIQUE end
    if t.bold then weight = CAIRO_FONT_WEIGHT_BOLD end
   
    cairo_select_font_face(cr, t.font_name, slant,weight)

    for i=1, #t.colour do   
        if #t.colour[i]~=3 then
            print ("error in color table")
            t.colour[i]={1,0xFFFFFF,1}
        end
    end

    local matrix0 = cairo_matrix_t:create()
    skew_x,skew_y=t.skew_x/t.font_size,t.skew_y/t.font_size
    cairo_matrix_init (matrix0, 1,skew_y,skew_x,1,0,0)
    cairo_transform(cr,matrix0)
    cairo_set_font_size(cr,t.font_size)
    te=cairo_text_extents_t:create()
    cairo_text_extents (cr,t.text,te)
   
    set_pattern()


           
    mx,my=0,0
   
    if t.h_align=="c" then
        mx=-te.width/2
    elseif t.h_align=="r" then
        mx=-te.width
    end
    if t.v_align=="m" then
        my=-te.height/2-te.y_bearing
    elseif t.v_align=="t" then
        my=-te.y_bearing
    end
    cairo_move_to(cr,mx,my)
   
    cairo_show_text(cr,t.text)

     
       
       
   if t.reflection_alpha ~= 0 then
        local matrix1 = cairo_matrix_t:create()
        cairo_set_font_size(cr,t.font_size)

        cairo_matrix_init (matrix1,1,0,0,-1*t.reflection_scale,0,(te.height+te.y_bearing+my)*(1+t.reflection_scale))
        cairo_set_font_size(cr,t.font_size)
        te=cairo_text_extents_t:create()
        cairo_text_extents (cr,t.text,te)
       
               
        cairo_transform(cr,matrix1)
        set_pattern()
        cairo_move_to(cr,mx,my)
        cairo_show_text(cr,t.text)

        local pat2 = cairo_pattern_create_linear (0,
                                        (te.y_bearing+te.height+my),
                                        0,
                                        te.y_bearing+my)
        cairo_pattern_add_color_stop_rgba (pat2, 0,1,0,0,1-t.reflection_alpha)
        cairo_pattern_add_color_stop_rgba (pat2, t.reflection_length,0,0,0,1)   
       
       
        cairo_set_line_width(cr,1)
        dy=te.x_bearing
        if dy<0 then dy=dy*(-1) end
        cairo_rectangle(cr,mx+te.x_bearing,te.y_bearing+te.height+my,te.width+dy,-te.height*1.05)
        cairo_clip_preserve(cr)
        cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)
        --cairo_stroke(cr)
        cairo_mask(cr,pat2)
        cairo_pattern_destroy(pat2)
        cairo_set_operator(cr,CAIRO_OPERATOR_OVER)
    end
   
end


function linear_orientation(t,te)
    local w,h=te.width,te.height
    local xb,yb=te.x_bearing,te.y_bearing
   
    if t.h_align=="c" then
        xb=xb-w/2
    elseif t.h_align=="r" then
        xb=xb-w
       end   
    if t.v_align=="m" then
        yb=-h/2
    elseif t.v_align=="t" then
        yb=0
       end   
       
    if t.orientation=="nn" then
        p={xb+w/2,yb,xb+w/2,yb+h}
    elseif t.orientation=="ne" then
        p={xb+w,yb,xb,yb+h}
    elseif t.orientation=="ww" then
        p={xb,h/2,xb+w,h/2}
    elseif vorientation=="se" then
        p={xb+w,yb+h,xb,yb}
    elseif t.orientation=="ss" then
        p={xb+w/2,yb+h,xb+w/2,yb}
    elseif vorientation=="ee" then
        p={xb+w,h/2,xb,h/2}       
    elseif t.orientation=="sw" then
        p={xb,yb+h,xb+w,yb}
    elseif t.orientation=="nw" then
        p={xb,yb,xb+w,yb+h}
    end
    return p
end


arkaplan için ise:
Alıntı Yap/home/kullanıcı_ismi/.ConkyWizardTheme/pix
konumundaki resmi burada'ki ile değiştiriniz.

mavisular

conky dosyası harika. ancak bir sorunum var ekranıma sığmıyor üstten ve alttan taşmalar var. bunu tam olarak oturtabilmenin bir yolunu gösterirseniz çok sevinirim.

Alıntı yapılan: kuleyni - 08 Eylül 2009 - 17:12:53
Yeni formatladım daha tema falan kurmadım ama sitedeki conkyleri görünce dayanamadım :) Bu da benim conky :) İtalyancaydı Türkçeye çevirdim işlemciyi iki tane gösteriyordu onu hallettim geriside ufak uğraşlar işte :)

[IMG]http://img228.imageshack.us/img228/4156/ekrangrntsq.th.png[/img]


# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
alignment top_right
gap_x 15
gap_y 45

# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
maximum_width 250
stippled_borders 3
border_margin 9
border_width 10
default_color #92A2C7

# --- Text --- #
draw_outline no
draw_borders no
font Sans:size=9:weight=bold
uppercase no
draw_shades yes
override_utf8_locale yes

TEXT
${font Sans:size=9:weight=bold}${color  #99CBFF}${hr 2}$color${font Sans:size=8:weight=bold}
${alignc 30}${color #E67B13}${font OpenLogos:size=50}u${font}
${font Sans:size=14:weight=bold}${color #99CBFF}            ${time %H:%M:%S}
${font Sans:size=11:weight=bold}${color #99CBFF}    ${time %A} ${time %e} ${time %B} ${time %G}

${font Sans:size=9:weight=bold}${color  #99CBFF}Sistem Bilgisi ${hr 2}$color${font Sans:size=8:weight=bold}
${color  #99CBFF}Sistem$color Ubuntu 9.04 ${alignr}${color  #99CBFF} Geçen Süre$color $uptime
${color  #99CBFF}Kernel$color  $kernel ${alignr}${color  #99CBFF}Mimari$color $machine

${font Sans:size=9:weight=bold}${color  #99CBFF}Sistem ${hr 2}$color
${font Arial:bold:size=8}${color #ff0000}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${font Arial:bold:size=8}${color #ff0000}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${font Arial:bold:size=8}${color #ff0000}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${font Arial:bold:size=8}${color #ff0000}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${color  #99CBFF}Frekans:$color ${execi 20 sensors |grep "Core0 Temp" | cut -d" " -f4} $font$color$alignr${freq_g 2} GHZ ${color green}${execi 20 sensors |grep "Core1 Temp" | cut -d" " -f4}  $color${alignr}${color  #99CBFF}İşlemler:$color $running_processes/ $processes

${font Sans:size=9:weight=bold}${color  #99CBFF}CPU ${hr 2}$color
${color green}CPU1          ${color white}${cpu cpu0}%      ${color green}CPU2         ${color white}${cpu cpu1}% $color
${cpugraph cpu0 25,120 000000 ff6600 }  ${cpugraph cpu1 25,120 000000 ff6600 }
${color green}CPU3          ${color white}${cpu cpu2}%     ${color green} CPU4         ${color white}${cpu cpu3}% $color
${cpugraph cpu2 25,120 000000 ff6600 }  ${cpugraph cpu3 25,120 000000 ff6600 }


${font Sans:size=9:weight=bold}${color  #99CBFF}İlk 5 İşlem ${hr 2}{color} ${alignr}${color green}
İsim                                    ${alignr}CPU  ${alignr}RAM  $color
${top name 1}${alignr}${top cpu 1}${alignr }${top mem 1}
${top name 2}${alignr}${top cpu 2}${alignr }${top mem 2}
${top name 3}${alignr}${top cpu 3}${alignr }${top mem 3}
${top name 4}${alignr}${top cpu 4}${alignr }${top mem 4}
${top name 5}${alignr}${top cpu 5}${alignr }${top mem 5}

${font Sans:size=9:weight=bold}${color  #99CBFF}Ram & Swap ${hr 2}$color${font Sans:size=8:weight=bold}
${color #99CBFF}RAM$color  ${memperc}%  ${color  #99CBFF}${membar 3.180}
${color #99CBFF}SWAP$color  ${swapperc}%  ${color  #99CBFF}${swapbar 3.180}

${font Sans:size=9:weight=bold}${color  #99CBFF}Bölümler ${hr 2}$color${font Sans:size=8:weight=bold}
${color #99CBFF}Root$color  ${fs_free_perc /}%$alignr${fs_free /}/ ${fs_size /}
${color  #99CBFF}${fs_bar 3 /}
${color #99CBFF}Home$color  ${fs_free_perc /home}%$alignr${fs_free /home}/ ${fs_size /home}
${color  #99CBFF}${fs_bar 3 /home}

${font Sans:size=9:weight=bold}${color  #99CBFF}Modem IP: ${execi 1~/.scripts/ip.sh} ${hr 2}$color${font Sans:size=8:weight=bold}
${font Sans:size=9:weight=bold}${color  #99CBFF}Bilgisayar IP: ${addr wlan0} ${hr 2}$color${font Sans:size=8:weight=bold}

${color #99CBFF}Veri Transferi
${color green}Download.$color ${downspeed wlan0}Кb/s${alignr}${color red}Upload.$color${alignr} ${upspeed wlan0}Кb/s
${downspeedgraph wlan0 25,120 000000 00ff00} ${alignr}${upspeedgraph wlan0 25,120 000000 ff0000}$color

${font Sans:size=9:weight=bold}${color  #99CBFF}Тrafik ${hr 2}$color${font Sans:size=8:weight=bold}
${color green}Gelen. ${totaldown wlan0} ${alignr}${color red}Giden.${alignr} ${totalup wlan0}

${font Sans:size=9:weight=bold}${color  #99CBFF}${hr 2}$color${font Sans:size=8:weight=bold}



Sherlock Holmes

Alıntı yapılan: mavisular - 21 Kasım 2010 - 14:22:59
ekranıma sığmıyor üstten ve alttan taşmalar var. bunu tam olarak oturtabilmenin bir yolunu gösterirseniz çok sevinirim.

Içerikte genişlik(width) belirtilmiş,
fakat yükseklik(height) için aynısı söylenemez .
Şöyle deneyiniz:
Alıntı Yap# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
maximum_width 250
maximum_height 500
stippled_borders 3
border_margin 9
border_width 10
default_color #92A2C7

Değeri tercihe göre düzenleyerek,
optimal sonucu elde etmek için denemeler yapınız.
Yazı tipi ve boyutunun değerininde düşürerekte taşmaları engelleyebilirsiniz.

mehmetux

Yaptığım ilk conky.(Hazır kodlar üzerinde ufak değişiklikler yaptım)
# CONKY

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
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 yes
use_xft yes
xftfont Dejavu Sans Mono:size=9

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
minimum_size 300 5
maximum_width 300

# 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 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color white

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 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color 97979C}SYSTEM ${hr 2}$color
Ubuntu GNU/Linux - Lucid Lynx 10.04 LTS
$nodename $sysname $kernel on $machine

${color 97979C}HEALTH ${hr 2}$color
${execi 1 aticonfig --adapter=0 --od-getclocks | grep -i GPU}
GPU Temp : ${color white} ${execi 1 aticonfig --adapter=0 --od-gettemperature | tail -n1 | gawk '{ printf $5 }'}°C
CPU 0${color3}${alignc} ${freq}MHz / ${execi 10 sensors | grep  'Core 0' | awk '{print $3}'}${alignr}(${cpu cpu0}%)${cpubar cpu0 7}${color}
CPU 1${color3}${alignc} ${freq}MHz / ${execi 10 sensors | grep  'Core 1' | awk '{print $3}'}${alignr}(${cpu cpu1}%)${cpubar cpu1 7}${color}

${color 97979C}MEMORY ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

${color 97979C}DISKS ${hr 2}$color
/: Used ${fs_used /} of ${fs_size /} ${alignr}${fs_free_perc /}%
${fs_bar 6 /}$color

${color 97979C}NETWORK ${hr 2}$color
IP Address${alignr}${addr eth0} / ${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
Down: $color${downspeed eth0} kb/s ${alignr}Up: ${upspeed eth0} kb/s
${downspeedgraph eth0 25,140} ${alignr}${upspeedgraph eth0
25,140}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

Soru sormadam önce empati kurmak lazım.

if

#196
Minimalist bir conky. Conky dosyasının ilk halini Deviantart'dan almıştım ama bulamadım.
#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_left
background yes
border_margin 5
border_width 5
color0 555555 #
color1 FCAF3E # zolty
color2 2a2a2a # braz
color3 a82553 # rozowy f71f84
color4 5e1014 # bordowy
color5 64574e # braz
color6 2a2a2a # szary
color7 8888CC #  (COOL)
color8 9d9c61 # zolto-szary
color9 525276 # niebiesko-szary
cpu_avg_samples 2
default_color ffffff # szary 5f5f5f
default_outline_color 000000 # Black
default_shade_color 000000 # Black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 30
gap_y 80
max_specials 1024
max_user_text 10000
maximum_width 200
minimum_size 175
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000 # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal ## normal
pad_percents 2 # to co nizej, miejsc po przecinku
short_units yes # krotka wersja podawania wielkosci dyskow np. 612.21M/3.80G
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 1
xftfont Ubuntu :pixelsize=9



TEXT
${font Zegoe Light:pixelsize=24}Tarih${font}
${font Zegoe Light-U:pixelsize=24}${time %H:%M:%S}${font}
${offset 0}${font PizzaDude Bullets:pixelsize=12}q${font} ${font Zegoe Light-U:pixelsize=15}${time %A} - ${time  %B %d, %Y}${font}




${font Zegoe Light - U:pixelsize=24}Sistem${font}

${offset 0}${font PizzaDude Bullets:pixelsize=12}b${font} ${font Zegoe Light - U:pixelsize=15}Host:$alignr$nodename
Uptime: $uptime_short
Kernel:${color }$kernel
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%
Battery:$alignr$battery


${font Zegoe Light - U:pixelsize=24}Görevler${font}

${offset 0}${font PizzaDude Bullets:pixelsize=12}u${font} ${font Zegoe Light - U:pixelsize=13} - epoll çevirisini bitir
${offset 0}${font PizzaDude Bullets:pixelsize=12}u${font} ${font Zegoe Light - U:pixelsize=13} - KOSGEB inceleme
${font}  

badhero



Ben şu sıralar arkaplan olarak siyah kullanıyor olsam da birçok renk ile uyumlu bir conky. Gnome-look'tan indirmiştim. Bazı fontlar değiştirilirse çok daha iyi bir görünüm kazanabilir. Ben pek uğraşmak istemiyorum. :)

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# 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
own_window_transparent yes
#own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
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 200 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white

# 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
# same thing as passing -x at command line
gap_x 10
gap_y 30

# 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
draw_graph_borders no
TEXT
${offset 33}${color 517DA0}${font INFECTED:size=20}bad hero
${voffset -10}${offset 14}${font Defused::bold:size=10}${kernel}
${voffset 5}${color 517DA0}${font Defused:size=8}Uptime: ${color 73A5E8}${alignr}${uptime}

${color 517DA0}CPU0: ${offset 6}${color 73A5E8}${cpu cpu0}% ${offset -6}${alignr}${cpubar cpu0 8,60}
${voffset 3}${color 517DA0}CPU1: ${offset 9}${color 73A5E8}${cpu cpu1}% ${offset -9}${alignr}${cpubar cpu1 8,60}
${voffset 3}${color 517DA0}RAM: ${offset 12}${color 73A5E8}$memperc% ${offset -12}${alignr}${membar 8,60}
${voffset 3}${color 517DA0}SWAP: ${offset 2}${color 73A5E8}$swapperc% ${offset -2}${alignr}${swapbar 8,60}
${offset 66}${color 517DA0}${font INFECTED:size=20}SDA${font}
${voffset 5}${font Defused:size=8}Root:
${voffset 3}${fs_used /} / ${fs_size /}
${voffset 3}${fs_bar 10,180 /}
${voffset 8}Depo:
${voffset 3}${fs_used /media/Depo} / ${fs_size /media/Depo}
${voffset 3}${fs_bar 10,180 /media/Depo}
${if_mounted /media/Expansion Drive}${voffset 8}Harici HDD:
${if_mounted /media/Expansion Drive}${voffset 3}${fs_used /media/Expansion Drive} / ${fs_size /media/Expansion Drive}
${if_mounted /media/Expansion Drive}${voffset 3}${fs_bar 10,180 /media/Expansion Drive}
${offset 43}${color 517DA0}${font INFECTED:size=20}TOP CPU${font}
${voffset 10}${color 73A5E8}${font JUICE Bold:size=8}${top name 1}${alignr}${top cpu 1}
${top name 2}${alignr}${top cpu 2}
${top name 3}${alignr}${top cpu 3}
${top name 4}${alignr}${top cpu 4}


${offset 43}${color 517DA0}${font INFECTED:size=20}TOP MEM${font}
${voffset 10}${color 73A5E8}${font JUICE Bold:size=8}${top_mem name 1}${alignr}${top_mem mem 1}
${top_mem name 2}${alignr}${top_mem mem 2}
${top_mem name 3}${alignr}${top_mem mem 3}
${top_mem name 4}${alignr}${top_mem mem 4}
${voffset 30}${offset 37}${color 517DA0}${font INFECTED:size=20}NETWORK
${voffset -10}${color 517DA0}${font Defused:size=8}Down:
${downspeedgraph wlan0 30,70 517DA0 73A5E8}${color 73A5E8}${voffset -15}${alignr}${downspeed wlan0}


${color 517DA0}${font Defused:size=8}Up: 
${upspeedgraph wlan0 30,70 517DA0 73A5E8}${color 73A5E8}${voffset -15}${alignr}${upspeed wlan0}


Sherlock Holmes

Basit bir saat

Görüntüsü:
[IMG]http://i56.tinypic.com/2vmgihe.png[/img]

Içeriği:
.conkyrc

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 977D59
color1 977D59
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=15
xftalpha 0.6
uppercase no
minimum_size 1366 300
maximum_width 1366
use_spacer none
alignment tm
gap_x 0
gap_y 50

lua_load /home/isim/istenilen_konum/saat.lua
lua_draw_hook_pre conky_widgets

TEXT
${offset 1203}${voffset 180}${time %d %B}
${offset 1195}${voffset 10}${time %A}
${offset 1198}${voffset -210}${time %H:%M:%S}


saat.lua


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, 0x977D59, 0.1, 0x977D59, 0.8, 1243, 165, 50, 5, 0, 360)
clock_hands(1243, 165, 0x977D59, 0.8, false, 85)
cairo_destroy(cr)
end


if

Bir takvimim olsun dedim ama biraz yamuk oldu:) Sayılar tam olarak günlerin altına gelmiyor ve ayın ilk günü alakasız bir yerde duruyor:)

İçeriği şöyle:

#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_left
background yes
border_margin 5
border_width 5
color0 555555 #
color1 FCAF3E # zolty
color2 2a2a2a # braz
color3 a82553 # rozowy f71f84
color4 5e1014 # bordowy
color5 64574e # braz
color6 2a2a2a # szary
color7 8888CC #  (COOL)
color8 9d9c61 # zolto-szary
color9 525276 # niebiesko-szary
default_color ffffff # szary 5f5f5f
default_outline_color 000000 # Black
default_shade_color 000000 # Black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 1050
gap_y 400
max_specials 2200
max_user_text 10000
maximum_width 200
minimum_size 1750
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000 # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal ## normal
pad_percents 2 # to co nizej, miejsc po przecinku
short_units yes # krotka wersja podawania wielkosci dyskow np. 612.21M/3.80G
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 1


TEXT

${color orange}CALENDAR ${hr 2}$color
${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color orange}'"$DJS"'$color'/}


Conky kullanmayı pek bilmiyorum. Fazladan yazdığım bir şeyler varsa onları da çıkarayım. Görüntüsü de aşağıda.