Bem-vindo: Seg, 18 de Novembro 2024, 10:15 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, 3 de Outubro 2011, 3:01

PALMSTYLE

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Carolina GTK
  • Ícones: Azenis Icons
  • Wallpaper: http://img843.imageshack.us/img843/2086/palmstyle.jpg
  • AWN;
  • Conky:
    astronomy
    Spoiler:
    #!/usr/bin/conky -d -c
    ## .conkyrc configuration
    background yes
    # http://htmlhelp.com/cgi-bin/color.cgi
    color0 555555 #
    color1 483D8B # Dark Slate Blue
    color2 B8860B # Dark goldenrod
    color3 4682B4 # Steelblue
    color4 8B0000 # Dark red
    color5 008080 # Teal
    color6 778899 # Light slate gray
    # color7 8888CC # (COOL)
    color8 CCCC88 # (WARM)
    color9 CC8888 # (HOT)
    #
    # 000033 # dark blue
    color7 EEEEE0 # LightGray
    color6 3300FF # blue 0066FF
    #color6 000033
    #color7 LightGray
    #
    #

    cpu_avg_samples 2
    default_color F8F8FF # Ghost white
    default_outline_color 0066FF # Black
    default_shade_color 000000 # Black
    double_buffer yes
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    max_specials 1024
    max_user_text 10000
    maximum_width 300
    #maximum_height 200
    minimum_size 350
    net_avg_samples 2
    no_buffers yes
    override_utf8_locale yes
    own_window yes
    own_window_colour 000000 # Black
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_transparent yes
    own_window_type override
    pad_percents 2
    short_units yes
    stippled_borders 3
    text_buffer_size 8000
    total_run_times 0
    update_interval 1.0
    uppercase no
    use_spacer right
    use_xft yes
    xftalpha 0.75
    xftfont Liberation Sans:size=8
    alignment top_right
    gap_x 0
    gap_y 0
    #


    TEXT
    ${font Arial:bold:size=12}${color1}Astronomy ${color1}${hr 2}
    ${font Arial:bold:size=8}${execi 3600 wget -O - http://www.40-below.com/sunmoon/riseset.cgi?549,120 | sed -n '/\<h4\>/,/\<p\>/ p' | sed -n '/^$/!{s/<[^>]*>//g;p;}' | sed 's/&[^>]*160//g'}
    ${font Trebuchet MS:size=11}${execi 600 /usr/bin/conkyForecast --location=BRXX0232 --datatype=MP}
    ${voffset -20}${font MoonPhases:size=28} ${execi 600 /usr/bin/conkyForecast --location=BRXX0232 --datatype=MF}${font}

    conkyrc
    Spoiler:
    #!/usr/bin/conky -d -c
    ## .conkyrc configuration
    alignment top_right
    background no

    cpu_avg_samples 2
    default_color F8F8FF # Ghost white
    #default_outline_color 0066FF # Black
    #default_shade_color 000000 # Black
    double_buffer yes
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    gap_x 20
    gap_y 425
    max_specials 1024
    max_user_text 10000
    maximum_width 580
    #maximum_height 200
    minimum_size 650
    net_avg_samples 2
    no_buffers yes
    override_utf8_locale yes
    own_window yes
    #own_window_colour 000000 # Black
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_transparent yes
    own_window_type override
    pad_percents 2
    short_units yes
    stippled_borders 0
    text_buffer_size 8000
    total_run_times 0
    update_interval 1.0
    uppercase no
    use_spacer right
    use_xft yes
    xftalpha 0.75
    xftfont Liberation Sans:size=8
    #
    # http://htmlhelp.com/cgi-bin/color.cgi
    color0 555555 #
    color1 483D8B # Dark Slate Blue
    color2 8B7D6B # Dark goldenrod
    color3 4682B4 # Steelblue
    color4 8B0000 # Dark red
    color5 008080 # Teal
    # color6 778899 # Light slate gray
    # color7 8888CC # (COOL)
    color8 CCCC88 # (WARM)
    color9 CC8888 # (HOT)
    #
    # 000033 # dark blue
    color7 EEEEE0 # LightGray
    color6 3300FF # blue 0066FF
    #color6 000033
    #color7 LightGray
    #
    #



    TEXT
    ${offset -5}${color1}${font StyleBats:style=CleanCut:size=16}q ${voffset -2}${font Arial:bold:size=12}Weather ${font} ${color1}${hr 2}
    ${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=BRXX0232 --imperial --datatype=HT} ${execi 600 conkyForecast --location=BRXX0232 --datatype=HT}${font Arial:bold:size=12}
    ${color1}
    ${offset 5}${font ConkyWeather:style=Bold:size=36}${execi 900 conkyForecast --location=BRXX0232 --datatype=WF}${offset 16}${font ConkyWindNESW:size=36}${voffset 1} ${execi 900 conkyForecast --location=BRXX0232 --datatype=BS}${font}
    ${voffset -80}${font Arial:bold:size=12}





    ${voffset 0}${goto 50}${color1}${font Arial:bold:size=18}${execi 600 conkyForecast --location=BRXX0232 --datatype=CT}${font}
    ${voffset 0}${font Arial:bold:size=10}${color1}Barometro: ${color1}${execi 600 conkyForecast --location=BRXX0232 --datatype=BD} ${execi 900 conkyForecast --location=BRXX0232 --datatype=BR}
    ${voffset 0}${color1}Humidade: ${color1}${execi 600 conkyForecast --location=BRXX0232 --datatype=HM}
    ${voffset 0}${color1}Visibilidade: ${color1}${execi 900 conkyForecast --location=BRXX0232 --datatype=VI --imperial}
    ${voffset 0}${color1}Velocidade do vento: ${color1}${execi 600 conkyForecast --location=BRXX0232 --imperial --datatype=WS} km/h ${execi 600 conkyForecast --location=BRXX0232 --hideunits --datatype=WD}
    ${voffset 0}${color1}Rajadas de vento: ${color1}${execi 600 conkyForecast --location=BRXX0232 --datatype=WG}

    ${color1}FORECAST${color1}${hr 2}
    ${font DejaVu Sans Mono:size=10} ${execpi 900 conkyForecast --location=BRXX0232 --datatype=DW --startday=1 --shortweekday} ${execpi 900 conkyForecast --location=BRXX0232 --datatype=DW --startday=2 --shortweekday} ${execpi 900 conkyForecast --location=BRXX0232 --datatype=DW --startday=3 --shortweekday} ${execpi 900 conkyForecast --location=BRXX0232 --datatype=DW --startday=4 --shortweekday}${font}
    ${font ConkyWeather:style=Bold:size=36}${execi 900 conkyForecast --location=BRXX0232 --datatype=WF --startday=1} ${execi 900 conkyForecast --location=BRXX0232 --datatype=WF --startday=2} ${execi 900 conkyForecast --location=BRXX0232 --datatype=WF --startday=3} ${execi 900 conkyForecast --location=BRXX0232 --datatype=WF --startday=4} ${font}
    ${font Arial:bold:size=10}${color1}${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=HT --startday=1 --centeredwidth=4 --hideunits}/${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=LT --startday=1 --centeredwidth=4 --hideunits} ${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=HT --startday=2 --centeredwidth=4 --hideunits}/${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=LT --startday=2 --centeredwidth=4 --hideunits} ${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=HT --startday=3 --centeredwidth=4 --hideunits}/${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=LT --startday=3 --centeredwidth=4 --hideunits} ${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=HT --startday=4 --centeredwidth=4 --hideunits}/${execi 900 conkyForecast --location=BRXX0232 --imperial --datatype=LT --startday=4 --centeredwidth=4 --hideunits}

    Rain ${execi 900 conkyForecast --location=BRXX0232 --datatype=PC --startday=1} Rain ${execi 900 conkyForecast --location=BRXX0232 --datatype=PC --startday=2} Rain ${execi 900 conkyForecast --location=BRXX0232 --datatype=PC --startday=3} Rain ${execi 900 conkyForecast --location=BRXX0232 --datatype=PC --startday=4}

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 » Seg, 3 de Outubro 2011, 3:52

ORANGE ANDROID

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Catartica 1.7
  • Ícones: Cylon
  • Wallpaper: http://fc09.deviantart.net/fs71/f/2010/ ... 35khyc.png
  • AWN;
  • FONTE: Heldorado;
  • Conky:
    conkyrc
    Spoiler:
    maximum_width 1680
    background no
    border_width 0
    cpu_avg_samples 1
    default_color white
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont DejvaVuSans:size=9
    xftalpha 0.5
    gap_x 0
    gap_y 120
    minimum_size 5 5
    net_avg_samples 2
    no_buffers yes
    out_to_console no
    own_window yes
    own_window_class Conky
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 0
    update_interval 0.5
    uppercase no
    use_spacer no
    alignment bottom_middle
    double_buffer yes

    TEXT
    ${font Helldorado:size=45}${color FFA500}${alignc}${time %H:%M:%S}$color$font
    ${font Helldorado:size=28}${color FFA500}${alignc}${time %A, %d %b %Y}$color$font

    ${color FFA500}Uptime: ${color FFA500}$uptime | ${color FFA500}CPU Usage:${color FFA500}${cpu cpu0}% | ${color FFA500}RAM Usage: ${color FFA500}$mem of $memmax | ${color FFA500}Hard Drive: ${color FFA500}${fs_used /} of ${fs_size /}

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 » Seg, 3 de Outubro 2011, 4:48

DESERT ROSE

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Clear-Alien
  • Ícones: DDakji Clear
  • Wallpaper: http://th09.deviantart.net/fs71/PRE/f/2 ... 313py0.png
  • AWN;
  • FONTE: asian-dings.;
  • FONTE: Hypmotizin;
  • FONTE: PizzaDude Bullets;
  • FONTE: StyleBats;
  • FONTE: Radio Space;
  • Conky;
    conkyrc
    Spoiler:
    use_xft yes
    xftfont verdana:size=8
    alignment top_left
    xftalpha 0.8
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 10
    default_shade_color grey
    default_outline_color black
    default_color BADCDD
    use_spacer none
    no_buffers yes
    uppercase no
    color1 F8DF58



    TEXT
    ${color 60141D}${font Asian Dings:size=65} n z n
    ${color 60141D}${font Hypmotizin:size=60}UBUNTU
    ${font PizzaDude Bullets:size=16}v${font} Up: ${upspeed eth0} Kb/s
    ${font PizzaDude Bullets:size=16}r${font} Down: ${downspeed eth0} Kb/s

    ${font PizzaDude Bullets:size=16}M${font} Upload: ${totalup eth0}
    ${font PizzaDude Bullets:size=16}S${font} Download: ${totaldown eth0}

    ${color 60141D}${font StyleBats:size=16}A${font} CPU0: ${cpu cpu0}% ${cpubar cpu0}
    ${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${cpubar cpu1}

    ${color 60141D}${font PizzaDude Bullets:size=16}J${font} $mem / $memmax

    ${font StyleBats:size=18}P${font} Work: ${uptime_short}

    ${font Radio Space:size=24}${time %A %d %m %Y}
    ${font Radio Space:size=75}${time %H:%M}

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 » Seg, 3 de Outubro 2011, 16:19

CLOUD

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Cybertron kore
  • Ícones: Mashup Five 5.8
  • Wallpaper: http://img534.imageshack.us/img534/5397 ... kill22.jpg
  • AWN;
  • FONTE CONKY: Booze;
  • Conky:
    conkyrc
    Spoiler:
    # conky configuration
    # edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>

    # set to yes if you want Conky to be forked in the background
    ## Conky
    #background yes
    out_to_console no
    out_to_ncurses no
    #top_cpu_separate yes
    #max_port_monitor_connections 256
    cpu_avg_samples 4
    net_avg_samples 2
    update_interval 1

    # Text #BankGothic Md BT
    uppercase no
    override_utf8_locale yes
    use_xft yes
    text_buffer_size 2048
    xftfont Walkway :size=12

    # Window
    own_window yes
    own_window_class Conky
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type override#normal
    own_window_colour 000000

    # Grafik
    double_buffer yes
    draw_borders no
    #draw_graph_borders no
    draw_shades no
    draw_outline no
    gap_x 620
    gap_y 185

    # Subtract file system buffers from used memory?
    no_buffers yes

    # set to yes if you want all text to be in uppercase
    uppercase no

    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2

    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2

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

    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer right

    # colours
    color1 white
    # light blue
    color2 000000
    # orange
    #E77320
    color3 FC8820
    # green
    color4 78BF39
    # red
    color5 CC0000

    text_buffer_size 2048

    # Limiting Cache size?
    imlib_cache_size 0

    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument

    # stuff after 'TEXT' will be formatted on screen

    TEXT
    ${font Booze:bold:size=26}${color2}$alignc${time %a, }${time %e %B %G}
    ${font Booze:bold:size=66}${color2}$alignc${time %H:%M:%S}

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 » Seg, 3 de Outubro 2011, 16:45

SIMPLE CLOUD

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: http://gnome-look.org/content/show.php/?content=118548
  • Ícones: Nostromo
  • Wallpaper: http://www.addwallpaper.com/wp-content/ ... -cloud.jpg
  • AWN;
  • FONTE CONKYhttp://www.dafont.com/alien-encounters.font
  • Conky:
    conkyrc
    Spoiler:
    # conky configuration
    # edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>

    # set to yes if you want Conky to be forked in the background
    ## Conky
    #background yes
    out_to_console no
    out_to_ncurses no
    #top_cpu_separate yes
    #max_port_monitor_connections 256
    cpu_avg_samples 4
    net_avg_samples 2
    update_interval 1

    # Text #BankGothic Md BT
    uppercase no
    override_utf8_locale yes
    use_xft yes
    text_buffer_size 2048
    xftfont Walkway :size=12

    # Window
    own_window yes
    own_window_class Conky
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type override#normal
    own_window_colour 000000

    # Grafik
    double_buffer yes
    draw_borders no
    #draw_graph_borders no
    draw_shades no
    draw_outline no
    gap_x 20
    gap_y 615

    # Subtract file system buffers from used memory?
    no_buffers yes

    # set to yes if you want all text to be in uppercase
    uppercase no

    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2

    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2

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

    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer right

    # colours
    color1 white
    # light blue
    color2 ffffff
    # orange
    #E77320
    color3 FC8820
    # green
    color4 78BF39
    # red
    color5 CC0000

    text_buffer_size 2048

    # Limiting Cache size?
    imlib_cache_size 0

    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument

    # stuff after 'TEXT' will be formatted on screen

    TEXT
    ${font Alien Encounters:bold:size=26}${color2}$alignc${time %a, }${time %e %B %G}
    ${font Alien Encounters:bold:size=66}${color2}$alignc${time %H:%M:%S}

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 » Seg, 3 de Outubro 2011, 22:13

CONTRAST LCD

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Depth
  • Ícones: ReMiX
  • Wallpaper: http://4.bp.blogspot.com/_sO8-1AnRAjs/S ... ethora.png
  • AWN;
  • FONTE CONKY: alterebro-pixel-font.ttf;
  • FONTE CONKY: Ambitsek;
  • CONKY;
    conkyrc
    Spoiler:
    override_utf8_locale yes

    use_xft yes
    xftfont Alterebro Pixel font:size=11
    text_buffer_size 2048
    update_interval 1.0
    total_run_times 0

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

    minimum_size 120
    maximum_width 120




    default_color aaa
    default_outline_color 8FBC8F

    alignment tr
    gap_x 20
    gap_y 280

    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale yes

    color1 fed053

    border_inner_margin 11
    border_outer_margin 0


    lua_load ~/Conky/rings.lua
    lua_draw_hook_pre ring_stats
    #lua_load ~/.conky/bg.lua
    lua_draw_hook_pre main

    TEXT
    ${voffset 20}${goto 30}
    ${voffset 10}${font Ambitsek:size=18}${goto 24}${time %H.%M}
    ${voffset -20}${goto 45}${font Alterebro Pixel font:size=15}${time %a %d %b}$font
    ${voffset 13}${goto 30}


    ${voffset -10}${color FFFF00}UPTIME:
    ${offset -2}$color ${uptime}
    ${voffset 75}${goto 10}${color FFFF00}CPU$color $cpu % @ $freq_g GHz
    ${voffset 10}${goto 10}${color FFFF00}MEM$color ${mem}


    ${voffset 65}${goto 10}${color FFFF00}HOME $color ${fs_used_perc /home} %
    ${voffset 2}${goto 10}${color FFFF00}ROOT $color ${fs_used_perc /} %


    ${voffset 50}${goto 10}${color FFFF00}DOWN$color ${downspeedf eth0} Kb/s
    ${voffset 0}${goto 10}${color FFFF00}UP$color ${upspeedf eth0} Kb/s

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

    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.1.lua
    lua_draw_hook_pre ring_stats

    ]]

    --conky_background_color = 0x151515
    --conky_background_alpha = 0.1

    corner_r=20
    main_bg_colour=0x000000--0x000000
    main_bg_alpha=0

    ring_background_color = 0xe0e0e0
    ring_background_alpha = 0.1
    ring_foreground_color = 0xFFFF00--0xcecece
    ring_foreground_alpha = 1

    settings_table = {
    {
    name='time',
    arg='%S',
    max=60,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=4,
    start_angle=-58,
    end_angle=58
    },
    {
    name='time',
    arg='%I.%M',
    max=12,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=12,
    start_angle=-178,
    end_angle=-62
    },
    {
    name='time',
    arg='%M.%S',
    max=60,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=8,
    start_angle=62,
    end_angle=178
    },

    {
    name='cpu',
    arg='cpu1',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=230,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='memperc',
    arg='',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=230,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='fs_used_perc',
    arg='/home',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    g_alpha=ring_foreground_alpha,
    x=70, y=345,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='fs_used_perc',
    arg='/',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    g_alpha=ring_foreground_alpha,
    x=70, y=345,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='downspeedf',
    arg='eth0',
    max=800.0,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=460,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='upspeedf',
    arg='eth0',
    max=85.0,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=460,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    }

    require 'cairo'

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

    local function draw_ring(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

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

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

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

    draw_ring(cr,pct,pt)
    end

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

    local cr=cairo_create(cs)

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

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

    --[[ This is a script made for draw a transaprent background for conky ]]

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

    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)

    cairo_set_source_rgba(cr,rgb_to_r_g_b(main_bg_colour,main_bg_alpha))
    cairo_fill(cr)
    cairo_destroy(cr)
    end

    function conky_main()
    conky_draw_bg()
    conky_ring_stats()
    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, 4 de Outubro 2011, 3:05

:ubuntued: INVADERS :ubuntued:

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Gorilla
  • Ícones: LaGaDesk-TechoLike 1.3.5
  • Wallpaper: http://img40.imageshack.us/img40/4161/s ... aderv5.jpg
  • AWN;
  • Conky:
    conkyrc
    Spoiler:
    override_utf8_locale yes

    use_xft yes
    xftfont Alterebro Pixel font:size=11
    text_buffer_size 2048
    update_interval 1.0
    total_run_times 0

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

    minimum_size 120
    maximum_width 120




    default_color aaa
    default_outline_color 8FBC8F

    alignment tr
    gap_x 20
    gap_y 280

    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale yes

    color1 fed053

    border_inner_margin 11
    border_outer_margin 0


    lua_load ~/Conky/rings.lua
    lua_draw_hook_pre ring_stats
    #lua_load ~/.conky/bg.lua
    lua_draw_hook_pre main

    TEXT
    ${voffset 20}${goto 30}
    ${voffset 10}${font Ambitsek:size=18}${goto 24}${time %H.%M}
    ${voffset -20}${goto 45}${font Alterebro Pixel font:size=15}${time %a %d %b}$font
    ${voffset 13}${goto 30}


    ${voffset -10}${color FFFF00}UPTIME:
    ${offset -2}$color ${uptime}
    ${voffset 75}${goto 10}${color FFFF00}CPU$color $cpu % @ $freq_g GHz
    ${voffset 10}${goto 10}${color FFFF00}MEM$color ${mem}


    ${voffset 65}${goto 10}${color FFFF00}HOME $color ${fs_used_perc /home} %
    ${voffset 2}${goto 10}${color FFFF00}ROOT $color ${fs_used_perc /} %


    ${voffset 50}${goto 10}${color FFFF00}DOWN$color ${downspeedf eth0} Kb/s
    ${voffset 0}${goto 10}${color FFFF00}UP$color ${upspeedf eth0} Kb/s

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

    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.1.lua
    lua_draw_hook_pre ring_stats

    ]]

    --conky_background_color = 0x151515
    --conky_background_alpha = 0.1

    corner_r=20
    main_bg_colour=0x000000--0x000000
    main_bg_alpha=0

    ring_background_color = 0xe0e0e0
    ring_background_alpha = 0.1
    ring_foreground_color = 0xFFFF00--0xcecece
    ring_foreground_alpha = 1

    settings_table = {
    {
    name='time',
    arg='%S',
    max=60,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=4,
    start_angle=-58,
    end_angle=58
    },
    {
    name='time',
    arg='%I.%M',
    max=12,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=12,
    start_angle=-178,
    end_angle=-62
    },
    {
    name='time',
    arg='%M.%S',
    max=60,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=75,
    radius=55,
    thickness=8,
    start_angle=62,
    end_angle=178
    },

    {
    name='cpu',
    arg='cpu1',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=230,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='memperc',
    arg='',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=230,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='fs_used_perc',
    arg='/home',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    g_alpha=ring_foreground_alpha,
    x=70, y=345,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='fs_used_perc',
    arg='/',
    max=100,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    g_alpha=ring_foreground_alpha,
    x=70, y=345,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='downspeedf',
    arg='eth0',
    max=800.0,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=460,
    radius=46,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    {
    name='upspeedf',
    arg='eth0',
    max=85.0,
    bg_colour=ring_background_color,
    bg_alpha=ring_background_alpha,
    fg_colour=ring_foreground_color,
    fg_alpha=ring_foreground_alpha,
    x=70, y=460,
    radius=39,
    thickness=6,
    start_angle=-90,
    end_angle=180
    },
    }

    require 'cairo'

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

    local function draw_ring(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

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

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

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

    draw_ring(cr,pct,pt)
    end

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

    local cr=cairo_create(cs)

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

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

    --[[ This is a script made for draw a transaprent background for conky ]]

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

    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)

    cairo_set_source_rgba(cr,rgb_to_r_g_b(main_bg_colour,main_bg_alpha))
    cairo_fill(cr)
    cairo_destroy(cr)
    end

    function conky_main()
    conky_draw_bg()
    conky_ring_stats()
    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 emanuelMoreira » Ter, 4 de Outubro 2011, 12:56

Bonito Bonito Este!

emanuelMoreira
 
Mensagens: 1
Registrado em: 04 Outubro, 2011

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 4 de Outubro 2011, 14:57

:yeah: 3D FULL :yeah:

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: Humanoid-OSX-Black-ColouredButtons
  • Ícones: LinuxLex-8 Icon Collection Theme 8.1
  • Wallpaper: http://img37.imageshack.us/img37/8306/v ... 883517.jpg
  • AWN;
  • SCREENLETS;
  • CONKY;
    conkyrc
    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

    own_window_type normal
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    own_window yes
    own_window_transparent yes
    own_window_argb_visual yes
    #own_window_title text widget v1.3

    border_inner_margin 0
    border_outer_margin 0

    minimum_size 900 100
    alignment tl
    gap_x 550
    gap_y 5

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


    # -- Lua load -- #
    lua_load ~/conky-panel/panel.lua
    lua_draw_hook_post draw_panel

    #at least one line (blank or not) after TEXT
    TEXT

    panel.lua
    Spoiler:
    --[[PANEL WIDGET v1.0 by Wlourf 04 Oct. 2011

    This widget can drawn a panel-like conky : with some indicators :circles, bars, graphs, text ..

    http://wlourf.deviantart.com/#/d4bs4ks

    To call the script in a conky, use, before TEXT
    lua_load /path/to/the/script/panel.lua
    lua_draw_hook_pre draw_panel

    and add one line (blank or not) after TEXT

    The parameters are set into two tables, one for the backgound (bar_settings) and one for the widgets (widgets_settings).
    ******************
    ***bar_settings***
    ******************
    The parameters (all optionals) are :
    x - x coordinate of top-left corner of the box, default = 0 = (top-left corner of conky window)
    y - y coordinate of top-left corner of the box, default = 0 = (top-left corner of conky window)
    width - width of the box, default = width of the conky window
    height - height of the box, default = height of the conky window
    corners - corners is a table for the four corners in this order : top-left, top-right,bottom-right, bottom-left
    each corner is defined in a table with a shape and a radius, available shapes are : "curve","circle","line"
    example for the same shapes for all corners:
    { {"circle",10} }
    example for first corner different from the three others
    { {"circle",10}, {"circle",5} }
    example for top corners differents from bottom corners
    { {"circle",10}, {"circle",10}, {"line",0} }
    default = { {"line",0} } i.e=no corner
    draw_me - if set to false, box is not drawn (default = true or 1)
    it can be used with a conky string, if the string returns 1, the box is drawn :
    example : "${if_empty ${wireless_essid wlan0}}${else}1$endif",

    colour - table of colours, default = plain white {{1,0xFFFFFF,0.5}}
    this table contains one or more tables with format {P,C,A}
    P=position of gradient (0 = start of the gradient, 1= end of the gradient)
    C=hexadecimal colour
    A=alpha (opacity) of color (0=invisible,1=opacity 100%)
    Examples :
    for a plain color {{1,0x00FF00,0.5}}
    for a gradient with two colours {{0,0x00FF00,0.5},{1,0x000033,1}}
    or {{0.5,0x00FF00,1},{1,0x000033,1}} -with this one, gradient will start in the middle
    for a gradient with three colours {{0,0x00FF00,0.5},{0.5,0x000033,1},{1,0x440033,1}}
    and so on ...
    The usage of theses parameters are explained on this page :http://u-scripts.blogspot.com/2011/01/box-widget_27.html

    **********************
    ***widgets_settings***
    **********************
    The table widgets_settings contains one or more table for each widget.
    The 3 mandatory parameters are :
    name - the name of the conky variable to display, for example for {$cpu cpu0}, just write name="cpu"
    arg - the argument of the above variable, for example for {$cpu cpu0}, just write arg="cpu0"
    arg can be a numerical value if name=""
    max - the maximum value the above variable can reach, for example, for {$cpu cpu0}, just write max=100

    Optional parameters are :
    style - style of the widget : "circle", "bar", "graph", "text", default=circle
    xw,yw - x and y coordinates of the widget, relative to the top-left corner of the bar
    for "circle" : x and y are the center of the circle, default : center of the bar
    for "bar" and graph : x and y are the top left corner of the widget, default : center of the bar
    text - text to display, default = ""
    it can be used with conky variables, i.e. text="my cpu1 is ${cpu cpu1} %")
    xt,yt - x and y coordinates of the text widget, or the text of a widget, relative to the top-left corner of the bar
    default : center of the bar
    angle - rotation of text in degrees, default = 0 (horizontal)
    h_align - horizontal alignement of text relative to point (x,y), default="l"
    available values are "l": left, "c" : center, "r" : right
    v_align - vertical alignment of text relative to point (x,y), default="b"
    available values "t" : top, "m" : middle, "b" : bottom
    font_name - name of font to use, default = Free Sans
    font_size - size of font to use, default = 14
    italic - display text in italic (true/false), default=false
    oblique - display text in oblique (true/false), default=false (I don' see the difference with italic!)
    bold - display text in bold (true/false), default=false

    colour - table of colours for widget, default = plain white {{1,0xFFFFFF,1}}
    this table contains one or more tables with format {P,C,A}
    P=position of gradient (0 = beginning of text, 1= end of text)
    C=hexadecimal colour
    A=alpha (opacity) of color (0=invisible,1=opacity 100%)
    Examples :
    for a plain color {{1,0x00FF00,0.5}}
    for a gradient with two colours {{0,0x00FF00,0.5},{1,0x000033,1}}
    or {{0.5,0x00FF00,1},{1,0x000033,1}} -with this one, gradient will start in the middle of the text
    for a gradient with three colours {{0,0x00FF00,0.5},{0.5,0x000033,1},{1,0x440033,1}}
    and so on ...
    clear - if set to true, don't use the color but clear the background, default=false
    draw_me - if set to false, text is not drawn, default = true or 1
    it can be used with a conky string, if the string returns 1, the text is drawn :
    example : "${if_empty ${wireless_essid wlan0}}${else}1$endif",
    draw_border - draw the border of the widget if true, default=true
    thickness - thickness of the border, default=1 pixel
    inverse - if set to true, widgets are displayed in inverse order, default =false

    ***special parameters for circle widget only***
    radius - radius of the circle, in % of the bar height, default=90
    start - starting angle of the circle, default=0
    hand - if hand>0, draw only the hand, not a sector, value is a percentage of the radius, default=0

    ***special parameters for graph widget only***
    fill_graph - if set to true, fill the graph, default =false
    auto_scale - if set to true, the y-axis of the graph is "autoscaled", defaault = false

    ***special parameters for graph and bar widgets only***
    width - width of the widget in pixel, default=100
    height - height of the widget in pixel, default=10

    ***special parameter for graph widget only***
    fill_graph - if set to true, fill the graph, default =false


    v1.0 04/10/2011, Original release

    ]]
    require 'cairo'



    local graphs={}

    function conky_draw_panel()

    --{{EXAMPLE1
    --paremeters for the background
    local bar_settings={
    x=0,y=0,
    height=25, width=480,
    corners={{"circle",0}, {"circle",0}, {"circle",10}},
    colour={ {0 ,0x666666,1},
    {0.5 ,0xffffff,1},
    {1 ,0x666666,1}
    },
    --draw_me=false
    }

    main_colour={{0 ,0x0000ff,0.25},
    {0.50 ,0x0000ff,1},
    {1 ,0x0000ff,0.25}
    }
    --parameters for the widgets
    local widgets_settings={
    --memory circle
    {
    name="memperc", arg="", max=100,
    xw=30 ,
    text="mem",
    xt=12,
    font_size=10, bold=true,
    angle=-90,
    h_align="c", v_align="m",
    colour=main_colour,
    start=90,
    inverse=true
    },
    --home bar
    {
    style="bar",
    name="fs_used_perc", arg="/home", max=100,
    xw=70 ,yw=3 , width=80, height=8,
    text="h",
    xt=60, yt=7,
    font_size=12, bold=true,
    v_align="m",
    colour=main_colour,
    },
    --root bar
    {
    style="bar",
    name="fs_used_perc", arg="/", max=100,
    xw=70 ,yw=14 , width=80, height=8,
    text="r",
    xt=60, yt=18,
    font_size=12, bold=true,
    v_align="m",
    colour=main_colour,

    },
    --cpu1 circle
    {
    name="cpu", arg="cpu1", max=100,
    xw=190 ,
    text="cpu",
    xt=170,
    font_size=12, bold=true,
    angle=-90,
    h_align="c",
    v_align="m",
    colour=main_colour,
    start=90,
    inverse=true
    },
    --cpu2 circle
    {
    name="cpu", arg="cpu2", max=100,
    xw=215 ,
    colour=main_colour,
    start=90,
    inverse=true
    },

    --dl/ul graph border
    {--dl graph
    style="graph",
    name="downspeedf", arg="eth0", max=2000,
    xw=240 , yw=3, width=75,
    colour={{0 ,0x0066ff,0.25},
    {0.50 ,0x0066ff,1},
    {1 ,0x0000ff,1}
    },
    height=19,
    --auto_scale=true,
    draw_border=false,
    text="DL: ${downspeed eth0}",
    font_size=10,
    xt=320, yt=6, bold=true,
    v_align="m",
    fill_graph=true,
    },
    {--ul graph
    style="graph",
    name="upspeedf", arg="eth0", max=100,
    xw=240 , yw=3, width=75,
    colour={{0 ,0xff0066,0.25},
    {0.50 ,0xff0066,1},
    {1 ,0x0000ff,1}
    },
    height=19,
    --auto_scale=true,
    draw_border=false,
    text="UL: ${upspeed eth0}",
    font_size=10,
    xt=320, yt=18, bold=true,
    v_align="m"
    },
    {
    style="graph",
    name="", arg=0, max=1,
    xw=240 , yw=3, width=75,
    colour=main_colour,
    height=19
    },

    {--time
    style="text",
    -- name="time", arg="", max=100,
    text="${time %H:%M}",
    xt=390, yt=15,
    font_size=22,
    angle=10,
    bold=true,
    colour=main_colour,
    } ,

    {--date
    style="text",
    -- name="time", arg="", max=100,
    text="${time %d}",
    xt=460, yt=12,
    v_align="b",
    font_size=12,
    bold=true,
    colour=main_colour,
    },
    {--date
    style="text",
    -- name="time", arg="", max=100,
    text="${time %m}",
    xt=460, yt=13,
    v_align="t",
    font_size=12,
    bold=true,
    colour=main_colour,
    },
    }
    --END EXAMPLE 1}}






    --------------END OF PARAMETERS----------------

    if conky_window == nil then return end
    if tonumber(conky_parse("$updates"))<3 then return end

    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    if bar_settings.x == nil then bar_settings.x=0 end
    if bar_settings.y == nil then bar_settings.y=0 end

    display_background(cs,bar_settings)

    for i,v in pairs(widgets_settings) do
    v.number=i
    if v.style=="graph" and graphs[i] == nil then
    graphs[i]={}
    print ("setup graph " .. tostring(i) .. " at update :" .. conky_parse("$updates"))
    if v.width== nil then v.width=100 end
    for x=1, v.width do graphs[i][x]=0 end
    end
    --graphs[i][1]=0
    cr = cairo_create (cs)
    cairo_translate(cr,bar_settings.x,bar_settings.y)
    display_widget(v,bar_settings)
    cairo_destroy(cr)
    cr = nil
    end

    cairo_surface_destroy(cs)

    end

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

    function set_pattern(t,pts)
    --this function set the pattern
    if #t.colour==1 then
    cairo_set_source_rgba(cr,rgb_to_r_g_b2(t.colour[1]))
    else
    local pat = cairo_pattern_create_linear (pts[1],pts[2],pts[3],pts[4])
    for i=1, #t.colour do
    cairo_pattern_add_color_stop_rgba (pat, t.colour[i][1], rgb_to_r_g_b2(t.colour[i]))
    end
    cairo_set_source (cr, pat)
    cairo_pattern_destroy(pat)
    end
    end

    function display_background(cs,b)


    function table.copy(t)
    local t2 = {}
    for k,v in pairs(t) do
    t2[k] = {v[1],v[2]}
    end
    return t2
    end

    function draw_corner(num,t)
    local shape=t[1]
    local radius=t[2]
    local x,y = t[3],t[4]
    if shape=="line" then
    if num == 1 then cairo_line_to(cr,radius,0)
    elseif num == 2 then cairo_line_to(cr,x,radius)
    elseif num == 3 then cairo_line_to(cr,x-radius,y)
    elseif num == 4 then cairo_line_to(cr,0,y-radius)
    end
    end
    if shape=="circle" then
    local PI = math.pi
    if num == 1 then cairo_arc(cr,radius,radius,radius,-PI,-PI/2)
    elseif num == 2 then cairo_arc(cr,x-radius,y+radius,radius,-PI/2,0)
    elseif num == 3 then cairo_arc(cr,x-radius,y-radius,radius,0,PI/2)
    elseif num == 4 then cairo_arc(cr,radius,y-radius,radius,PI/2,-PI)
    end
    end
    if shape=="curve" then
    if num == 1 then cairo_curve_to(cr,0,radius ,0,0 ,radius,0)
    elseif num == 2 then cairo_curve_to(cr,x-radius,0, x,y, x,radius)
    elseif num == 3 then cairo_curve_to(cr,x,y-radius, x,y, x-radius,y)
    elseif num == 4 then cairo_curve_to(cr,radius,y, x,y, 0,y-radius)
    end
    end
    end


    local table_corners={"circle","curve","line"}

    if b.draw_me==true then b.draw_me = nil end
    if b.draw_me~=nil and conky_parse(tostring(b.draw_me)) ~= "1" then return end


    --check values and set default values
    if b.height == nil then b.height = conky_window.height end
    if b.width == nil then b.width = conky_window.width end

    b.w,b.h = b.width,b.height
    if b.w == nil then b.w = conky_window.width end
    if b.h == nil then b.h = conky_window.height end
    if b.colour==nil then b.colour={{0 ,0xffffff,1},
    --{0.5 ,0xeeeeee,1},
    --{1 ,0xaaaaaa,1}
    } end

    if b.corners == nil then b.corners={ {"line",0} } end
    local t_corners = {}
    local t_corners = table.copy(b.corners)
    --don't use t_corners=b.corners otherwise b.corners is altered

    --complete the t_corners table if needed
    for i=#t_corners+1,4 do
    t_corners[i]=t_corners[#t_corners]
    local flag=false
    for j,v in pairs(table_corners) do flag=flag or (t_corners[i][1]==v) end
    if not flag then print ("error in corners table :",t_corners[i][1]);t_corners[i][1]="curve" end
    end

    --this way :
    -- t_corners[1][4]=x
    -- t_corners[2][3]=y
    --doesn't work
    t_corners[1]={t_corners[1][1],t_corners[1][2],0,0}
    t_corners[2]={t_corners[2][1],t_corners[2][2],b.width,0}
    t_corners[3]={t_corners[3][1],t_corners[3][2],b.width,b.height}
    t_corners[4]={t_corners[4][1],t_corners[4][2],0,b.height}




    for i=1, #b.colour do
    if #b.colour[i]~=3 then
    print ("error in background color table")
    bar.colour[i]={1,0xFFFFFF,1}
    end
    end
    cr = cairo_create (cs)
    set_pattern(b,{b.x,b.y,b.x,b.x+b.height})

    --cairo_rectangle(cr,b.x,b.y,b.width,b.height)
    cairo_translate(cr, b.x, b.y)
    local tc=t_corners
    cairo_move_to(cr,tc[1][2],0)
    cairo_line_to(cr,b.w-tc[2][2],0)
    draw_corner(2,tc[2])
    cairo_line_to(cr,b.w,b.h-tc[3][2])
    draw_corner(3,tc[3])
    cairo_line_to(cr,tc[4][2],b.h)
    draw_corner(4,tc[4])
    cairo_line_to(cr,0,tc[1][2])
    draw_corner(1,tc[1])

    cairo_fill(cr)
    cairo_destroy(cr)
    end


    function display_text(t,b,te)

    -- if t.clear then
    -- cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)
    --else
    -- set_pattern(t,{0,0,0,b.height})
    --end

    cairo_save(cr)
    cairo_translate(cr,t.xt,t.yt)
    cairo_rotate(cr,t.angle*math.pi/180)

    local mx,my=0,0

    if t.h_align=="c" then
    mx=-te.width/2-te.x_bearing
    elseif t.h_align=="r" then
    mx=-te.width
    end
    if t.v_align=="m" then
    my=-te.height/2-te.y_bearing
    elseif t.v_align=="t" then
    my=-te.y_bearing
    end

    cairo_move_to(cr,mx,my)
    cairo_show_text(cr,t.text)
    cairo_stroke(cr)
    cairo_restore(cr)

    end



    function display_widget(t,bar)
    if t.draw_me==true then t.draw_me = nil end
    if t.draw_me~=nil and conky_parse(tostring(t.draw_me)) ~= "1" then return end

    --set default values if needed
    if t.style == nil then t.style = "circle" end
    if t.style ~= "text" then
    if t.name==nil and t.arg==nil then
    print ("No input values ... use parameters 'name' with 'arg' or only parameter 'arg' ")
    return
    end
    if t.max==nil then
    print ("No maximum value defined, use 'max'")
    return
    end
    end
    if t.name==nil then t.name="" end
    if t.arg==nil then t.arg="" end

    if t.text==nil then t.text="" end
    if t.xt==nil then t.xt = bar.width/2 end
    if t.yt==nil then t.yt = bar.height/2 end

    if t.angle==nil then t.angle=0 end
    if t.colour==nil then t.colour={{1,0xFFFFFF,1}} end
    if t.font_name==nil then t.font_name="Free Sans" end
    if t.font_size==nil then t.font_size=14 end
    if t.italic==nil then t.italic=false end
    if t.oblique==nil then t.oblique=false end
    if t.bold==nil then t.bold=false end
    if t.radius == nil then t.radius = 90 end
    --if t.radius > 100 then t.radius = 100 end
    if t.start==nil then t.start = 0 end
    if t.inverse==nil then t.inverse=false end
    if t.hand==nil then t.hand=0 end
    if t.thickness== nil then t.thickness = 2 end
    if t.draw_border==nil then t.draw_border=true end

    if t.width== nil then t.width = 100 end
    if t.height==nil then t.height=10 end
    if t.t_align== nil then t.t_align = "l" end
    if t.b_align== nil then t.b_align = "l" end
    if t.h_align==nil then t.h_align="l" end
    if t.v_align==nil then t.v_align="b" end



    if t.style=="text" and t.yt==nil then t.yt = conky_window.height/2 end

    if t.style=="bar" then
    if t.xw == nil then t.xw = bar.width/2 end
    if t.yw == nil then t.yw = bar.height*0.52 end
    if t.width == nil then t.width = 100 end
    if t.height == nil then t.height = 10 end
    end

    if t.style=="circle" then
    if t.yw == nil then t.yw = bar.height/2 end
    if t.xw == nil then t.xw = bar.width/2 end
    end

    if t.style=="graph" then
    if t.xw == nil then t.xw = bar.width/2 end
    if t.yw == nil then t.yw = bar.height*0.52 end
    if t.auto_scale== nil then t.auto_scale=false end
    if t.fill_graph== nil then t.fill_graph=false end
    end
    if t.xw == nil then t.xw = t.xt end
    if t.yw == nil then t.yw = t.yt end
    if t.yt == nil then t.yt = t.yw end
    -- if t.h_align==nil then t.h_align="l" end
    -- if t.v_align==nil then t.v_align="b" end
    --if t.reflection_alpha == nil then t.reflection_alpha=0 end
    --if t.reflection_length == nil then t.reflection_length=1 end
    --if t.reflection_scale == nil then t.reflection_scale=1 end
    --if t.skew_x==nil then t.skew_x=0 end
    --if t.skew_y==nil then t.skew_y=0 end

    local slant = CAIRO_FONT_SLANT_NORMAL
    local weight = CAIRO_FONT_WEIGHT_NORMAL
    if t.italic then slant = CAIRO_FONT_SLANT_ITALIC end
    if t.oblique then slant = CAIRO_FONT_SLANT_OBLIQUE end
    if t.bold then weight = CAIRO_FONT_WEIGHT_BOLD end



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

    cairo_select_font_face(cr, t.font_name, slant,weight)
    cairo_set_font_size(cr,t.font_size)
    local te=cairo_text_extents_t:create()
    tolua.takeownership(te)
    t.text=conky_parse(t.text)
    cairo_text_extents (cr,t.text,te)

    if t.clear then
    cairo_set_operator(cr,CAIRO_OPERATOR_CLEAR)
    else
    --set_pattern(t,{bar.height/2,0,-bar.height/2,0})
    set_pattern(t,{0,0,0,bar.height})
    end

    if t.style=="circle" then
    display_circle(t,bar,te)
    elseif t.style=="bar" then
    display_bar(t,bar,te)
    elseif t.style == "text" then
    display_text(t,bar, te)
    elseif t.style=="graph" then
    display_graph(t,bar, te)
    end

    end

    function get_value(t)
    local value = 0

    if t.name ~="" then
    value = tonumber(conky_parse(string.format('${%s %s}', t.name, t.arg)))
    --$to_bytes doesn't work when value has a decimal point,
    --https://garage.maemo.org/plugins/ggit/browse.php/?p=monky;a=commitdiff;h=174c256c81a027a2ea406f5f37dc036fac0a524b;hp=d75e2db5ed3fc788fb8514121f67316ac3e5f29f
    --http://sourceforge.net/tracker/index.php?func=detail&aid=3000865&group_id=143975&atid=757310
    --conky bug?
    --value = (conky_parse(string.format('${%s %s}', t.name, t.arg)))
    --if string.match(value,"%w") then
    -- value = conky_parse(string.format('${to_bytes %s}',value))
    --end
    else
    value = tonumber(t.arg)
    end

    if value==nil then value =0 end
    return value
    end


    function display_circle(t,b,te)

    if t.text ~= "" then display_text(t,b,te) end

    cairo_save(cr)
    cairo_translate(cr,t.xw,t.yw)
    cairo_rotate(cr,-math.pi/2)

    local r = b.height*t.radius/200
    cairo_set_line_width(cr,t.thickness)

    if t.xw == nil then
    t.xw = r+te.height+t.thickness
    else
    t.xw= t.xw-t.xt
    end

    if t.draw_border then
    cairo_arc(cr,0,0,r,0,2*math.pi)
    cairo_stroke(cr)
    end

    local pct = get_value(t)/t.max

    cairo_move_to(cr,0,0)

    cairo_rotate(cr,t.start*math.pi/180)
    if t.hand >0 then
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    if t.inverse then
    cairo_rotate(cr,-2*math.pi*pct)
    else
    cairo_rotate(cr,-2*math.pi*(1-pct))
    end
    cairo_line_to(cr,t.hand*r/100,0)
    cairo_stroke(cr)
    else
    if t.inverse then
    cairo_arc_negative(cr,0,0,r,0,-2*math.pi*pct)
    else
    cairo_arc(cr,0,0,r,0,-2*math.pi*(1-pct))
    end
    end
    cairo_fill(cr)
    cairo_restore(cr)
    end

    function display_bar(t,b,te)
    if t.text ~= "" then display_text(t,b,te) end

    cairo_translate(cr,t.xw,t.yw)
    cairo_save(cr)

    cairo_set_line_width(cr,t.thickness)
    if t.draw_border then
    cairo_rectangle(cr,0,0,t.width,t.height)
    cairo_stroke(cr)
    end
    local pct = get_value(t)/t.max
    cairo_move_to(cr,0,0)

    if t.inverse then
    cairo_rectangle(cr,t.width*(1-pct),0,t.width-t.width*(1-pct),t.height)
    else
    cairo_rectangle(cr,0,0,t.width*pct,t.height)
    end

    cairo_fill(cr)
    cairo_restore(cr)

    end

    function display_graph(t,b,te)
    if t.text ~= "" then display_text(t,b,te) end

    cairo_translate(cr,t.xw,t.yw)
    cairo_save(cr)

    cairo_set_line_width(cr,t.thickness)
    if t.draw_border then
    cairo_rectangle(cr,0,0,t.width,t.height)
    cairo_stroke(cr)
    end

    local pct = get_value(t)/t.max

    for i=2,t.width do
    graphs[t.number][i-1]=graphs[t.number][i]
    end
    graphs[t.number][t.width]=get_value(t)

    local automax=0
    if t.auto_scale then
    for i=1,t.width do
    automax = math.max (automax,graphs[t.number][i])
    end
    else
    automax=t.max
    end

    for i=1,t.width do
    if t.inverse then
    cairo_line_to(cr, i, (automax-graphs[t.number][t.width-i+1])/automax*t.height)
    else
    cairo_line_to(cr, i, (automax-graphs[t.number][i])/automax*t.height)
    end
    end
    if t.fill_graph then
    cairo_line_to(cr,t.width,t.height)
    cairo_line_to(cr,0,t.height)
    cairo_close_path(cr)
    cairo_fill(cr)
    else
    cairo_stroke(cr)
    end

    cairo_restore(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, 4 de Outubro 2011, 15:51

:OK: VARANDA :OK:

  • Sistema Operativo: Ubuntu 11.04 (Natty Narwhal)
  • Tema: iGrey
  • Ícones: NafDesk Icons
  • Wallpaper: http://img101.imageshack.us/img101/1619 ... 008356.jpg
  • AWN;
  • Covergloobus: Big Button;
  • CONKY;
    conkyrc
    Spoiler:
    use_xft yes

    # Xft font when Xft is enabled
    #xftfont unDotum:size=9
    #xftfont Andale Mono-9
    xftfont Clean-8
    #xftfont cubicfive10:pixelsize=8
    #xftfont squaredance10:pixelsize=14
    #xftfont swf!t_v02:pixelsize=10

    xftfont Monospace-8

    #xftfont Sans-8

    # Text alpha when using Xft
    xftalpha 1
    mail_spool $MAIL

    # Update interval in seconds
    update_interval 1.0

    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

    # Minimum size of text area
    minimum_size 300 5
    maximum_width 460


    # Draw shades?
    draw_shades no

    # Draw outlines?
    # amplifies text
    draw_outline no

    # Draw borders around text
    draw_borders no

    # Stippled borders?
    stippled_borders 3


    #draw_graph_borders
    draw_graph_borders no

    # border widt5
    border_width 6

    # Default colors and also border colors, grey90 == white
    default_color white
    default_shade_color black
    default_outline_color black

    # Text alignment, other possible values are commented
    alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right

    # Gap between borders of screen and text
    gap_x 530
    gap_y 135

    # Subtract file system buffers from used memory?
    no_buffers yes

    # set to yes if you want all text to be in uppercase
    uppercase no

    # время работы программы до её выключения
    # установите 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


    default_color DCDCDC #Gainsboro
    color0 7FFFD4 #Aquamarine
    color1 CD5C5C #IndianRed #00CED1 DarkTurquoise #FFA07A LightSalmon #00FFFF Cyan
    color2 FF8C00 #Darkorange #D2691E #Chocolate
    color3 7FFF00 #Chartreuse
    color4 778899 #LightSlateGrey
    color5 FFDEAD #NavajoWhite
    color6 00BFFF #DeepSkyBlue
    # colours below used by colorize script
    color7 48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red

    #Температура:${weather http://weather.noaa.gov/pub/data/observ ... /stations/ SBSP temperature}°C$font
    #Ветер: ${weather http://weather.noaa.gov/pub/data/observ ... /stations/ UKDR wind_dir} ${lua_parse conky_wind_speed UKDR} м/сек
    #${lua_parse conky_show_icon UKDR }
    #${font}Давление: ${lua_parse conky_pressure UKDR } мм/рт.ст
    #Влажность: ${weather http://weather.noaa.gov/pub/data/observ ... /stations/ UKDR humidity} % ${font}
    #${execi 1800 /home/nick/.scripts/weather/weather.sh UPXX0049}
    #lua_load /home/nick/.scripts/conky/weather_icons.lua

    #lua_load /home/nick/.scripts/conky/pressure.lua

    #lua_load /home/nick/.scripts/conky/wind_speed.lua
    TEXT




    ${voffset -50}${execpi 1800 conkyForecast --location=BRXX0232 --template=/home/roger/conky11/weather.template}
    ${font}${color1}${alignc}${font :bold: size=38}${time %B}

    ${alignc} ${font :bold: size=16}${time %A}
    ${alignc}${font Archangelsk:bold:size=20}${time %H:%M:%S}

    weather.template
    Spoiler:
    ${image [--datatype=WI] -p 0,0 -s 80x80}${image [--datatype=MI] -p 12,100 -s 50x50}
    ${voffset 65}${goto 25}${color1}[--datatype=HT]
    ${goto 235}${voffset -75}${color1}${font ConkyWindNESW:normal:size=45}[--datatype=BS]${font}
    ${voffset -75}${goto 120}${color1}${font Vera Sans Mono:style=Bold:size=11}[--datatype=CT]${font}
    ${voffset 10}${goto 120}${color2}Visibilidade: ${color1}[--datatype=VI]
    ${goto 120}${color2}Umidade: ${color1}[--datatype=HM]
    ${goto 120}${color2}Vento: ${color1}[--datatype=WS]

    ${goto 120}${color2}Nascente | Poente: ${color1}[--datatype=SR] | [--datatype=SS] | [--datatype=DL]
    ${goto 120}${color2}Pressão: ${color1}[--datatype=BR] - [--datatype=BD]
    ${goto 120}${color2}Lua: ${color1}[--datatype=MP]
    ${color2}${font Vera Sans Mono:size=7}${goto 120}Atualizado: [--datatype=LU]${font}
    ${voffset 5}${goto 124}[--datatype=DW --startday=1 --shortweekday]${goto 172}[--datatype=DW --startday=2 --shortweekday]${goto 220}[--datatype=DW --startday=3 --shortweekday]
    ${image [--datatype=WI --startday=1] -p 108,130 -s 40x40}${image [--datatype=WI --startday=2] -p 156,130 -s 40x40}${image [--datatype=WI --startday=3] -p 204,130 -s 40x40}


    ${voffset 10}${goto 119}${color1}[--datatype=LT --startday=1 --hideunits --centeredwidth=3]/[--datatype=HT --startday=1 --hideunits --centeredwidth=3]${goto 167}[--datatype=LT --startday=2 --hideunits --centeredwidth=3]/[--datatype=HT --startday=2 --hideunits --centeredwidth=3]${goto 215}[--datatype=LT --startday=3 --hideunits --centeredwidth=3]/[--datatype=HT --startday=3 --hideunits --centeredwidth=3]

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

AnteriorPróximo

Voltar para Temas do Ubuntu

Quem está online

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

cron