Bem-vindo: Qua, 27 de Novembro 2024, 16:53 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 anna kamilla » Dom, 14 de Agosto 2011, 21:43

xfce 4.8
Imagem

  • Sistema Operativo:ubuntu lucid lynx
  • Tema:albatross + emerald graymantary bird
  • Ícones:elementary xubuntu
  • Wallpaper: do xfce msm
  • Outros: avant window navigator azul + amsn skin windows live messenger
Avatar do usuário
anna kamilla
 
Mensagens: 48
Registrado em: 12 Junho, 2011

Re: Mostre o seu Desktop!

Mensagempor matheus » Seg, 15 de Agosto 2011, 14:49

rrack » Qua Ago 10, 2011 8:43 am escreveu:
Observando

Imagem


Tens o código Conky??
Avatar do usuário
matheus
 
Mensagens: 21
Registrado em: 18 Junho, 2011

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Seg, 15 de Agosto 2011, 23:45

Clockbuntu

Imagem

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, 16 de Agosto 2011, 0:11

Mulher Gato

Imagem

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 ZonZor » Ter, 16 de Agosto 2011, 3:33

Rrack gostei do Clockbuntu! Como posso ter esse relógio no topo da imagem?
Avatar do usuário
ZonZor
 
Mensagens: 105
Registrado em: 10 Julho, 2011

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 16 de Agosto 2011, 15:08

Mecanical

Imagem
Imagem

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, 16 de Agosto 2011, 15:33

matheus » Seg Ago 15, 2011 11:49 am escreveu:
rrack » Qua Ago 10, 2011 8:43 am escreveu:
Observando

Imagem


Tens o código Conky??


conky.sh
Spoiler:
#! /bin/bash
sleep 30
conky -c ~/.conkyij/conkyrc_clock &
sleep 5
conky -c ~/.conkyij/conkyrc_calendar &
sleep 5
conky -c ~/.conkyij/conkyrc &
sleep 10
conky -c ~/CBL/conkyrc &
exit 0


conkyrc
Spoiler:
#==============================================================================
# conkyrc_sysmon
#
# by mjjohanson based on work from SLK
#
#==============================================================================

background yes
update_interval 2

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 44
gap_y 390
minimum_size 212 240
maximum_width 212

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 FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 666666

lua_load ~/.conkyij/conky_sysmon.lua
lua_draw_hook_post main

TEXT

${voffset -2}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}board ${hwmon 0 temp 1}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}video1 ${nvidia temp}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}/dev/sda ${lua_parse resolve_hddtemp /dev/sda}

${voffset -12}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}temperature
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}core0${alignr}${hwmon 1 temp 1}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}core1${alignr}${hwmon 2 temp 1}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}core2${alignr}${hwmon 3 temp 1}


${voffset -12}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}memory ${mem}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}cycles ${cpu cpu0}%
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}loadavg 1 min ${loadavg 1}

${voffset -12}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}resources
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}uptime${alignr}${uptime}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}processes${alignr}${processes}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}running processes${alignr} ${running_processes}
#floating space above to resolve single digit bug
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}entropy ${alignr}${entropy_avail}

${voffset -12}
${goto 90}${downspeedgraph eth0 30,130 222222 aaaaaa -l}${voffset -39}
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}download ${downspeedf eth0} KiB/s
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}upload ${upspeedf eth0}KiB/s
${goto 90}${font Ubuntu:size=5,weight:bold}${color2}ethernet ${addr eth0}

${voffset -12}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}network/storage
${goto 90}${diskiograph 30,130 222222 aaaaaa}${voffset -42}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2} /home${alignr}${fs_used /home} of ${fs_size /home}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2} /root${alignr}${fs_used /} of ${fs_size /}
${goto 90}${font Ubuntu:size=7,weight:normal}${color2} /var${alignr}${fs_used /} of ${fs_size /}


conkyrc_clock
Spoiler:
#==============================================================================
# conkyrc_clock
#
# by mjjohanson based on work from SLK
#
#==============================================================================

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 10
gap_y 30
minimum_size 220 200
maximum_width 228

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 ubuntu:size=8
xftalpha 0.5
uppercase 20

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 666666
color5 444444

lua_load ~/.conkyij/conky_clock.lua
lua_draw_hook_post main

