~/.conkyrc dosyanız

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

« önceki - sonraki »

0 Üyeler ve 8 Ziyaretçi konuyu incelemekte.


Sherlock Holmes


Sherlock Holmes

Görüntüsü:



içeriği:
içeriği yapıştıracağınız dosyanın ismini belirtilenler ile adlandırınız.(veyahutta önüne nokta dahil etme kaydı ile değiştiriniz,conkyrc içeriğe de yansıtınız)
.conkyrc

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
temperature_unit fahrenheit
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 1366 145
maximum_width 1366
alignment bottom_left
gap_x 15
gap_y 25
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
use_xft yes
xftfont takaoPGothic:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color C83131

# Lua Load  #
lua_load ~/.ring.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 15}${goto 1135}${font HandelGotLig:size=12}${time %H : %M : %S}

${font HandelGotLig:size=9}${goto 80}${acpitemp}°C${goto 310}${cpu cpu2}♥${goto 528}${fs_used_perc}♠${goto 735}${downspeed wlan0}${goto 965}${nvidia temp}°C${goto 1245}$uptime_short
${goto 200}${cpu cpu1}♥${goto 417}${memperc}♣${goto 625}${upspeed wlan0}${goto 860}${battery_percent}♦${goto 1065}${nvidia gpufreq}mhz
${goto 1150}${cpugraph cpu0 12,185 (-l)}
${goto 1150}${cpugraph cpu1 12,185 (-l)}
${goto 1150}${font HandelGotLig:size=10}${time %A} / ${font HandelGotLig:size=11}${time %d %B} / ${font HandelGotLig:size=10}${time %Y}


.ring.lua

settings_table = {


    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1.0,
        x=1217, y=59,
        radius=17,
        thickness=2,
        start_angle=0,
        end_angle=360
    },
        {
        name='time',
        arg='%M',
        max=60,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1.0,
        x=1180, y=57,
        radius=15,
        thickness=2,
        start_angle=0,
        end_angle=360
    },
        {
        name='time',
        arg='%H',
        max=60,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1.0,
        x=1147, y=55,
        radius=13,
        thickness=2,
        start_angle=0,
        end_angle=360
    },
       {
        name='acpitemp',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=0.7,
        x=100, y=75,
        radius=55,
        thickness=6,
        start_angle=-180,
        end_angle=90
    },
     {
        name='acpitemp',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=0.1,
        x=100, y=185,
        radius=55,
        thickness=6,
        start_angle=0,
        end_angle=90
    },
     {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=210, y=75,
        radius=55,
        thickness=6,
        start_angle=90,
        end_angle=270
           
      },
  {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=320, y=75,
        radius=55,
        thickness=6,
        start_angle=-90,
        end_angle=90
           
      },
  {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=0.8,
        x=430, y=75,
        radius=55,
        thickness=6,
        start_angle=90,
        end_angle=270
           
      },
{
        name='fs_used_perc',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=0.8,
        x=540, y=75,
        radius=55,
        thickness=6,
        start_angle=-90,
        end_angle=90
           
      },
  {
        name='upspeedf',
        arg='wlan0',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=650, y=75,
        radius=55,
        thickness=6,
        start_angle=90,
        end_angle=270
           
      },
{
        name='downspeedf',
        arg='wlan0',
        max=200,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=760, y=75,
        radius=55,
        thickness=6,
        start_angle=-90,
        end_angle=90
           
      },
  {
        name='battery_percent',
        arg='BAT0',
        max=110,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=870, y=75,
        radius=55,
        thickness=6,
        start_angle=90,
        end_angle=270
           
      },
{
        name='nvidia',
        arg='temp',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=980, y=75,
        radius=55,
        thickness=6,
        start_angle=-90,
        end_angle=90
           
      },
  {
        name='nvidia',
        arg='gpufreq',
        max=1000,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x920C09,
        fg_alpha=1,
        x=1090, y=75,
        radius=55,
        thickness=6,
        start_angle=92,
        end_angle=270
           
      },

}

