Bem-vindo: Seg, 18 de Novembro 2024, 21:39 Pesquisa avançada

Mostre o seu Desktop!

Apresente aqui temas que gostou, skins de programas, ícones, wallpapers, conky's, etc. Ou seja, tudo o que possa alterar de estético no seu Ubuntu, apresente aqui. Em caso de dúvidas de personalização ou se quiser mostrá-la ao mundo, utilize esta secção!

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Seg, 5 de Setembro 2011, 14:33

Editado pela última vez por Roger Braga em Dom, 11 de Setembro 2011, 3:15, em um total de 1 vez.

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor Exploit » Seg, 5 de Setembro 2011, 16:29

Esse pink Doll está bonito para as meninas! :sneaky:

mrk3004 » Seg Set 05, 2011 12:41 pm escreveu:
Spoiler:
Xubuntu Unity Mod
Imagem

  • Sistema Operativo: Xubuntu 11.04
  • Tema: Divergence IV: A New Hope
  • Ícones: Faenza
  • Wallpaper: http://google.com/imghp
  • Outros: Compiz + Emerald


Simple Mint
Imagem

  • Sistema Operativo: Linux Mint 11
  • Tema: Divergence IV: A New Hope
  • Ícones: Faenza
  • Wallpaper:http://google.com/imghp
  • Outros: Compiz + Emerald


Simple Mint 2
Imagem

  • Sistema Operativo: Linux Mint 11
  • Tema: Divergence IV: A New Hope
  • Ícones: Faenza
  • Wallpaper:http://google.com/imghp
  • Outros: Compiz + Emerald

PinkDoll
Imagem

Spoiler:
  • Sistema Operativo: Linux PinkDoll Pré Release Candidate 1
  • Tema: Baby Clearlooks RC3 (bordas kleanux)
  • Ícones: BabyThumbs RC5+Elementary+IComity RC1
  • Wallpaper:PinkDoll Wallpaper
  • Outros: pinkdoll-panel-extend RC1
Avatar do usuário
Exploit
 
Mensagens: 1297
Registrado em: 31 Agosto, 2011

Re: Mostre o seu Desktop!

Mensagempor tazsf » Seg, 5 de Setembro 2011, 22:18

Infection
Imagem


tazsf
 
Mensagens: 1
Registrado em: 03 Setembro, 2011

Re: Mostre o seu Desktop!

Mensagempor leandrolopes » Ter, 6 de Setembro 2011, 0:53

Até que enfim, Conky

Imagem

Imagem

  • Sistema Operativo: Ubuntu 11.04 NN
  • Tema: Equinox Evolution
  • Ícones: Faenza Darkest
  • Wallpaper: http://bo0xvn.deviantart.com/gallery/?o ... 8#/d3df6ao
  • Outros: Rainlendar 2
  • Conky:
    Spoiler:
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    background yes
    use_xft yes
    xftfont Vibrocentric:size=10
    xftalpha 0.8
    update_interval 0.5
    total_run_times 0
    double_buffer yes
    minimum_size 1000 500
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    border_width 1
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_middle
    gap_x 50
    gap_y 180
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer none
    show_graph_scale no
    show_graph_range no
    text_buffer_size 1024
    #colour
    default_color 000000
    color2 003300
    short_units yes
    pad_percents 2

    TEXT
    ${font Ubuntu:size=70}${time %H:%M}${font}${voffset -35}${font Ubuntu:size=40}${color2}${time :%S}
    ${font Ubuntu:size=50}${color}${time %d}${font}${voffset -35}${font Ubuntu:size=40}${color2}${time %B}${voffset 40}${offset -155}${font Ubuntu:size=30}${color}${time %A}${font}


    CPU:
    ${color2}Core 1: ${color}$font${cpu cpu1}%
    ${voffset -43}${offset 90}${color}RAM:
    ${offset 90}${color2}Utilizado:${color} ${mem}
    ${offset 90}${color2}Total ${color}${memmax}

leandrolopes
 
Mensagens: 342
Registrado em: 14 Junho, 2011
Localização: Paço do Lumiar - MA

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 6 de Setembro 2011, 1:32

Kombi

