Ambientes de trabalho dos leitores #91
Neste 91º artigo da Série de Ambientes de Trabalho dos Leitores do Ubuntued apresentamos-lhe 17 ambientes trabalho submetidos pelos utilizadores do Fórum do Ubuntued.

Neste conjunto de ambientes, as cores azuis dominam, bem como as configurações do Conky. Elegância e simplicidade são também um dos aspetos da maioria dos ambientes apresentados nesta 91º semana desta série de artigos.

 

Como funciona esta série?

Esta série só existe porque os leitores do Ubuntued participam de forma ativa para a manter ao mais alto nível! Por esse simples motivo a sua participação é muito importante! Como você pode participar? Muito simples, visite esta página que disponibiliza uma aplicação (ver imagem abaixo) para agilizar o processo de partilha! E depois partilhe o seu visual aqui:

Fórum do Ubuntued: Mostre o seu Desktop!

Ubuntued-Deskmod

Como está feito este artigo?

Como é já comum nos outros artigos desta série, cada visual apresentado neste artigo é da responsabilidade do seu Autor. Quer isto dizer que, se tem alguma questão sobre esse visual, o melhor será você questionar diretamente o Autor ou então em resposta ao post que foi originalmente apresentado por esse Autor.

Para esse efeito, em cada um dos visuais apresentados neste artigo, você tem a oportunidade de ver a descrição redigida pelos Autores, o link para o local original desse ambiente (que você pode e deve aceder para questionar algo), link direto para a página do utilizador para o questionar diretamente. Relativamente às imagens tridimensionais apresentadas em algumas das participações, se você quiser ver com melhor definição os screenshots originais deverá visitar o link do local original, intitulado: “Página deste ambiente”.