clock_r=45

clock_x=1270
clock_y=75

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.0,0.0,0,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,3)
    cairo_stroke(cr)
   

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


Linux

Alıntı yapılan: if - 13 Nisan 2012 - 22:25:00


conkyrc: http://ubuntuone.com/7b6Q0k9Nijasw0YXY38BQN
gmail.pl: http://ubuntuone.com/5oFgaIzlGNop54bWfZvQ5d

çok hoş elinize sağlık, ancak ben conky'de şu gmail scriptini bir türlü çalıştıramadım. python ile yazılmış olanını da, perl ile yazılmış olanını da kimlik ve yetkilendirme hatası veriyor sürekli.

if

@Linux, LC_ALL=C conky -c .conkyrc şeklinde başlatmanız gerek yoksa e-posta sunucununa bağlanmada sıkıntı yaşanıyor.

hslinux


Yazi Tipi :"HandelGotDLig" http://www.fontyukle.net/de/HandelGotDLig.ttf
.conkyrc
#==============================================================================
#                                 conkyrc_grey
#
#  author  : SLK
#  version : v2011011601
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 20
gap_y 40
minimum_size 190 450
maximum_width 190
own_window yes
own_window_transparent no
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window yes
own_window_transparent yes
own_window_type normal
alignment tr

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color 000000
color1 000000
color2 000000
color3 000000
color4 000000

lua_load ~/.conky/conky_grey.lua
lua_draw_hook_post main

TEXT
${voffset 31}
${goto 100}${color4}${font HandelGotDlig:size=22}${time %e}${color1}${offset -60}${font HandelGotDLig:size=10}${time %a}
${goto 80}${color2}${voffset -2}${font HandelGotDLig:size=9}${time %b}${voffset -2} ${color3}${font HandelGotDLig:size=12}${time %Y}${font}

${voffset 85}
${goto 90}${font HandelGotDlig:size=7,weight:bold}${color}CPU
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 0}%
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}%
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}%
#${goto 90}${cpugraph 10,100 666666 666666}
#${goto 90}${voffset -10}${font HandelGotDlig:size=7,weight:normal}${color}${processes} Procesos

${voffset 10}
${goto 90}${font HandelGotDlig:size=7,weight:bold}${color}MEM
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}%
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}%
${goto 90}${font HandelGotDlig:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}%

${voffset 10}
${goto 90}${font HandelGotDlig:size=7,weight:bold}${color}DISC

#${goto 90}${diskiograph 30,100 66666 666666}${voffset -30}
#${goto 90}${font HandelGotDlig:size=7,weight:bold}${color1}used: ${fs_used /home}
#${goto 90}${font HandelGotDlig:size=7,weight:bold}${color1}used: ${fs_used /media/data}


${voffset 13}
${goto 90}${font HandelGotDlig:size=7,weight:bold}${color1}WIFI




.conky_grey.lua
--==============================================================================
--                                 conky_grey.lua
--
--  author  : SLK
--  version : v2011062101
--  license : Distributed under the terms of GNU GPL version 2 or later
--
--==============================================================================

require 'cairo'

--------------------------------------------------------------------------------
--                                                                    clock DATA
-- HOURS
clock_h = {
    {
    name='time',                   arg='%H',                    max_value=12,
    x=110,                         y=80,
    graph_radius=53,
    graph_thickness=3,
    graph_unit_angle=30,           graph_unit_thickness=30,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.0,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    txt_radius=34,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.6,
    graduation_radius=53,
    graduation_thickness=6,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    },
}
-- MINUTES
clock_m = {
    {
    name='time',                   arg='%M',                    max_value=60,
    x=110,                         y=80,
    graph_radius=57,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=6,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    txt_radius=70,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.6,
    graduation_radius=57,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    },
}
-- SECONDS
clock_s = {
    {
    name='time',                   arg='%S',                    max_value=60,
    x=110,                         y=80,
    graph_radius=50,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=2,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.0,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.2,
    txt_radius=40,
    txt_weight=0,                  txt_size=12.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.3,
    graduation_radius=0,
    graduation_thickness=0,        graduation_mark_thickness=0,
    graduation_unit_angle=0,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.0,
    },
}