Imagem http://i.imgur.com/Im1RR.png
Imagem http://i.imgur.com/ykhEd.png Imagem http://i.imgur.com/Z6grM.png
  • Sistema Operativo:Ubuntu 10.10 Maverick Meerkat
  • Tema:http://gnome-look.org/content/show.php?content=136789
  • Ícones:http://gnome-look.org/content/show.php/Griffin+Embers+Icon+Theme?content=99900
  • Wallpaper:http://1.bp.blogspot.com/-QxKy3fWYLoY/TcqcEu0ucLI/AAAAAAAAAHo/NGsnnkaFuOo/s1600/VW_Bus___Wallpaper___1680_by_phat_jay.jpg
  • Cursor:http://browse.deviantart.com/customization/skins/?q=FireStarter#/d3g80io
  • Covergloobus:http://larryni.deviantart.com/art/Big-Button-for-CoverGloobus-186687880
  • Fonte:http://www.sofontes.com.br/ErieContour/download/9384
  • Outros:AWN
  • Conky GREY modificado:
    conkyrc_grey
    Spoiler:
    #==============================================================================
    # 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 14
    gap_y 12
    minimum_size 250 600
    maximum_width 600
    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
    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 333333
    color2 3c3c3c
    color3 3d3d3d
    color4 222222

    lua_load ~/conky_grey/conky_grey1.lua
    lua_draw_hook_post main

    TEXT
    ${voffset 35}
    ${goto 100}${color}${voffset 0}${font ubuntu:size=15}${time %e}${goto 100}${color}${voffset 9}${font ubuntu:size=7}${time %A}
    ${goto 100}${color}${voffset 0}${font ubuntu:size=7}${time %b}
    ${goto 100}${voffset 0} ${color}${font ubuntu:size=7}${time %Y}${font}

    ${voffset 80}
    ${goto 100}${font Ubuntu:size=7,weight:bold}${color}PROCEK
    ${goto 100}${font Ubuntu:size=8,weight:normal}${color}${top name 1}${alignr}${top cpu 1}%
    ${goto 100}${font Ubuntu:size=7,weight:normal}${color}${top name 2}${alignr}${top cpu 2}%
    ${goto 100}${font Ubuntu:size=7,weight:normal}${color}${top name 3}${alignr}${top cpu 3}%
    ${goto 100}${cpugraph 10,100 666666 666666}
    ${goto 100}${voffset -10}${font Ubuntu:size=7,weight:normal}${color}${threads} process

    ${voffset 26}
    ${goto 100}${font Ubuntu:size=7,weight:bold}${color}RAM
    ${goto 100}${font Ubuntu:size=8,weight:normal}${color}${top_mem name 1}${alignr}${top_mem mem 1}%
    ${goto 100}${font Ubuntu:size=7,weight:normal}${color}${top_mem name 2}${alignr}${top_mem mem 2}%
    ${goto 100}${font Ubuntu:size=7,weight:normal}${color}${top_mem name 3}${alignr}${top_mem mem 3}%

    ${voffset 10}
    ${offset 90}${color 333333}ROOT: ${color}${fs_free /}/${fs_size /}
    ${offset 90}${fs_bar 3,100 /}
    ${offset 90}${color 333333}System: ${color}${fs_free /home}/${fs_size /home}
    ${offset 90}${fs_bar 3,100 /home}
    ${goto 190}${font Devil inside:size=40,weight:normal}${color3}6
    ${goto 90}${font Ubuntu:size=9,weight:normal}${color}Temp processador 1 ${hwmon temp 1}Cº${voffset -60}

    ${goto 90}${font Ubuntu:size=9,weight:normal}${color}Temp processador 2 ${hwmon temp 1}Cº




    ${goto 90}${font Ubuntu:size=8}${color}Uso da CPU ${alignr}${uptime_short}


    ${voffset -20}
    ${goto 90}NET

    ${goto 90}${color}Up: ${alignr}${color}${upspeed eth0} k/s}

    ${goto 90}${color}Down: ${alignr}${color }${downspeed eth0}k/s${color}
    #
    # GMAIL #
    #
    ${goto 90}${font Martin Vogel\'s Symbols:size=25}B$font ${voffset -7}${font arial:size=10}GMAIL ${color }${execi 600 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=@gmail.com --password= --ssl} ${color}New emails
    ${image ~/conki/yinyangsilver.png -p 152,95 -s 100x100}


    conky_grey1.lua

    Spoiler:
    --==============================================================================
    -- conky_grey.lua
    --
    -- author : SLK
    -- version : v2011011001
    -- 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=0x8B4513, graph_fg_alpha=0.3,
    txt_radius=34,
    txt_weight=1, txt_size=10.0,
    txt_fg_colour=0x800000, 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=0xA0522D, 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=0x800000, 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=200,
    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=0xCD853F, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=34,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.3,
    graduation_radius=28,
    graduation_thickness=0, graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1, caption_size=8.0,
    caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
    },
    {
    name='cpu', arg='cpu1', max_value=100,
    x=85, y=200,
    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=0x8B4513, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=10,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.3,
    graduation_radius=28,
    graduation_thickness=0, graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1, caption_size=8.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=0x8B4513, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=10,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.3,
    graduation_radius=23,
    graduation_thickness=8, graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1, caption_size=8.0,
    caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
    },
    {
    name='fs_used_perc', arg='/', max_value=100,
    x=85, y=380,
    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=0xCD853F, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=34,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0, graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x800000, graduation_fg_alpha=0.3,
    caption='/',
    caption_weight=1, caption_size=8.0,
    caption_fg_colour=0x8B4513, caption_fg_alpha=0.5,
    },
    {
    name='fs_used_perc', arg='/home/', max_value=100,
    x=85, y=380,
    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=0x8B4513, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=10,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.5,
    graduation_radius=28,
    graduation_thickness=0, graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='/home',
    caption_weight=1, caption_size=8.0,
    caption_fg_colour=0x8B4513, caption_fg_alpha=0.5,
    },
    {
    name='fs_used_perc', arg='/root/', max_value=100,
    x=85, y=470,
    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=0x8B4513, graph_fg_alpha=0.5,
    hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
    txt_radius=10,
    txt_weight=0, txt_size=8.0,
    txt_fg_colour=0x800000, txt_fg_alpha=0.3,
    graduation_radius=23,
    graduation_thickness=8, graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1, caption_size=8.0,
    caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
    },
    }

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

    end


    conky_start.sh

    Spoiler:
    #! /bin/bash

    sleep 20
    conky -c ~/conky_grey/conkyrc_grey &

    exit 0

    Imagem http://img854.imageshack.us/img854/2749/yinyangsilver.png

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 6 de Setembro 2011, 2:15