Basic?

  • Página do Ambiente de Trabalho
  • Autor: Luis Cardoso
  • Sistema Operativo: Ubuntu 12.04.2 LTS
  • Tema: zoncolorXtra-Redmond
  • Ambiente Gráfico: Openbox
  • Ícones: zoncolorSky
  • Wallpaper: Horseshoe Bend Sunset.jpg
  • Outros:
    • Volti;
    • Nitrogen;
    • Xscreensaver;
    • Xfce4 Power Manager;
    • Synapse;
    • Openbox: zoncolorXtra-Redmond;
    • Compton: compton -cC -r 7 -l -11 -t -5 -G -b –shadow-exclude “n:e:synapse”;
    • Ficheiro “.conkyrc4b”:
      Código: Selecionar todos
      alignment tr
      background no
      border_width 1
      cpu_avg_samples 2
      net_avg_samples 2

      default_color 1E395B
      default_outline_color 1E395B
      default_shade_color 1E395B
      color1 DFEAF5
      color2 1E395B#A9C1DA

      draw_borders no
      draw_graph_borders yes
      draw_outline no
      draw_shades no

      use_xft yes
      xftfont Sans:size=7

      gap_x 5
      gap_y 0
      minimum_size 5 5

      no_buffers yes
      out_to_console no
      out_to_stderr no
      extra_newline no

      own_window_class Conky
      own_window yes
      own_window_transparent no
      own_window_type desktop
      own_window_hints undecorated,below,skip_taskbar,skip_pager
      #own_window_argb_visual yes
      #own_window_argb_value 100
      own_window_colour B9D1EA

      stippled_borders 0
      update_interval 1.0
      uppercase no
      use_spacer none
      show_graph_scale no
      show_graph_range no

      double_buffer yes

      TEXT

      ${font Sans:style=Bold:size=7}PROCESSORS$font
      ${cpugraph cpu0 25, 200 1E395B DFEAF5 -t}$color
      CPU1 $alignc ${execi 8 sensors | grep ‘Core 0:’ | cut -c16-22 | sed ‘/^$/d’} $alignr ${cpu cpu1}%
      ${color2}${cpubar cpu1}$color

      ${font Sans:style=Bold:size=7}MEMORY$font
      RAM $alignc $mem / $memmax $alignr $memperc%
      ${color2}$membar$color
      SWAP $alignc $swap / $swapmax $alignr $swapperc%
      ${color2}$swapbar$color

      ${color1}${hr 3}$color

      ${font Sans:style=Bold:size=7}TOP PROCESSES (CPU)$font
      ${top name 1}${alignr}${top cpu 1}%
      ${top name 2}${alignr}${top cpu 2}%
      ${top name 3}${alignr}${top cpu 3}%
      ${top name 4}${alignr}${top cpu 4}%
      ${top name 5}${alignr}${top cpu 5}%

      ${font Sans:style=Bold:size=7}TOP PROCESSES (MEM)$font
      ${top_mem name 1}${alignr}${top mem 1}%
      ${top_mem name 2}${alignr}${top mem 2}%
      ${top_mem name 3}${alignr}${top mem 3}%
      ${top_mem name 4}${alignr}${top mem 4}%
      ${top_mem name 5}${alignr}${top mem 5}%

      ${color1}${hr 3}$color

      ${font Sans:style=Bold:size=7}NETWORK$font
      ${downspeedgraph wlan0 25, 200 1E395B DFEAF5 -t}$color
      DL: ${downspeed wlan0} $alignr total: ${totaldown wlan0}
      ${upspeedgraph wlan0 25, 200 1E395B DFEAF5 -t}$color
      UL: ${upspeed wlan0} $alignr total: ${totalup wlan0}

      ${color1}${hr 3}$color

      ${font Sans:style=Bold:size=7}FILE SYSTEM$font
      / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
      ${color2}${fs_bar 6 /}$color
      /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
      ${color2}${fs_bar 6 /home}$color

      ${color1}${hr 3}$color

      ${color2}${font Sans:size=60}${alignc}${time %d}$font$color
      ${font Sans:size=10}${alignc}${time %B}, ${time %Y}$font

       

    • Ficheiro “redmond.tint2rc”:
      Código: Selecionar todos
      # Tint2 config file
      # Generated by tintwizard (http://code.google.com/p/tintwizard/)
      # For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

      # To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc

      # Background definitions
      # ID 1
      rounded = 0
      border_width = 1
      background_color = #B9D1EA 100
      border_color = #A9C1DA 100

      # ID 2
      rounded = 5
      border_width = 1
      background_color = #DFEAF5 100
      border_color = #A9C1DA 100

      # ID 3
      rounded = 5
      border_width = 1
      background_color = #FF8700 100
      border_color = #A9C1DA 100

      # Panel
      panel_monitor = all
      panel_position = bottom left horizontal
      panel_size = 0 40
      panel_margin = 0 0
      panel_padding = 0 0 0
      panel_dock = 0
      wm_menu = 0
      panel_layer = top
      panel_background_id = 1

      # Panel Autohide
      autohide = 0
      autohide_show_timeout = 0.0
      autohide_hide_timeout = 0.0
      autohide_height = 0
      strut_policy = follow_size

      # Taskbar
      taskbar_mode = single_desktop
      taskbar_padding = 3 0 0
      taskbar_background_id = 0
      #taskbar_active_background_id = 0

      # Tasks
      urgent_nb_of_blink = 7
      task_icon = 1
      task_text = 0
      task_centered = 1
      task_maximum_size = 64 32
      task_padding = 1 1
      task_background_id = 2
      task_active_background_id = 2
      task_urgent_background_id = 3
      task_iconified_background_id = 2

      # Task Icons
      task_icon_asb = 90 0 0
      task_active_icon_asb = 100 0 0
      task_urgent_icon_asb = 100 0 0
      task_iconified_icon_asb = 75 0 0

      # Fonts
      task_font = Sans 12
      task_font_color = #FFFFFF 100
      task_active_font_color = #FFFFFF 100
      task_urgent_font_color = #FFFFFF 100
      task_iconified_font_color = #FFFFFF 100
      font_shadow = 0

      # System Tray
      systray = 1
      systray_padding = 3 1 0
      systray_sort = ascending
      systray_background_id = 0
      systray_icon_size = 22
      systray_icon_asb = 100 0 0

      # Clock
      time1_format = %H:%M
      time1_font = Sans 8
      time2_format = %d-%m-%Y
      time2_font = Sans 8
      clock_font_color = #1E395B 100
      clock_tooltip = %A, %e %A %Y
      clock_padding = 0 0
      clock_background_id = 0

      # Tooltips
      tooltip = 0
      tooltip_padding = 0 0
      tooltip_show_timeout = 0
      tooltip_hide_timeout = 0
      tooltip_background_id = 0
      tooltip_font = Sans 12
      tooltip_font_color = #FFFFFF 100

      # Mouse
      mouse_middle = maximize_restore
      mouse_right = close
      mouse_scroll_up = toggle
      mouse_scroll_down = iconify

      # Battery
      battery = 0
      battery_low_status = 20
      battery_low_cmd = notify-send “battery low”
      battery_hide = 90
      bat1_font = Sans 12
      bat2_font = Sans 12
      battery_font_color = #FFFFFF 100
      battery_padding = 0 0
      battery_background_id = 0

      # End of config