--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=85,                          y=205,
    graph_radius=29,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=64,
    txt_weight=0,                  txt_size=0.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=85,                          y=205,
    graph_radius=22,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=40,
    txt_weight=0,                  txt_size=0.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu2',                  max_value=100,
    x=85,                          y=205,
    graph_radius=15,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=30,
    txt_weight=0,                  txt_size=0.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu3',                  max_value=100,
    x=85,                          y=205,
    graph_radius=8,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=4,
    txt_weight=0,                  txt_size=0.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=0.3,
},
{
    name='memperc',                arg='',                      max_value=100,
    x=85,                          y=300,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.5,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.2,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.5,
    graduation_radius=23,
    graduation_thickness=8,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=0.3,
},
{
    name='fs_used_perc',           arg='/media/data',                     max_value=100,
    x=85,                          y=386,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.5,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='/data',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=1.0,
},
{
    name='fs_used_perc',           arg='/home',                max_value=100,
    x=85,                          y=386,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.5,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.6,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='/home',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=1.0,
},
{
    name='downspeedf',           arg='wlan0',                     max_value=100,
    x=85,                          y=460,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.5,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='Down',
    caption_weight=1,             caption_size=8.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=1.0,
},
{
    name='upspeedf',           arg='wlan0',                     max_value=100,
    x=85,                          y=460,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0x000000,      graph_bg_alpha=0.1,
    graph_fg_colour=0x000000,      graph_fg_alpha=0.3,
    hand_fg_colour=0x000000,       hand_fg_alpha=0.5,
    txt_radius=30,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0x000000,        txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x000000, graduation_fg_alpha=0.3,
    caption='Up',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0x000000,    caption_fg_alpha=1.0,
},
}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end