UBUNTED

Imagem http://i.imgur.com/TGr8j.png
Imagem http://i.imgur.com/PYuAF.png Imagem http://i.imgur.com/Njj8a.png
  • Sistema Operativo:Ubuntu 10.10 Maverick Meerkat
  • Tema:http://gnome-look.org/content/show.php?content=56438
  • Ícones:http://gnome-look.org/content/show.php/LaGaDesk-BlackWhite-III?content=124185
  • Wallpaper:http://i.imgur.com/gMlOW.jpg
  • Covergloobus:http://algalord-gnome.deviantart.com/art/Dirty-compact-for-covergloobus-161054544
  • Cursor:http://gnome-look.org/content/show.php/Protozoa?content=105586
  • Fonte:http://www.dafont.com/dylovastuff.font
  • Outros:AWN
  • Conky:
    conkyrc2
    Spoiler:
    use_xft yes

    xftfont Ubuntu Mono:size=9

    xftalpha 0.8

    update_interval 1.0

    total_run_times 0

    own_window no

    double_buffer yes

    minimum_size 150 150
    maximum_width 400

    draw_shades no

    draw_outline no

    draw_borders no
    draw_graph_borders yes

    stippled_borders 8

    border_margin 4

    border_width 1

    default_color white
    default_shade_color black
    default_outline_color white

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

    alignment top_right

    gap_x 5 # Orizzontale
    gap_y 340 # Verticale

    no_buffers yes

    uppercase no

    cpu_avg_samples 2

    net_avg_samples 2

    override_utf8_locale yes

    use_spacer right

    text_buffer_size 2048

    TEXT
    ${voffset 45}${execpi 1800 conkyForecast --location=BRXX0232 --template=/home/roger/conki/meteo.template}
    ${alignc}CPU: ${if_match ${cpu cpu0}<=29}${color green}${cpu cpu0}%${endif}${if_match ${cpu cpu0}>=30}${if_match ${cpu cpu0}<=79}${color yellow} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=80}${color red}${cpu cpu0}%${endif}${color}
    ${alignc}RAM: ${if_match ${memperc}<=29}${color green}${memperc}%${endif}${if_match ${memperc}>=30}${if_match ${memperc}<=79}${color yellow} ${memperc}%${endif}${endif}${if_match ${memperc}>=80}${color red}${memperc}%${endif}${color}


    meteo.template

    Spoiler:
    ${color1}${font :size=12}${voffset 18 }${alignc}[--datatype=CN]${font}${color}
    ${image [--datatype=WI] -p 5,85 -s 60x60}${image [--datatype=BI] -p 91,100 -s 50x50}${image [--datatype=MI] -p 165,94 -s 43x43}${font}
    ${voffset 55}${goto 14}[--datatype=SR]${goto 190}[--datatype=SS]
    ${goto 14}[--datatype=HT]${alignr} [--datatype=CT]
    ${goto 14}[--datatype=BR]${alignr}[--datatype=BD]
    ${goto 14}[--datatype=WD]${alignr 15}[--datatype=WA]
    ${goto 14}${voffset -2} [--datatype=WS]${alignr}[--datatype=WG]
    ${goto 14}${voffset 6}${font HandelGotD:size=9}${voffset -2}[--datatype=DW --shortweekday --startday=1 --endday=4 --spaces=10]${font}
    ${image [--datatype=WI --startday=1] -p 2,248 -s 40x40}${image [--datatype=WI --startday=2] -p 56,248 -s 40x40}${image [--datatype=WI --startday=3] -p 115,248 -s 40x40}${image [--datatype=WI --startday=4] -p 181,248 -s 40x40}
    ${goto 10}${voffset 30}${font HandelGotD:size=8}[--datatype=LT --startday=1 --endday=1 --hideunits]/[--datatype=HT --startday=1 --endday=1 --hideunits]${goto 68}[--datatype=LT --startday=2 --endday=2 --hideunits]/[--datatype=HT --startday=2 --endday=2 --hideunits]${goto 126}[--datatype=LT --startday=3 --endday=3 --hideunits]/[--datatype=HT --startday=3 --endday=3 --hideunits]${goto 186}[--datatype=LT --startday=4 --endday=4 --hideunits]/[--datatype=HT --startday=4 --endday=4 --hideunits]${font}


    conkyrc1

    Spoiler:
    # main conkyrc by Boris Krinkel <olgmen>
    # krinkel@rambler.ru
    # --- параметры окна ---
    # эти строки необходимы для нормальной работы лучше не изменять
    own_window yes
    own_window_class Conky
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #own_window_title with lua
    # следующие параметры можно изменять
    # минимальный размер
    minimum_size 250 0
    # минимальная ширина
    maximum_width 450
    # --- расположение окна
    # левый верхний угол экрана
    #alignment top_left
    # левый нижний угол экрана
    #alignment bottom_left
    # правый верхний угол экрана
    alignment top_right
    # правый нижний угол экрана
    #alignment bottom_right
    # расстояние между кромкой экрана и окном
    # по горизонтали
    gap_x 5
    # по вертикали
    gap_y 30

    # --- графика окна ---
    # если желаете выводить conky на другом фоне напишите yes
    background no
    # окантовка окна, бордюр
    draw_borders no
    # если бордюр yes
    # длина штрихов бордюра, если 0, то бордюр выводится сплошной линией
    stippled_borders 1
    # толщина линий бордюра
    border_width 1
    # бордюр вокруг выводимых графиков
    draw_graph_borders no
    # включить тень?
    draw_shades no
    # окантовка вокруг текста и выводимых объектов
    draw_outline no
    # Добавить пробел? Только для встраиваемых объектов
    use_spacer right

    # --- цвет ---
    # основной цвет по умолчанию
    default_color DeepSkyBlue
    # цвет тени
    default_shade_color black
    # цвет окантовки
    default_outline_color black
    # дополнительные
    color1 white
    color2 yellow
    color3 red

    # --- шрифты ---
    # используемые шрифты X когда Xft не используется, можно выбрать один из следующих
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

    # Используется ли Xft?
    use_xft yes

    # Шриф Xft когда Xft доступен, здесь можно ввести название и размер любого шрифта
    xftfont Archangelsk:size=9

    # яркость шрифта при испоьзовании шрифтов Xft
    xftalpha 1
    # выводить весь текст прописными буквами
    uppercase no
    # использовать кодировку UTF8? ПРИМЕЧАНИЕ: требуется Xft
    override_utf8_locale yes

    # --- следующие данные необходимы для работы
    # обновление в секундах не имеет смысла ставить больше 2
    # при выводе времени в секундах необходимо значение 1 и менее
    update_interval 0.5
    # время работы программы до её выключения
    # установите 0 для работы программы без остановки
    total_run_times 0
    # двойная буфферизация (требуется для flicker, может не работать)
    double_buffer yes
    # вычитать буферизацию файловой системы из используемой памяти?
    no_buffers yes
    # количество cpu
    cpu_avg_samples 2
    # number of net samples to average
    net_avg_samples 2
    imlib_cache_size 0
    short_units yes
    pad_percents 2
    text_buffer_size 2048
    imlib_cache_size 0
    #--- LUA ---
    lua_load ~/scripts/olgmen5.lua #calendar3_1.lua
    #lua_load ~/scripts/text_mail.lua
    lua_draw_hook_pre widgets

    TEXT
    ${voffset 300}

    olgmen5.lua

    Spoiler:
    --[[
    Conky Widgets by olgmen (2010)

    Скрипт позволяет выводить в окно CONKY часы с часовым механизмом

    для запуска необходимо ввести до TEXT сдедующие строки

    #--- LUA ---
    lua_load ~/scripts/olgmen5.lua
    lua_draw_hook_pre widgets

    при условии, что скрипт olgmen5.lua сохранен в папке ~/scripts
    ]]

    require 'cairo'

    --[[ CLOCK WIDGET ]]

    function clock(cr, x, y, s, bgc, bga, fgc, fga)

    -- функция перекодировки цвета

    function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    -- назначаем толщину выводимых линий

    local s_th = 2

    -- перехватываем данные часы, минуты, секунды

    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


    -- рисуем циферблат

    local radius = s/2
    local m_x,m_y = x + s/2, y + s/2


    -- рисуем черный фон основы часов

    -- задаем границы внешней окружности
    cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
    -- задаем цвет
    cairo_set_source_rgba(cr, 0, 0, 0, 1)
    -- окрашиваем
    cairo_fill_preserve(cr)
    -- завершаем действие
    cairo_stroke(cr)
    -- ----------------------------------------------------------------
    -- рисуем верхнюю шестерню

    local i = 0
    -- зубцы шестерни располагаем через 15 градусов
    local winkel = math.rad(15)
    -- рисуем обод шестерни
    cairo_arc(cr, m_x,m_y-s*0.275, radius*0.26, 0, math.rad(360))
    -- задаем ширину обода
    cairo_set_line_width(cr,s_th*4)
    -- задаем цвет
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    -- выводим рисунок
    cairo_stroke(cr)
    -- рисуем пустые места между зубцами шестерни, что бы показать сцепление зубцов
    -- будем выводить 24 зубца
    for i=0,23,1 do
    -- задаем ширину
    cairo_set_line_width(cr,5)
    -- задаем начальные точки
    cairo_move_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.25), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.25))
    -- задаем конечные точки
    cairo_line_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.3), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.3))
    -- задаем цвет
    cairo_set_source_rgba(cr, 0, 0, 0, 1)
    -- выводим рисунок
    cairo_stroke(cr)
    end
    -- рисуем спицы шестерни
    local i = 0
    -- спицы располагаем через 60 градусов
    local winkel = math.rad(60)
    -- будем выводить 6 спиц
    for i=0,5,1 do
    cairo_set_line_width(cr,s_th*1.5)
    cairo_move_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.25), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.25))
    cairo_line_to(cr, m_x-math.cos(secs+winkel*i), m_y-s*0.275-math.sin(secs+winkel*i))
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)
    end
    -- --------------------------------------------------
    -- рисуем левую шестерню

    local i = 0
    local winkel = math.rad(15)

    cairo_arc(cr, m_x-s*0.2,m_y+s*0.1, radius*0.3, 0, math.rad(360))
    cairo_set_line_width(cr,s_th*4)
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)

    for i=0,23,1 do
    cairo_set_line_width(cr,5)
    cairo_move_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.29), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.29))
    cairo_line_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.34), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.34))

    cairo_set_source_rgba(cr, 0, 0, 0, 1)
    cairo_stroke(cr)
    end

    local i = 0
    local winkel = math.rad(60)

    for i=0,5,1 do
    cairo_set_line_width(cr,s_th*1.5)
    cairo_move_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.29), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.29))
    cairo_line_to(cr, m_x-s*0.2-math.cos(secs+winkel*i), m_y+s*0.1-math.sin(secs+winkel*i))
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)
    end
    -- -----------------------------------------------------
    -- рисуем центральную шестерню

    local i = 0
    local winkel = math.rad(15)
    -- рисуем обод
    cairo_arc(cr, m_x,m_y, radius*0.24, 0, math.rad(360))
    cairo_set_line_width(cr,s_th*2)
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)

    for i=0,23,1 do
    cairo_set_line_width(cr,s_th)
    cairo_move_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.25), m_y-math.cos(secs+winkel*i)*(radius*0.25))
    cairo_line_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.3), m_y-math.cos(secs+winkel*i)*(radius*0.3))

    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)
    end

    local i = 0
    local winkel = math.rad(60)

    for i=0,5,1 do
    cairo_set_line_width(cr,s_th*1.5)
    cairo_move_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.25), m_y-math.cos(secs+winkel*i)*(radius*0.25))
    -- рисуем спицы
    cairo_line_to(cr, m_x-math.sin(secs+winkel*i), m_y-math.cos(secs+winkel*i))
    cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
    cairo_stroke(cr)
    end

    -- ---------------------------------------

    -- рисуем циферблат
    -- задаем границы внешней окружности
    cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
    -- начинаем новое задание
    cairo_new_sub_path(cr)
    -- задаем границы внутренней окружности
    cairo_arc(cr, m_x,m_y, radius*0.5, 0, math.rad(360))
    -- даем задание окрасить пространство между окружностями
    cairo_set_fill_rule(cr, CAIRO_FILL_RULE_EVEN_ODD)
    -- задаем цвет
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    -- окрашиваем
    cairo_fill_preserve(cr)
    -- завершаем действие
    cairo_stroke(cr)

    -- рисуем внешнюю окружность
    cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
    -- задаем толщину линии
    cairo_set_line_width(cr,6)
    -- задаем цвет линии
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    -- рисуем
    cairo_stroke(cr)

    -- прозрачный "корпус часов"

    cairo_arc(cr, m_x, m_y, radius*1.15, 0, 2*math.pi)
    cairo_set_source_rgba(cr, 0.5, 0.5, 0.5, 0.8)
    cairo_set_line_width(cr,1)
    cairo_stroke(cr)

    local border_pat=cairo_pattern_create_linear(m_x, m_y - radius*1.15, m_x, m_y + radius*1.25)

    cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,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,0,0,0,0.7)
    cairo_set_source(cr,border_pat)
    cairo_arc(cr, m_x, m_y, radius*1.1, 0, 2*math.pi)
    cairo_close_path(cr)
    cairo_set_line_width(cr, radius*0.15)
    cairo_stroke(cr)

    -- вывод часовых делений

    local i = 0
    local winkel = math.rad(30)

    for i=0,11,1 do
    cairo_set_line_width(cr,s_th*1.5)
    cairo_move_to(cr, m_x-math.sin(winkel*i)*radius, m_y-math.cos(winkel*i)*radius)
    cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
    cairo_fill_preserve(cr)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)
    end

    -- вывод минутных делений

    local i = 0
    local winkel = math.rad(6)

    for i=0,59,1 do
    cairo_set_line_width(cr,1)
    cairo_move_to(cr, m_x-math.sin(winkel*i)*radius, m_y-math.cos(winkel*i)*radius)
    cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
    cairo_stroke(cr)
    end

    -- часовые стрелки с тенью, взято из Shadowed clock by wlourf (10 jan. 2010)

    function draw_hand(a_trame,arc,arc0,arc1,lg,r,border,rgb)
    xx = xc + clock_r*math.sin(arc)*lg
    yy = yc - clock_r*math.cos(arc)*lg
    x0 = xc + r*math.sin(arc0)
    y0 = yc - r*math.cos(arc0)
    x1 = xc + r*math.sin(arc1)
    y1 = yc - r*math.cos(arc1)

    if border ~= nil then
    cairo_set_line_width(cr,1)
    cairo_set_source_rgba(cr,border[1],border[2],border[3],0.5)
    cairo_move_to (cr, x0, y0)
    cairo_curve_to (cr, x0, y0, xx, yy, x1, y1)
    cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
    cairo_stroke(cr)
    end

    -- рисуем тень

    cairo_move_to (cr, x0, y0)
    cairo_curve_to (cr, x0, y0, xx+shadow_xoffset, yy+shadow_yoffset, x1, y1)
    cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
    pat = cairo_pattern_create_radial (xc, yc, 0, xc, yc, clock_r)
    cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, shadow_opacity)
    cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 0)
    cairo_set_source (cr, pat)
    cairo_fill (cr)

    -- рисуем стрелки

    cairo_move_to (cr, x0, y0)
    cairo_curve_to (cr, x0, y0, xx, yy, x1, y1)
    cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
    pat = cairo_pattern_create_radial (xc, yc, clock_r/10, xc, yc, clock_r*lg)
    cairo_pattern_add_color_stop_rgba (pat,0, rgb[1], rgb[2], rgb[3], 1)
    cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 1)
    cairo_set_source (cr, pat)
    cairo_fill (cr)
    cairo_pattern_destroy (pat)
    end

    -- Здесь вводятся основные данные

    -- радиус часов в пикселях, задаем половину диаметра часов

    clock_r=s/2

    -- координаты центра часов

    xc = x+s/2
    yc = y+s/2

    -- координаты источника света относительно центра часов, 0 - источник света над центром
    -- может быть положительным, источник света выше центра, или отрицательным

    shadow_xoffset=70
    shadow_yoffset=70

    -- прозрачность тени, значения от 0 до 1

    shadow_opacity=0.5

    -- Выводить секундную стрелку, Да - true, Нет - false.
    -- При выводе секундной стрелки update_interval в .conkyrc должен быть менее 1 сек.

    show_seconds=false

    -- Выводить ось стрелок в центре часов, Да - true, Нет - false.

    show_dot = true

    -- размеры стрелок, первая цифра ширина, вторая - длина

    rh,lgh=3,1.2 -- часовая стрелка
    rm,lgm=2,1.75 -- минутная стрелка
    rs,lgs=1,1.9 -- секундная стрелка

    -- забираем данные из ОС

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

    -- расчет угла движения стрелок

    gamma = math.pi/2-math.atan(rs/(clock_r*lgs))
    secs_arc=(2*math.pi/60)*secs
    secs_arc0=secs_arc-gamma
    secs_arc1=secs_arc+gamma

    gamma = math.pi/2-math.atan(rm/(clock_r*lgm))
    mins_arc=(2*math.pi/60)*mins + secs_arc/60
    mins_arc0=mins_arc-gamma
    mins_arc1=mins_arc+gamma

    gamma = math.pi/2-math.atan(rh/(clock_r*lgh))
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
    hours_arc0=hours_arc-gamma
    hours_arc1=hours_arc+gamma

    -- вывод стрелок

    draw_hand(alpha_trame,hours_arc,hours_arc0,hours_arc1,lgh,rh,{0,0,0},{1,1,1})
    draw_hand(alpha_trame,mins_arc,mins_arc0,mins_arc1,lgm,rm,{0,0,0},{.9,.9,.9})
    if show_seconds then
    draw_hand(alpha_trame,secs_arc,secs_arc0,secs_arc1,lgs,rs,{0,0,0},{.8,.8,.8})
    end

    -- рисуем ось стрелок

    if show_dot then

    lg_shadow_center=3
    radius=math.min(rh,rm,rs)*0.75
    if radius<1 then radius=1 end
    ang = math.atan(shadow_yoffset/shadow_xoffset)

    -- тень от оси cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0.7)
    cairo_pattern_add_color_stop_rgba(border_pat,0.3,0.5,1,1,0)
    cairo_pattern_add_color_stop_rgba(border_pat,0.5,0.5,1,1,0)
    cairo_pattern_add_color_stop_rgba(border_pat,0.7,0.5,1,1,0)
    cairo_pattern_add_color_stop_rgba(border_pat,1,0,0,0,0.7)
    cairo_set_source(cr,border_pat)
    cairo_arc(cr, m_x, m_y, radius*1.125, 0, 2*math.pi)
    cairo_close_path(cr)
    cairo_set_line_width(cr, radius*0.25)
    cairo_stroke(cr)

    gamma = -math.atan(1/lg_shadow_center)
    ang0=ang-gamma
    ang1=ang+gamma

    end

    end
    --[[ END CLOCK ]]
    --------------------------------
    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)

    ---------------------------------

    --[[ CLOCK ]]

    cr = cairo_create(cs)
    clock(cr, 25, 50, 200, 0xffffff, 0.9, 0x000000, 1)

    -- опции: x, y, s, bgc, bga, fgc, fga
    -- "x" координаты по горизонтали центра часов
    -- "y" координаты по вертикали центра часов
    -- "s" диаметр часов
    -- "bgc" цвет фона
    -- "bga" яркость фона
    -- "fgc" цвет графики
    -- "fga" яркость графики

    cairo_destroy(cr)

    end

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 6 de Setembro 2011, 14:19