width="312"width="312"

Into The Space

width="625"

Caravela Pirata

width="407"

Blue Pirates

width="312"width="312"

Bluntued

width="625"

Azul-X

width="625"

From Dust…

width="312"width="312"

Circuito

width="625"

Zippo

width="407"

Next Humanity

width="625"

Next Future…

  • Página do Ambiente de Trabalho
  • Autor: Luis Cardoso
  • Sistema Operativo: Ubuntu 11.10 (Oneiric Ocelot)
  • Tema: Dark Black
  • Ambiente Gráfico: My Gnome
  • Ícones: Awoken
  • Wallpaper: http://i.imgur.com/P7hqIUd.png
  • Outros:
    • AWN: Floaty e Flat;
    • Screenlet – FolderView;
    • Indicador: Dropbox;
    • Indicador: Ubuntued Forum Indicator;
    • Wallpaper original: Next Humanity by Claudio Novais;
    • Ficheiro “.conkyrc_nt1″:
      Código: Selecionar todos
      background no
      use_xft yes
      xftfont URW Gothic L:size=8
      xftalpha 1
      update_interval 1.0
      total_run_times 0
      own_window yes
      own_window_transparent yes
      #own_window_type override
      own_window_hints undecorated,below,skip_taskbar,skip_pager
      #own_window_colour 7c
      #own_window_argb_visual yes
      #own_window_argb_value 100
      double_buffer yes
      minimum_size 5 5
      maximum_width 200
      draw_shades no
      draw_outline no
      draw_borders no
      draw_graph_borders yes
      #stippled_borders yes
      default_color 3c3c3c
      default_shade_color 4c4c4c
      default_outline_color abadb0
      alignment tm
      gap_x 0
      gap_y 120
      no_buffers yes
      uppercase no
      cpu_avg_samples 2
      #override_utf8_locale no

      color1 000

      TEXT
      ${font URW Gothic L:style=Demi:size=8}PROCESSORS$font
      ${cpugraph cpu0 25, 200 000 000 -t}
      CPU1 $alignc ${execi 8 sensors | grep ‘Core 0:’ | cut -c16-22 | sed ‘/^$/d’} $alignr ${cpu cpu1}%
      ${cpubar cpu1}
      CPU2 $alignc ${execi 8 sensors | grep ‘Core 2:’ | cut -c16-22 | sed ‘/^$/d’} $alignr ${cpu cpu2}%
      ${cpubar cpu2}
      CPU3 $alignc ${execi 8 sensors | grep ‘Core 0:’ | cut -c16-22 | sed ‘/^$/d’} $alignr ${cpu cpu3}%
      ${cpubar cpu3}
      CPU4 $alignc ${execi 8 sensors | grep ‘Core 2:’ | cut -c16-22 | sed ‘/^$/d’} $alignr ${cpu cpu4}%
      ${cpubar cpu4}

      ${font URW Gothic L:style=Demi:size=8}MEMORY$font
      RAM $alignc $mem / $memmax $alignr $memperc%
      $membar

    • Ficheiro “.conkyrc_nt2″:
      Código: Selecionar todos
      background no
      use_xft yes
      xftfont URW Gothic L:size=8
      xftalpha 1
      update_interval 1.0
      total_run_times 0
      own_window yes
      own_window_transparent yes
      #own_window_type override
      own_window_hints undecorated,below,skip_taskbar,skip_pager
      #own_window_colour 7c
      #own_window_argb_visual yes
      #own_window_argb_value 100
      double_buffer yes
      minimum_size 5 5
      #maximum_width 200
      draw_shades no
      draw_outline no
      draw_borders no
      draw_graph_borders yes
      #stippled_borders yes
      default_color 3c3c3c
      default_shade_color 4c4c4c
      default_outline_color abadb0
      alignment mr
      gap_x 400
      gap_y -150
      no_buffers yes
      uppercase no
      cpu_avg_samples 2
      #override_utf8_locale no

      color1 000

      TEXT
      ${font URW Gothic L:size=40}$alignr${time %A}$font
      ${font URW Gothic L:size=40}$alignr${time %B} ${time %d}$font
      ${font URW Gothic L:size=100}$alignr${time %H}:${time %M}$font

    • Ficheiro “.conkyrc_nt3″:
      Código: Selecionar todos
      background no
      use_xft yes
      xftfont URW Gothic L:size=8
      xftalpha 1
      update_interval 1.0
      total_run_times 0
      own_window yes
      own_window_transparent yes
      #own_window_type override
      own_window_hints undecorated,below,skip_taskbar,skip_pager
      #own_window_colour 7c
      #own_window_argb_visual yes
      #own_window_argb_value 100
      double_buffer yes
      minimum_size 5 5
      maximum_width 200
      draw_shades no
      draw_outline no
      draw_borders no
      draw_graph_borders yes
      #stippled_borders yes
      default_color 3c3c3c
      default_shade_color 4c4c4c
      default_outline_color abadb0
      alignment br
      gap_x 10
      gap_y 70
      no_buffers yes
      uppercase no
      cpu_avg_samples 2
      #override_utf8_locale no

      color1 000

      TEXT
      ${font URW Gothic L:style=Demi:size=8}TOP PROCESSES (CPU)$font
      ${top name 1}${alignr}${top cpu 1}%
      ${top name 2}${alignr}${top cpu 2}%
      ${top name 3}${alignr}${top cpu 3}%
      ${top name 4}${alignr}${top cpu 4}%
      ${top name 5}${alignr}${top cpu 5}%

      ${font URW Gothic L:style=Demi:size=8}TOP PROCESSES (MEM)$font
      ${top_mem name 1}${alignr}${top mem 1}%
      ${top_mem name 2}${alignr}${top mem 2}%
      ${top_mem name 3}${alignr}${top mem 3}%
      ${top_mem name 4}${alignr}${top mem 4}%
      ${top_mem name 5}${alignr}${top mem 5}%

      ${hr 2}

      ${font URW Gothic L:style=Demi:size=8}NETWORK$font
      ${downspeedgraph eth0 25, 200 000 000 -t}
      DL: ${downspeed eth0} $alignr total: ${totaldown eth0}
      ${upspeedgraph eth0 25, 200 000 000 -t}
      UL: ${upspeed eth0} $alignr total: ${totalup eth0}

      ${hr 2}

      ${font URW Gothic L:style=Demi:size=8}FILE SYSTEM$font
      / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
      ${fs_bar 6 /}

      ${hr 2}

      ${font URW Gothic L:style=Demi:size=8}GRAPHIC CARD$font
      Nvidia ${exec nvidia-smi -L | grep GPU | awk ‘{print $3,$4}’} ${alignr} ${nvidia temp}°C