TEXT
#${voffset 48}
#${color3}${font ubuntu:size=22}${alignc}${time %e}
#${color2}${font ubuntu:size=12}${voffset -12}$alignc${time %B}
#${color5}${font ubuntu:size=22}${voffset -2}$alignc${time %Y}
#${color1}${font ubuntu:size=10}${voffset -38}$alignc${time %A}


conky_sysmon.lua
Spoiler:
--==============================================================================
-- conky_sysmon.lua
--
-- by mjjohanson based on work from SLK and londonali
--==============================================================================

require 'cairo'

--------------------------------------------------------------------------------
-- gauge DATA
gauge = {
{
name='hwmon', arg='0 temp 1', max_value=60,
x=85, y=68,
graph_radius=34,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=3.0, graph_unit_thickness=3.0,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=1,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=40,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
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='nvidia', arg='temp', max_value=80,
x=85, y=68,
graph_radius=26,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=2.25, graph_unit_thickness=2.25,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=1,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=24,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
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='hddtemp', arg='/dev/sda', max_value=60,
x=85, y=68,
graph_radius=18,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=3.0, graph_unit_thickness=3.0,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=1,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
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='memperc', arg='', max_value=100,
x=85, y=168,
graph_radius=34,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=1.8, graph_unit_thickness=1.8,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=1,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=40,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
graduation_radius=34,
graduation_thickness=6, graduation_mark_thickness=2,
graduation_unit_angle=15,
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='cpu', arg='cpu0', max_value=100,
x=85, y=168,
graph_radius=26,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=1.8, graph_unit_thickness=1.8,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=0,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=18,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
graduation_radius=23,
graduation_thickness=0, 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='loadavg', arg='1', max_value=18,
x=85, y=168,
graph_radius=18,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=10, graph_unit_thickness=10,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=1,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
graduation_radius=23,
graduation_thickness=0, 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='downspeedf', arg='eth0', max_value=400,
x=85, y=268,
graph_radius=34,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=0.45, graph_unit_thickness=0.45,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=0,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
graduation_radius=23,
graduation_thickness=0, 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='upspeedf', arg='eth0', max_value=40,
x=85, y=268,
graph_radius=26,
graph_thickness=6,
graph_start_angle=180,
graph_unit_angle=4.5, graph_unit_thickness=4.5,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
gradient_display=0,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.0,
graduation_radius=23,
graduation_thickness=0, 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_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 gradient = data['gradient_display']
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)
if gradient > 0 then
if value / max_value > 0.6 then graph_fg_colour = 0xFFFF66 end
if value / max_value > 0.7 then graph_fg_colour = 0xFFCC33 end
if value / max_value > 0.8 then graph_fg_colour = 0xFF9900 end
if value / max_value > 0.9 then graph_fg_colour = 0xFF3300 end
end
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_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)
if data['name'] == "hddtemp" then
if str=="N/A" then
str=lasthddtemp
else
lasthddtemp=str
end
end
value = tonumber(str)
if value == nil then value = 0 end
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)

go_gauge_rings(display)

end

-------------------------------------------------------------------------------
-- resolve_hddtemp
-- displays old hddtemp value when new value is N/A
--
function conky_resolve_hddtemp(device)
local str, value = '', 0
str = string.format('${%s %s}', 'hddtemp', device)
str = conky_parse(str)
if str == "N/A" then
str = lasthddtemp
else
lasthddtemp = str
end
value = tonumber(str)
if value == nil then value = 0 end
return value

end


conkyrc_calendar
Spoiler:
#==============================================================================
# conkyrc_calendar
#
# by mjjohanson based on work by Tirabassi
#
#==============================================================================

background yes
update_interval 2000

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 38
gap_y 240
minimum_size 180 40
maximum_width 180

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 1
border_outer_margin 1
alignment tr

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont monospace:size=8

xftalpha 0.5
uppercase 20

default_color 505050 #days
color1 bbbbbb #current month
color2 00732A #today
color3 888888 #heading
color4 666666
color5 444444

lua_load ~/.conkyij/conky_calendar.lua


TEXT
${lua_parse calendar}


conky_clock.lua
Spoiler:
--==============================================================================
-- conky_clock.lua
--
-- by mjjohanson based on work from SLK and londonali
--
--==============================================================================

require 'cairo'

