Learn Tiny Core. View Tiny Core Screen Shots and Videos.
background nooverride_utf8_locale nouse_xft yesxftfont cure:size=8text_buffer_size 2048update_interval 1.0total_run_times 0own_window yesown_window_transparent yesown_window_type overrideown_window_colour 191919own_window_hints undecorated,below,sticky,skip_taskbar,skip_pagerdouble_buffer yesminimum_size 530 150maximum_width 530draw_shades nodraw_outline nodraw_borders nodraw_graph_borders yesdefault_color 888default_shade_color fed053default_outline_color 7f8f9falignment trgap_x 30gap_y 40 no_buffers yesuppercase nocpu_avg_samples 2override_utf8_locale nocolor1 fffborder_inner_margin 4border_outer_margin 1own_window_argb_visual noown_window_argb_value 200lua_load ~/.conky/rings.lua lua_draw_hook_pre mainTEXT${voffset 20}${goto 130}$hr${voffset 16}${font Ambitsek:size=18}${goto 24}${color1}${time %H.%M}${color}$font${goto 45}${time %a %d %b}${voffset 23}${goto 130}$hr${voffset -85}${goto 175}CPU $freq_g GHz${voffset 6}${goto 153}${top cpu 1} ${color1}${top name 1}${color}${goto 153}${top cpu 2} ${color1}${top name 2}${color}${goto 153}${top cpu 3} ${color1}${top name 3}${color}${voffset 4}${goto 175}${loadavg}${voffset -63}${goto 305}MEM ${memfree}/$memmax${voffset 3}${goto 280}${top_mem mem 1} ${color1}${top_mem name 1}${color}${goto 280}${top_mem mem 2} ${color1}${top_mem name 2}${color}${goto 280}${top_mem mem 3} ${color1}${top_mem name 3}${color}${voffset 3}${goto 305}$cached - $buffers${voffset -60}${goto 430}ROOT ${goto 415}${color1}${fs_size /}${color}${goto 410}${color1}${fs_used /}${color}${goto 410}${color1}${fs_used_perc /} %${color}${voffset -30}${goto 475}${color1}${fs_used_perc /media/Sunny} %${color}${goto 465}${color1}${fs_used /media/Sunny}${color}${goto 465}${color1}${fs_size /media/Sunny}${color}${goto 455}DATA
--[[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.1corner_r=30main_bg_colour=0x181818main_bg_alpha=0.9 ring_background_color = 0xe0e0e0ring_background_alpha = 0.1ring_foreground_color = 0xcececering_foreground_alpha = 1settings_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='cpu4', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=170, y=75, radius=23, thickness=3, start_angle=-180, end_angle=0 }, { name='cpu', arg='cpu3', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=170, y=75, radius=26, thickness=3, start_angle=-180, end_angle=0 }, { name='cpu', arg='cpu2', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=170, y=75, radius=29, thickness=3, start_angle=-180, end_angle=0 }, { 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=170, y=75, radius=32, thickness=3, start_angle=-180, end_angle=0 }, { 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=300, y=75, radius=25, thickness=6, start_angle=-180, end_angle=-0 }, { name='fs_used_perc', arg='/media/Sunny', 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=480, y=75, radius=24, thickness=5, start_angle=80, 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=427, y=75, radius=24, thickness=5, start_angle=-100, end_angle=0 },} require 'cairo' local function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alphaend 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)endfunction conky_main() conky_draw_bg() conky_ring_stats()end