width="625"

Plano

width="312"width="312"
width="312"width="312"
 

Toucan Blue

width="625"

Yellow Fiber

width="312"width="312"

Flor Da Noite

width="312"width="312"

Ubuntu

  • Página do Ambiente de Trabalho
  • Autor: joao
  • Sistema Operativo: Ubuntu 12.04.2 LTS
  • Tema: Leopard-Steel
  • Ambiente Gráfico: Unity
  • Ícones: Ilinux-Icons
  • Outros:
    • Ficheiro “clock_rings.lua”:
      Código: Selecionar todos
      --[[
      Clock Rings by Linux Mint (2011) reEdited by despot77

      This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

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

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

      Changelog:
      + v1.0 -- Original release (30.09.2009)
      v1.1p -- Jpope edit londonali1010 (05.10.2009)
      *v 2011mint -- reEdit despot77 (18.02.2011)
      ]]

      settings_table = {
      {
      -- Edit this table to customise your rings.
      -- You can create more rings simply by adding more elements to settings_table.
      -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
      name='time',
      -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
      arg='%I.%M',
      -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
      max=12,
      -- "bg_colour" is the colour of the base ring.
      bg_colour=0xffffff,
      -- "bg_alpha" is the alpha value of the base ring.
      bg_alpha=0.1,
      -- "fg_colour" is the colour of the indicator part of the ring.
      fg_colour=0xFF6600,
      -- "fg_alpha" is the alpha value of the indicator part of the ring.
      fg_alpha=0.2,
      -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
      x=100, y=150,
      -- "radius" is the radius of the ring.
      radius=50,
      -- "thickness" is the thickness of the ring, centred around the radius.
      thickness=5,
      -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
      start_angle=0,
      -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
      end_angle=360
      },
      {
      name='time',
      arg='%M.%S',
      max=60,
      bg_colour=0xffffff,
      bg_alpha=0.1,
      fg_colour=0xFF6600,
      fg_alpha=0.4,
      x=100, y=150,
      radius=56,
      thickness=5,
      start_angle=0,
      end_angle=360
      },
      {
      name='time',
      arg='%S',
      max=60,
      bg_colour=0xffffff,
      bg_alpha=0.1,
      fg_colour=0xFF6600,
      fg_alpha=0.6,
      x=100, y=150,
      radius=62,
      thickness=5,
      start_angle=0,
      end_angle=360
      },
      {
      name='time',
      arg='%d',
      max=31,
      bg_colour=0xffffff,
      bg_alpha=0.1,
      fg_colour=0xFF6600,
      fg_alpha=0.8,
      x=100, y=150,
      radius=70,
      thickness=5,
      start_angle=-90,
      end_angle=90
      },
      {
      name='time',
      arg='%m',
      max=12,
      bg_colour=0xffffff,
      bg_alpha=0.1,
      fg_colour=0xFF6600,
      fg_alpha=1,
      x=100, y=150,
      radius=76,
      thickness=5,
      start_angle=-90,
      end_angle=90
      },
      {
      name='cpu',
      arg='cpu0',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0xFF6600,
      fg_alpha=0.8,
      x=50, y=300,
      radius=25,
      thickness=5,
      start_angle=-90,
      end_angle=180
      },
      {
      name='memperc',
      arg='',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0xFF6600,
      fg_alpha=0.8,
      x=75, y=350,
      radius=25,
      thickness=5,
      start_angle=-90,
      end_angle=180
      },
      {
      name='swapperc',
      arg='',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0xFF6600,
      fg_alpha=0.8,
      x=100, y=400,
      radius=25,
      thickness=5,
      start_angle=-90,
      end_angle=180
      },
      {
      name='fs_used_perc',
      arg='/',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0xFF6600,
      fg_alpha=0.8,
      x=125, y=450,
      radius=25,
      thickness=5,
      start_angle=-90,
      end_angle=180
      },
      {
      name='downspeedf',
      arg='eth0',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0x339900,
      fg_alpha=0.8,
      x=150, y=500,
      radius=25,
      thickness=4,
      start_angle=-90,
      end_angle=180
      },
      {
      name='upspeedf',
      arg='eth0',
      max=100,
      bg_colour=0xffffff,
      bg_alpha=0.2,
      fg_colour=0xff6600,
      fg_alpha=0.8,
      x=150, y=500,
      radius=20,
      thickness=4,
      start_angle=-90,
      end_angle=180
      },
      }

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

      clock_r=65

      -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

      clock_x=100
      clock_y=150

      show_seconds=true

      require 'cairo'

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

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

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

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

      -- Draw background ring

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

      -- Draw indicator ring

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

      function draw_clock_hands(cr,xc,yc)
      local secs,mins,hours,secs_arc,mins_arc,hours_arc
      local xh,yh,xm,ym,xs,ys

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

      secs_arc=(2*math.pi/60)*secs
      mins_arc=(2*math.pi/60)*mins+secs_arc/60
      hours_arc=(2*math.pi/12)*hours+mins_arc/12

      -- Draw hour hand

      xh=xc+0.7*clock_r*math.sin(hours_arc)
      yh=yc-0.7*clock_r*math.cos(hours_arc)
      cairo_move_to(cr,xc,yc)
      cairo_line_to(cr,xh,yh)

      cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
      cairo_set_line_width(cr,5)
      cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
      cairo_stroke(cr)

      -- Draw minute hand

      xm=xc+clock_r*math.sin(mins_arc)
      ym=yc-clock_r*math.cos(mins_arc)
      cairo_move_to(cr,xc,yc)
      cairo_line_to(cr,xm,ym)

      cairo_set_line_width(cr,3)
      cairo_stroke(cr)

      -- Draw seconds hand

      if show_seconds then
      xs=xc+clock_r*math.sin(secs_arc)
      ys=yc-clock_r*math.cos(secs_arc)
      cairo_move_to(cr,xc,yc)
      cairo_line_to(cr,xs,ys)

      cairo_set_line_width(cr,1)
      cairo_stroke(cr)
      end
      end

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

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

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

      draw_ring(cr,pct,pt)
      end

      -- Check that Conky has been running for at least 5s

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

      local cr=cairo_create(cs)

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

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

      draw_clock_hands(cr,clock_x,clock_y)
      end

width="312"width="312"

Dark Road

width="312"width="312"
width="312"width="312"

Uma Resposta ate agora.

  1. JoseRenan diz:

    Dark Road ficou uma belezura! Muito bom!

Deixe um comentario


Pesquisar


Publicidade

  • Forum Do Ubuntued
  • Ubuntu Dicas
  • Ubuntu-BR-SC
  • Tomates Podres
  • Servidores com Ubuntu desde 5$ do mês
  • Anuncie no Ubuntued!