--------------------------------------------------------------------------------
-- clock DATA
-- HOURS
clock_h = {
{
name='time', arg='%H', max_value=12,
x=114, y=110,
graph_radius=72,
graph_thickness=3,
graph_unit_angle=30, graph_unit_thickness=30,
graph_bg_colour=0xffffff, graph_bg_alpha=0.0,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=48,
txt_weight=1, txt_size=14.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.6,
graduation_radius=72,
graduation_thickness=6, graduation_mark_thickness=2,
graduation_unit_angle=30,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
hand_start=-10, hand_end=40,
hand_thickness=6, hand_line_cap=1,
hand_colour=0xffffff, hand_alpha=0.4,
hand_proportion='hours',
},
}
-- MINUTES
clock_m = {
{
name='time', arg='%M', max_value=60,
x=114, y=110,
graph_radius=78,
graph_thickness=2,
graph_unit_angle=6, graph_unit_thickness=5,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=90,
txt_weight=0, txt_size=12.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.6,
graduation_radius=78,
graduation_thickness=0, graduation_mark_thickness=2,
graduation_unit_angle=30,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.8,
hand_start=-10, hand_end=76,
hand_thickness=3, hand_line_cap=2,
hand_colour=0xffffff, hand_alpha=0.4,
hand_proportion='minutes',
},
}
-- SECONDS
clock_s = {
{
name='time', arg='%S', max_value=60,
x=114, y=110,
graph_radius=66,
graph_thickness=2,
graph_unit_angle=6, graph_unit_thickness=1,
graph_bg_colour=0xffffff, graph_bg_alpha=0.0,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=59,
txt_weight=1, txt_size=11.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.3,
graduation_radius=0,
graduation_thickness=0, graduation_mark_thickness=0,
graduation_unit_angle=0,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.0,
hand_start=-20, hand_end=50,
hand_thickness=1, hand_line_cap=2,
hand_colour=0xffffff, hand_alpha=0.4,
hand_proportion='',
},
}
-- UTC HOURS
clock_u = {
{
name='utime', arg='%H', max_value=12,
x=114, y=110,
graph_radius=36,
graph_thickness=1,
graph_unit_angle=30, graph_unit_thickness=30,
graph_bg_colour=0xffffff, graph_bg_alpha=0.0,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=42,
txt_weight=1, txt_size=12.0,
txt_fg_colour=0xaaddaa, txt_fg_alpha=0.6,
graduation_radius=72,
graduation_thickness=0, graduation_mark_thickness=0,
graduation_unit_angle=30,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
hand_start=0, hand_end=30,
hand_thickness=6, hand_line_cap=1,
hand_colour=0xaaffaa, hand_alpha=0.3,
hand_proportion='hours',
},
}

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