LAÇO

Imagem http://i.imgur.com/rsAaY.jpg
Imagem http://i.imgur.com/599fC.jpg Imagem http://i.imgur.com/78fAM.jpg
  • Sistema Operativo:Ubuntu 10.10 Maverick Meerkat
  • Tema:http://browse.deviantart.com/customization/skins/linuxutil/?order=13#/d48rdqw
  • Ícones:http://gnome-look.org/content/show.php/hydroxygen?content=88575
  • Wallpaper:http://img847.imageshack.us/img847/6428/lao1680x1050.jpg
  • Covergloobus:http://leonardomdq.deviantart.com/art/Twquet-for-Covergloobus-162053013
  • Fonte:http://www.azfonts.net/load_font/dexterc.html
  • Cursor:http://gnome-look.org/content/show.php/Phoeton?content=142528
  • PNG:http://dc374.4shared.com/img/YUkOiLJh/s7/LadybugiCon-Yellow.png
  • Outros:AWN
  • Conky:
    .conkyrc10
    Spoiler:
    # -- 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

    # -- Window specifications -- #
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager

    border_inner_margin 0
    border_outer_margin 0

    minimum_size 400 170
    #maximum_width 400

    alignment tr
    gap_x 10
    gap_y 50

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

    # -- Text settings -- #
    use_xft yes
    xftfont Santana:size=12
    xftalpha 0.8

    default_color 8B8B00

    # -- Lua Load -- #
    lua_load ~/.conky/time.lua
    lua_draw_hook_pre ring_stats

    TEXT
    ${voffset 40}${font Santana:size=30}${alignr}${time %H:%M:%S}${font}
    ${goto 140}${hr 1}
    ${font Santana:size=13}${alignr}${time %A, %d %B %Y}${font}


    time.lua
    Spoiler:
    --[[
    Ring Meters by londonali1010 (2009)

    This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

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

    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/rings-v1.2.lua
    lua_draw_hook_pre ring_stats

    Changelog:
    + v1.2 -- Added option for the ending angle of the rings (07.10.2009)
    + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
    + v1.0 -- Original release (28.09.2009)
    ]]

    settings_table = {
    --[[ heure ]]
    {
    -- 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=0x000000,
    -- "bg_alpha" is the alpha value of the base ring.
    bg_alpha=0,
    -- "fg_colour" is the colour of the indicator part of the ring.
    fg_colour=0x000000,
    -- "fg_alpha" is the alpha value of the indicator part of the ring.
    fg_alpha=0.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=122, y=90,
    -- "radius" is the radius of the ring.
    radius=53,
    -- "thickness" is the thickness of the ring, centred around the radius.
    thickness=9,
    -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    start_angle=90,
    -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
    end_angle=450
    },
    --[ minutes ]
    {
    name='time',
    arg='%M.%S',
    max=60,
    bg_colour=0xF0FFF0,
    bg_alpha=0.1,
    fg_colour=0x4d4d4d,
    fg_alpha=0.8,
    x=122, y=90,
    radius=42,
    thickness=7,
    start_angle=90,
    end_angle=450
    },
    -- [ secondes ]
    {
    name='time',
    arg='%S',
    max=60,
    bg_colour=0xF0FFF0,
    bg_alpha=0,
    fg_colour=0x4d4d4d,
    fg_alpha=0.4,
    x=122, y=90,
    radius=27,
    thickness=17,
    start_angle=90,
    end_angle=450
    },
    --[ jour ]
    {
    name='time',
    arg='%d',
    max=31,
    bg_colour=0xF0FFF0,
    bg_alpha=0.1,
    fg_colour=0x4d4d4d,
    fg_alpha=0.6,
    x=122, y=90,
    radius=67,
    thickness=2,
    start_angle=90,
    end_angle=450
    },
    --[ mois ]
    --[[
    {
    name='time',
    arg='%m',
    max=12,
    bg_colour=0xffffff,
    bg_alpha=0.1,
    fg_colour=0xffffff,
    fg_alpha=0.8,
    x=120, y=100,
    radius=56,
    thickness=5,
    start_angle=90,
    end_angle=450
    },
    ]]
    }


    require 'cairo'

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

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

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

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

    -- Draw background ring

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

    -- Draw indicator ring

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

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

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

    value=tonumber(str)
    pct=value/pt['max']

    draw_ring(cr,pct,pt)
    end

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

    local cr=cairo_create(cs)

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

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


    start_conky.sh

    Spoiler:
    #!/bin/sh
    sleep 30
    conky -c ~/.conky/.conkyrc10 &
    exit 0

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 6 de Setembro 2011, 23:01

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 6 de Setembro 2011, 23:55

AGARB REGOR


Imagem
:ubuntued: "Somente seres humanos excepcionais e irrepreensíveis suscitam ideias generosas e ações elevadas. O conhecimento é limitado. A imaginação envolve ao mundo."
:ubuntued:
Avatar do usuário
Roger Braga
Mr. Deskmod
 
Mensagens: 755
Registrado em: 04 Julho, 2011
Localização: São Paulo, BRASIL

Re: Mostre o seu Desktop!

Mensagempor anna kamilla » Qua, 7 de Setembro 2011, 19:41

ubuntu NV
Imagem

Avatar do usuário
anna kamilla
 
Mensagens: 48
Registrado em: 12 Junho, 2011

AnteriorPróximo

Voltar para Temas do Ubuntu

Quem está online

Usuários navegando neste fórum: Google [Bot] e 4 visitantes

cron