Hi all,
for free Fonts is this Site the Best:
http://www.dafont.com/search.php?psize=m&q=barcode
They have immediately two bar codes fonts!
I find the "BarcodeFont" better!
Hi all,
for free Fonts is this Site the Best:
http://www.dafont.com/search.php?psize=m&q=barcode
They have immediately two bar codes fonts!
I find the "BarcodeFont" better!
Last edited by searchOne; October 9th, 2009 at 10:29 AM.
64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne
Hi
finally i make a conky with rings
thx for all who advice me and teach me to come out from some defcutis
and i likes to know how i make clsoe thsoe uplod and downlod things near to tht blue bar ?
where i want to edit for that ?
im new to this...(but i am a fast learner) so please bare for me a while.
=============
My Newbie Threads ...please help me to learn:
Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|
Help wanted .
ive just created a new thread so i wont boder you guys with my installing/compiling problems..
this is the link .. so in anyone of you want to give me a hand .. ( ill replace it with a lovely hook ) will be moslty appreciated..
http://ubuntuforums.org/showthread.php?t=1286257
regards..
im new to this...(but i am a fast learner) so please bare for me a while.
=============
My Newbie Threads ...please help me to learn:
Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|
conky.png conky.jpgCode:background yes font Zekton:size=8 xftfont Zekton:size=8 use_xft yes xftalpha 0.1 update_interval 1.0 total_run_times 0 own_window yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,skip_taskbar,skip_pager double_buffer yes draw_shades no draw_outline no draw_borders no draw_graph_borders no minimum_size 170 5 maximum_width 170 default_color d7d7d7 default_shade_color black default_outline_color black alignment top_right gap_x 10 gap_y 40 no_buffers yes cpu_avg_samples 2 override_utf8_locale no uppercase no # set to yes if you want all text to be in uppercase use_spacer no TEXT ${color #00D00D} ${color #FFAD00}Xubuntu - ${color #00D00D}$sysname $machine ${color #FFAD00}kernel - ${color #00D00D}$kernel ${color #FFAD00}uptime - ${color #00D00D}$uptime ${color #FFAD00}freq - ${color #00D00D}${freq}MHz ${color #FFAD00}load - ${color #00D00D}$loadavg ${color #FFAD00}date - ${color #00D00D}${time %a %b %d %Y} ${alignr} ${color #FFAD00}CPU: ${cpu cpu0}% ${color #00D00D}${cpubar cpu0} ${cpugraph cpu0} ${color #FFAD00}CPU: ${color #00D00D}${hwmon 1 temp 1} C ${hwmon 1 fan 1} rpm ${color #FFAD00}mem $mem / $memmax $alignr $memperc% ${color #00D00D}$membar ${color #FFAD00}swap $swap / $swapmax $alignr $swapperc% ${color #00D00D}$swapbar ${color #FFAD00}Linux ${fs_used /} / ${fs_size /}$alignr${fs_free_perc /}% ${color #00D00D}${fs_bar /} ${color #FFAD00}local ip ${color #00D00D}${addr eth0} ${color #FFAD00}eth0 down ${color #00D00D}${downspeed eth0} k/s ${color #00D00D}${downspeedgraph eth0} ${color #FFAD00}eth0 up ${color #00D00D}${upspeed eth0} k/s ${color #00D00D}${upspeedgraph eth0} ${color #FFAD00}total up ${color #00D00D}${totalup eth0}${alignr}total down ${totaldown ethO} ${color #FFAD00}$Top Processes: Name PID CPU% ${color #00D00D} ${top name 1} ${top pid 1} ${top cpu 1} ${top name 2} ${top pid 2} ${top cpu 2} ${top name 3} ${top pid 3} ${top cpu 3} ${top name 4} ${top pid 4} ${top cpu 4} ${top name 5} ${top pid 5} ${top cpu 5} ${color #FFAD00}Mem usage ${color #00D00D} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
Last edited by bagy; October 10th, 2009 at 10:32 AM.
I was able to get upspeed and downspeed working for the network adapters with the rings.lua script.
the key was to use upspeedf and downspeedf so there was only a numerical value represented. This allowed the script to do the math.
I also needed to set a max of 10000 as the value is represented in kib. when the value was set lower the data would overrun the max_angle and into other areas of the ring.
Here is an updated screenie:
Registered Ubuntu User #29430
im new to this...(but i am a fast learner) so please bare for me a while.
=============
My Newbie Threads ...please help me to learn:
Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|
Here's mine,
${color white}${execi 2 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}Code:# Conky sample configuration # # the list of variables has been removed from this file in favour # of keeping the documentation more maintainable. # Check http://conky.sf.net for an up-to-date-list. # set to yes if you want Conky to be forked in the background background yes # X font when Xft is disabled, you can pick one with program xfontsel #font 5x7 #font 6x10 #font 7x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft yes # Set conky on the bottom of all other applications own_window_hints below # Xft font when Xft is enabled xftfont Sans:style=Bold:size=10 # Text alpha when using Xft xftalpha 1 # Print everything to stdout? # out_to_console no # MPD host/port # mpd_host localhost # mpd_port 6600 # mpd_password tinker_bell # Print everything to console? # out_to_console no # mail spool #mail_spool $MAIL # Update interval in seconds update_interval 5 # 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_hints undecorated,below,skip_taskbar own_window_type override # Use pseudo transparency with own_window? own_window_transparent yes # If own_window_transparent is set to no, you can set the background colour here #own_window_colour hotpink # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 280 5 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 8 # border margins border_margin 5 # border width border_width 10 # Default colors and also border colors 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 #alignment none # Gap between borders of screen and text # same thing as passing -x at command line gap_x 50 gap_y 12 # 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 no # Add spaces to keep things from moving about? This only affects certain objects. use_spacer yes # mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost # mldonkey_port Mldonkey port, 4001 default # mldonkey_login Mldonkey login, default none # mldonkey_password Mldonkey password, default none # boinc (seti) dir # seti_dir /opt/seti # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) min_port_monitors 16 # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256) min_port_monitor_connections 256 # 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 ${color white}CPU Usage:${color white} $cpu% <-> ${color white}File systems: ${color white}${fs_used /} of ${fs_size /} <-> ${time %l:%M %a %b %d} <-> ${color white}RAM Usage:${color white} $mem of $memmax ${color white}= ${color white}$memperc% ${color white}IN:${downspeed eth0}k/s <-> ${color white}OUT:${upspeed eth0}k/s <-> ${color white}Connections: ${tcp_portmon 1 65535 count} ${color white}Netstat
I've been playing around with Londonali's clock_rings.lua script, and made a few (nice...I think) changes, (with the help of Londonali of course),
I have added an option to allow the arc start and end positions to move on the foreground
just use the ring "on" function for standard rings,
use the ring "off" function for moving arc rings.
there is an if/then statement in the "draw_ring(cr,t,pt)" function that will call one or the other.
it's called in the same way as other .lua scripts from .conkyrc or in my case .conkymid check here for the other conky's and lua's
The only problem that I haven't resolved yet is the fact that a max offset is needed, ie battery full must be set to 80 for some reason.Code:--[[ Clock Rings by londonali1010 (2009) 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) ]] settings_table = { { name='cpu', arg='cpu0', max=200, ring="on", bg_colour=0x016BFF, bg_alpha=0, fg_colour=0x016BFF, fg_alpha=0.8, x=195, y=195, radius=137.5, thickness=15, start_angle=-230, end_angle=40 }, { name='memperc', arg='', max=100, ring="on", bg_colour=0x016BFF, bg_alpha=0.1, fg_colour=0x016BFF, fg_alpha=0.5, x=195, y=195, radius=157, thickness=13, start_angle=45, end_angle=315 }, { name='fs_used_perc', arg='/', max=90, ring="on", bg_colour=0x016BFF, bg_alpha=0, fg_colour=0x016BFF, fg_alpha=0.5, x=195, y=195, radius=100, thickness=20, start_angle=-250, end_angle=20 }, { name='battery_percent', arg='BAT1', max=90, ring="on", bg_colour=0xFF0000, bg_alpha=0.4, fg_colour=0x016BFF, fg_alpha=0.5, x=195, y=195, radius=120, thickness=10, start_angle=-50, end_angle=210 }, { name='time', arg='%I', max=12, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=320, y=46, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%M', max=60, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=362, y=93, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%S', max=60, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=386, y=150, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%u', max=7, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=390, y=211, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%d', max=31, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=375, y=272, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%m', max=12, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=343, y=325, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%g', max=10, ring="off", bg_colour=0x016BFF, bg_alpha=0.3, fg_colour=0xFFFFFF, fg_alpha=0.8, x=292, y=363, radius=28, thickness=5, start_angle=0, end_angle=360 }, { name='wireless_link_qual_perc', arg='wlan0', max=75, ring="on", bg_colour=0x016BFF, bg_alpha=0.1, fg_colour=0x016BFF, fg_alpha=0.9, x=195, y=195, radius=80, thickness=12.5, start_angle=-70, end_angle=200 }, } -- Use these settings to define the origin and extent of your clock. clock_r=125 -- "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=195 clock_y=195 -- Colour & alpha of the clock hands clock_colour=0x16bfff clock_alpha=0.5 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 port=pt['max'] local ring=pt['ring'] 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 arc_w = math.pi/port -- Sets width of arc to 1/"max"nth of a circle local angle_0 = sa*(2*math.pi/360)-math.pi/2 -- Converts the starting angle to radians & translates to starting from the top local angle_f = ea*(2*math.pi/360)-math.pi/2 local t_arc = angle_0 + t*2*math.pi -- Converts the percentage to a part of 2*pi radians & adds the starting angle if ring=='off' then -- 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, t_arc-arc_w, t_arc+arc_w) cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) cairo_stroke(cr) else -- 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 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.6*clock_r*math.sin(hours_arc) yh=yc-1.0*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,0,0,1,0.6) cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha)) cairo_stroke(cr) -- Draw minute hand xm=xc+0.8*clock_r*math.sin(mins_arc) ym=yc-1.2*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_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha)) cairo_stroke(cr) -- Draw seconds hand if show_seconds then xs=xc+1.0*clock_r*math.sin(secs_arc) ys=yc-1.4*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_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha)) 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'],pt['full']) 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
Enjoy,
Let me know what you think
Phil
I'll never drink water again....Fish poo in it!
XP for iTunes Only : Ubuntu10.04 : Crunchbang : DSL
I'm Pushing Narcoleptic Numbat for ubuntu11.04
Proper Funny Stuff
Bookmarks