-- hands
local hand_start, hand_end = data['hand_start'], data['hand_end']
local hand_thickness = data['hand_thickness']
local hand_colour, hand_alpha = data['hand_colour'], data['hand_alpha']
local hand_line_cap = data['hand_line_cap']
local hand_proportion = data['hand_proportion']
if hand_proportion == 'hours' then
value = value + (tonumber(conky_parse('${time %M}') / 60))
end
if hand_proportion == 'minutes' then
value = value + (tonumber(conky_parse('${time %S}') / 60))
end
local xs = x + (hand_start * math.sin(2*math.pi*value/max_value))
local ys = y - (hand_start * math.cos(2*math.pi*value/max_value))
local xe = x + (hand_end * math.sin(2*math.pi*value/max_value))
local ye = y - (hand_end * math.cos(2*math.pi*value/max_value))
cairo_move_to (display, xs, ys);
cairo_line_to (display, xe, ye);
cairo_set_line_width(display, hand_thickness);
cairo_set_line_cap(display, hand_line_cap);
cairo_set_source_rgba(display,rgb_to_r_g_b(hand_colour, hand_alpha));
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
for i in pairs(clock_u) do
load_clock_rings(display, clock_u[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)
end

end


conky_calendar.lua
Spoiler:
-- calendar ====================================================================

-- Conky calendar
--
-- By mjjohanson based on work by Cesare Tirabassi and others

--[[ calendar is arrayed thus in a block of nine lines with the current date
in the fifth line

current day is 13 March
S M T W T F S
February 13 14 15 16 17 18 19
20 21 22 23 24 25 26
March 27 28 1 2 3 4 5 (current month in separate color)
6 7 8 9 10 11 12
|March| 13 14|15|16 17 18 19 (March and 15 are highlighted)
20 21 22 23 24 25 26
April 27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16 (previous and next month in separate color)

The month appears in the left column when the first day of the month
is in the line.
]]


-- Return a calendar for display
function conky_calendar()

if conky_window == nil then return end

-- Some useful arrays
local day_per_month = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local name_of_month = { " January ", " February ", " March ", " April ",
" May ", " June ", " July ", " August ",
"September ", " October ", " November ", " December ", " January " }

-- Retrieve current date information
local dtable = os.date("*t")
local to_year = dtable.year
local to_month = dtable.month
local to_day = dtable.day
local to_wday = dtable.wday

-- Adjust number of days for February if it is a leap year
if (to_year % 4 == 0) and (to_year % 100 ~= 0) or (to_year % 400 == 0) then
day_per_month[2] = day_per_month[2] + 1
end

-- Determine start date (upper left)
local day = to_day - to_wday - 27
local month = to_month
if day < 1 then
month = to_month - 1
if month == 0 then month = 12 end
day = day_per_month[month] + day
end
if day < 1 then
month = to_month - 2
if month == 0 then month = 12 end
day = day_per_month[month] + day
end

-- Format and print header
local calendar = "\n ${color2}" .. to_year .. " ${color3}Do Se Te Qu Qu Se Sa${color}\n"

-- Build first four weeks
for i = 1, 4, 1 do
if i == 1 then
if day <= day_per_month[month] - 6 then
if day == 1 then
if month == to_month then
calendar = calendar .. "${color1}" .. name_of_month[month]
else
calendar = calendar .. "${color}" .. name_of_month[month]
end
else
if month == to_month then
calendar = calendar .. "${color1}" .. name_of_month[month]
else
calendar = calendar .. "${color}" .. name_of_month[month]
end
end
else
if name_of_month[month + 1] == name_of_month[to_month] then
calendar = calendar .. "${color1}" .. name_of_month[month + 1] .. "${color}"
else
calendar = calendar .. name_of_month[month + 1]
end
end
else
if day <= day_per_month[month] - 6 then
if day == 1 then
if month == to_month then
calendar = calendar .. "${color1}" .. name_of_month[month]
else
calendar = calendar .. "${color}" .. name_of_month[month]
end
else
calendar = calendar .. " "
end
else
calendar = calendar .. "${color1}" .. name_of_month[month + 1] .. "${color}"
end
end
for j = 1, 7, 1 do
if day < 10 then
calendar = calendar .. " "
end
calendar = calendar .. day .. " "
day = day + 1
if day > day_per_month[month] then
day = 1
month = month + 1
if month > 12 then month = 1 end
if month == to_month then calendar = calendar .. "${color1}" end
end
end
calendar = calendar .. "\n"
end

-- Build current week
calendar = calendar .. "${color2}".. name_of_month[to_month] .. "${color}"
if month == to_month then calendar = calendar .. "${color1}" end
for j = 1, 7, 1 do
if day < 10 then
calendar = calendar .. " "
end
if day == to_day then
calendar = calendar .. "${color2}"
calendar = calendar .. day .. " "
calendar = calendar .. "${color1}"
else
calendar = calendar .. day .. " "
end
day = day + 1
if day > day_per_month[month] then
day = 1
month = month + 1
if month > 12 then month = 1 end
if month == to_month then
calendar = calendar .. "${color1}"
else
calendar = calendar .. "${color}"
end
end
end
calendar = calendar .. "\n"

-- Build last four weeks
for i = 1, 4, 1 do
if day <= day_per_month[month] - 6 then
if day == 1 then
calendar = calendar .. "${color}" .. name_of_month[month]
else
if i == 1 and day < 7 and month ~= to_month then
calendar = calendar .. name_of_month[month]
else
calendar = calendar .. " "
end
end
else
if month == to_month then
calendar = calendar .. "${color}" .. name_of_month[month +1] .. "${color1}"
else
calendar = calendar .. name_of_month[month +1]
end
end
for j = 1, 7, 1 do
if day < 10 then calendar = calendar .. " " end
calendar = calendar .. day .. " "
day = day + 1
if day > day_per_month[month] then
day = 1
month = month + 1
if month > 12 then month = 1 end
calendar = calendar .. "${color}"
end
end
calendar = calendar .. "\n"
end

-- Return the calendar

return calendar

end


conkyrc (este conky esta na pasta CBL atenção)
Spoiler:
# conky configuration

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes
xftfont HandelGotDLig:size=9
xftalpha 0.8

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 0

# border width
border_width 1

# Default colors and also border colors
default_color F8A65C #Orange
default_shade_color black
default_outline_color black

# Minimum size of text area
minimum_size 250 500
maximum_width 250

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

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 260

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

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

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

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

# gris
color1 696969 #Gris

color3 00732A #Blanc

color2 00732A

text_buffer_size 4096
max_specials 1024



TEXT
${color2}${execpi 900 conkyForecast -l BRXX0232 --errorlog=/tmp/conky_forecast.log -t /home/roger/CBL/conky_forecast_template}


conky_forecast_template
Spoiler:
${voffset 20}${color2}${font HandelGotDLig:size=8}[--datatype=CN], [--datatype=CO] (Observatorio : [--datatype=OB])
${font HandelGotDLig:size=6}Última atualização : [--datatype=LU]
${color2}${font HandelGotDLig:size=20}[--datatype=HT]
${voffset 10}${font HandelGotDLig:size=11}[--datatype=CT]${color2}
${font HandelGotDLig:size=7}Indice UV : [--datatype=UI] - [--datatype=UT]
Humidade : [--datatype=HM]
Ponto de orvalho : [--datatype=DP]
Precipitação : [--datatype=PC --startday=0]
Visibilidade : [--datatype=VI]
Vento : [--datatype=WS] - [--datatype=WS --beaufort] / [--datatype=WD]
Pressão : [--datatype=BR] - [--datatype=BD]
Vistoria : [--datatype=SR]
Couché : [--datatype=SS]
Lua : [--datatype=MP]
${image [--datatype=WI] -p 60,0 -s 165x165}
${image [--datatype=MI] -p 140,160 -s 32x32}

${voffset 20}${color}${font HandelGotDLig:size=9}[--datatype=DW --startday=1]${color2}
${color2}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]
${color1}[--datatype=CT --startday=1]
${voffset 70}${color}${font HandelGotDLig:size=9}[--datatype=DW --startday=2]${color2}
${color2}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]
${color1}[--datatype=CT --startday=2]
${voffset 70}${color}${font HandelGotDLig:size=9}[--datatype=DW --startday=3]${color2}
${color2}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]
${color1}[--datatype=CT --startday=3]
${voffset 70}${color}${font HandelGotDLig:size=9}[--datatype=DW --startday=4]${color2}
${color2}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
${color1}[--datatype=CT --startday=4]
${image [--datatype=WI --startday=1] -p 120,280 -s 76x76}
${image [--datatype=WI --startday=2] -p 120,400 -s 76x76}
${image [--datatype=WI --startday=3] -p 120,520 -s 76x76}
${image [--datatype=WI --startday=4] -p 120,625 -s 76x76}