-------------------------------------------------------------------------------
--                                                              draw_clock_ring
-- displays clock
--
function draw_clock_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']

    -- background ring
    cairo_arc(display, x, y, graph_radius, 0, 2 * math.pi)
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = (value % max_value)
    local i = 1
    while i <= val do
        cairo_arc(display, x, y, graph_radius,(  ((graph_unit_angle * i) - graph_unit_thickness)*(2*math.pi/360)  )-(math.pi/2),((graph_unit_angle * i) * (2*math.pi/360))-(math.pi/2))
        cairo_set_source_rgba(display,rgb_to_r_g_b(graph_fg_colour,graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = (graph_unit_angle * i) - graph_unit_thickness

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = 360 / graduation_unit_angle
        local i = 1
        while i <= nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            cairo_arc(display, x, y, graduation_radius, (((graduation_unit_angle * i)-(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2),(((graduation_unit_angle * i)+(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * (math.cos((angle * 2 * math.pi / 360)-(math.pi/2)))
    local movey = txt_radius * (math.sin((angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight);
    cairo_set_font_size (display, txt_size);
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha));
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3);
    cairo_show_text (display, value);
    cairo_stroke (display);
end

-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end

-------------------------------------------------------------------------------
--                                                               go_clock_rings
-- loads data and displays clock
--
function go_clock_rings(display)
    local function load_clock_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_clock_ring(display, data, value)
    end
   
    for i in pairs(clock_h) do
        load_clock_rings(display, clock_h[i])
    end
    for i in pairs(clock_m) do
        load_clock_rings(display, clock_m[i])
    end
    for i in pairs(clock_s) do
        load_clock_rings(display, clock_s[i])
    end
end

-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
   
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    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 display = cairo_create(cs)
   
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
   
    if update_num > 5 then
        go_clock_rings(display)
        go_gauge_rings(display)
    end
   
    cairo_surface_destroy(cs)
    cairo_destroy(display)
end

erhangun84

Alıntı yapılan: yavuz21 - 13 Ocak 2012 - 12:30:26
popüler bi conky ama yükleyemedim adı conky ken bağlantısı http://gnome-look.org/content/show.php/Conky_Ken?content=134705

bunu nasıl kuracağımızı anlatabilirmisin lütfen çok hoşuma gitti bende hemen kurmalıyım

bytan

@erhangun84,

Bağlantıdaki pakedi indirdiğin zaman içerisinde kurulum adımlarını göreceksin. Takıldığın ya da anlamadığın yerleri daha açık şekilde sorabilirsin.
Umut en büyük kötülüktür; işkenceyi uzatır. - F.N.


Bir şey ne ise odur, bu kadar. Öyleyse, iki şey arasında bağdaşıklık varsa, bu aralarında iletişim kuruyorlar demek değildir.
"... kavrayışını bilgi ile derinleştir ..."
PF @ ST

erhangun84

#283


Ben ancak bu kadar yapabildim aşağıda anlatılanlar anladığım kadarıyla (http://www.weather.com/services/xmloap.html) siteye git üye ol üyelik bilgilerini conkyforcecast.config içine kaydet bide bölgenin kodunu gir diyor ama ben sitede sign in den başka bişey bulamadım orayada kendi mail e-posta adresimi falan yazdım ama kayıt ol diye bişey çıkmıyor şimdi ne yapmalıyım?

3. Go to the page 'http://www.weather.com/services/xmloap.html'.
- 'Sign up'
- Filling in forms
- Wait for email
- In this email are an ID and a Key,
    which ones you need later. So be open.

4. Open the file "conkyForecast.config" and paste the Key and ID,
   from the email just received, in the appropriate rows.

----> Gmail-User go to 5.1!

5. Open the file "/Conky/mail" and insert down below the relevant informations
   ([POP3_SERVER] [LOGIN_NAME] [PASSWORD]) -> WITHOUT the box brackets!

5.1 Gmail instructions:
- Open the file "/Conky/mail" and replace the following code:
  "{pop3_unseen [POP3_SERVER] [LOGIN_NAME] [PASSWORD]}"
  with:
  "{execi 300 python ~/.bin/conky/gmail.py}"
- Open the file "/bin/conky/gmail.py" and fill out this form:

  username="username"
  password="********"

!!! Leave this line
    " com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate" "
   unchanged !!!

6. Go to the page 'http://de.weather.com/'
   and search for the NAME of your city (Important! not the ZIP!).
- In the address field is now a code like this: 'GMXX3362'.
          This is the weather-ID
- Copy this code.

7. Open the file "/Conky/weather" and paste the Weather-ID just copied in
   the appropriate field ([WEATHER_ID]) -> WITHOUT the brackets!

8. Copy the folders "bin", "Conky" and the file "conkyForecast.config" into your
   Home directory ('/home/[NAME]/').
- Make the folders and the data you just copied, invisible. (IMPORTANT!)
-> Rename it and write a point before the name (.).

if

@erhangun84, e-posta hesabınıza kaydolma işlemini tamamlayacak bir e-posta gelmedi mi?

erhangun84

e posta gelmedi ama kayıt işlemini tamamladım giriş yapabiliyorum şuan. bu arada başlangıç uygulamalarına startconky.sh yi ekledim ama otomatik olarak açmıyor:(

if

@erhangun84, conky'yi başlatacak betik nerededir? Başlangıç uygulamalarına eklerken hangi komutu kulandınız?

erhangun84

başlangıç uygulamaları programını açıp ekle butonundan  (/home/neyse/bin/conky/startconky.sh) bunu ekledim sadece

if

@erhangun84, o şekilde çalışmaz. Başlangıç uygulamaları kısmında bulunan komut satırına sh /home/neyse/bin/conky/startconky.sh yazın.

erhangun84

Başlangıçta bu şekilde çözüldü
sh -c '/home/neyse/.bin/conky/startconky.sh'

hckr

Alıntı yapılan: hslinux - 28 Mayıs 2012 - 20:05:28

Yazi Tipi :"HandelGotDLig" http://www.fontyukle.net/de/HandelGotDLig.ttf
.conkyrc
Bunu uyguladım ancak resimdeki gibi olmadı sadece yazılar eliyor ve etrafında bir çerçeve var.Nasıl düzeltebilirim?

if

@hckr, lua gerekli o şekiller için. conky -v çıktısında görüyorsanız lua'yı, lua uzantılı dosyanın bulunduğu yer ile conkyrc içerisindeki dosya yolunun bir olup olmadığına bakın.

cagriemer

@hckr bu sorunu http://forum.ubuntu-tr.net/index.php?topic=34652 basliginda cozuldu olarak etiketlemistiniz. Sorun cozulmediyse o basligi tekrar acalim ve oradan devam edelim.

hckr

Alıntı yapılan: cagriemer - 10 Temmuz 2012 - 02:44:26
@hckr bu sorunu http://forum.ubuntu-tr.net/index.php?topic=34652 basliginda cozuldu olarak etiketlemistiniz. Sorun cozulmediyse o basligi tekrar acalim ve oradan devam edelim.
Buradaki sorunda aynı dosyanın doğru dizinde bulunmamasında kaynaklanıyor sorun çözülmüştür.
Kolay gelsin

Barış Can

#294
 


Türkçe'ye çevirmeye çalıştığım conky dosyam.

Conkyrc.txt; http://pastebin.com/b7utU1Mb
İkon ve arka plan; http://www.ziddu.com/download/20014073/conky.tar.gz.html
» genelde hiçbir şey planladığım gibi gitmez.
» kişisel blog.

KemalALKIN

www.tckemal.ist

Barış Can

Teşekkür ederim @KemalALKIN.
Tam ekran görüntüsü de dahil edilmiştir arkadaşlar. :)
» genelde hiçbir şey planladığım gibi gitmez.
» kişisel blog.

imarah

Merhaba.
Ara sıra rastgele bir uygulamayı kullanıp kapattıktan sonra masaüstünde yer kaplayan herhangi bir uygulama açtığımda, conky üstte kalıyor. Hani her zaman üstte diye işaretliyorduk ya. Aynen o şekilde.
Ekran Görüntüsü;



Dikkat ederseniz firefox açık. Yanda sürükleme çubuğu ve üstte firefox yazısı/sekmeler var. Ama conky üstte kalıyor.
Ne yapmam gerek  ???

odyssey

conkyrc içeriğini görebilirmiyim ?

imarah

#########################################################################################
#    Conky Theme : Infinity                                                                                                                                                                                          #
#    Created by     : Harshit Yadav                                                                                                                                                                              #
#    Version           : 1.0                                                                                                                                                                                                  #
#    Feel Free to distribute                                                                                                                                                                                         #
#    For Installation Instrcutions See Read Me                                                                                                                                                       #
########################################################################################


# Conky settings #
background yes
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

## This Resolution is set according to the sreen resolution of 1366x768
## Adjust Accoring to yours

minimum_size 1366 768
maximum_width 1366

alignment tr
gap_x 10
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 ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings

## Adjust these fields according to the your screen size i have modded them for 1366X768

TEXT
${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -800}${time %A}${font}
${offset 720}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU-0 ${offset 9}$color${cpu cpu0}%
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}


${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home/Rev-Eng/Solaris}/${fs_size /home/Rev-Eng/Solaris}$font
${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font
${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel
${offset 570}${voffset 5} Uptime :${uptime}
${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename}
${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5}




${offset 680}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addrs wlan0}
${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed wlan0} k/s ${offset 8}Up:${upspeed wlan0} k/s
${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count}