:ubuntued:

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, 16 de Agosto 2011, 15:43

ZonZor » Ter Ago 16, 2011 12:33 am escreveu:Rrack gostei do Clockbuntu! Como posso ter esse relógio no topo da imagem?


Esse relógio é o cairo clock e o nome dessa skin é clickclock não consegui achar o link dela pois ando meio sem tempo mas se quiser me manda um e-mail que te mando o arquivo tar. :ubuntued:
Obs: achei agora aqui esta o link http://gnome-look.org/content/show.php/Click+Clock?content=122269 vc tem que instalar o cairo clock e depois baixar a skin . não sei versão que vc esta usando mas aqui vc tem um mini tutorial como instalar o cairo clock http://linuxhub.net/2010/03/how-to-install-cairo-dock-in-ubuntu-10-04-lucid-lynx/
Editado pela última vez por Roger Braga em Ter, 16 de Agosto 2011, 20:33, 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 Vinicius Barth » Ter, 16 de Agosto 2011, 17:29

Imagem
Imagem

Colorado

  • Sistema Operativo: Linux Mint 10
  • Tema: Orta
  • Ícones: Faenza
  • Wallpaper: Colorado http://www.internacional.com.br
  • Outros:conky Gotham modificado, conkyforecast, awn, Emerald

Vinicius Barth
 
Mensagens: 1
Registrado em: 16 Agosto, 2011

Re: Mostre o seu Desktop!

Mensagempor Roger Braga » Ter, 16 de Agosto 2011, 21:12

Zyper

Imagem

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: Nenhum usuário registrado e 14 visitantes

cron