Page 1012 of 2317 FirstFirst ... 1251291296210021010101110121013101410221062111215122012 ... LastLast
Results 10,111 to 10,120 of 23163

Thread: Post your .conkyrc files w/ screenshots

  1. #10111
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by arpinux View Post
    i thought that to change from 24 to 12, you just have to set the time arg from %H to %I
    Yes, that works for a "digital" output as you see (the 19) and the circle for hours (orange), but the hour hand is a mathematically "calculated" spot.

    As you see it's set at the "7" position for 7am, 7pm and 19:00.

    Nice try though. Thanks for responding.

    Have a GREAT Day
    Bruce
    Last edited by Bruce M.; October 25th, 2009 at 11:39 PM.

  2. #10112
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    Do you really want hands on a 24hr clock? Okay...If so, change
    Code:
    hours_arc = (2 * math.pi / 12) * hours + mins_arc / 12
    to
    Code:
    hours_arc = (2 * math.pi / 24) * hours + mins_arc / 24
    Uh, I think...Not tested it
    I tried that it didn't work, BUT ... it has to be that calculation though.

    Thanks.

    Have a GREAT day.
    Bruce

  3. #10113
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    I tried that it didn't work, BUT ... it has to be that calculation though.

    Thanks.

    Have a GREAT day.
    Bruce
    Ah, yes, and ALSO change
    Code:
    local hours=os.date("%I")
    to
    Code:
    local hours=os.date("%H")
    - Samsung R519 Silver - Dual-Boot Windows 7/Ubuntu 9.10 -
    - The Official Conky Blog - Follow conkynews on Twitter -
    - My Launchpad PPA -
    - My blog: My Little Desktop -

  4. #10114
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    Ah, yes, and ALSO change
    Code:
    local hours=os.date("%I")
    to
    Code:
    local hours=os.date("%H")
    That's getting it. Off by a bit.

    Thanks londonali1010 - you the lady!!

    CHIMO1
    Bruce
    Attached Images Attached Images
    Last edited by Bruce M.; October 26th, 2009 at 04:22 PM.

  5. #10115
    Join Date
    Mar 2009
    Beans
    6

    Re: Post your .conkyrc files w/ screenshots

    PLease help im new to ubuntu and want to change my theme i have installed emerald and also ran this command: sudo apt-get install subversion
    but for some reason nuffing works
    can anyonye please help me out thanx any replys appricated
    file:///home/davidataiyero/Desktop/Screenshot.png

  6. #10116
    Join Date
    Jul 2008
    Location
    Connecticut, U.S.
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by davidcyber00 View Post
    PLease help im new to ubuntu and want to change my theme i have installed emerald and also ran this command: sudo apt-get install subversion
    but for some reason nuffing works
    can anyonye please help me out thanx any replys appricated
    file:///home/davidataiyero/Desktop/Screenshot.png
    You might want to make a new thread for your question. This is really for conky related issues.

    You can try system, preferences, appearance to change your system theme.

    Welcome to a better OS though.
    Registered Ubuntu User #29430

  7. #10117
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    So here's how my new modifications are coming along. I'm trying to make Conky less desktop-intrusive. Added some extra functionality to the colours again.

    .conkyrc
    Code:
    # Conky, a system monitor, based on torsmo
    #
    # Any original torsmo code is licensed under the BSD license
    #
    # All code written since the fork of torsmo is licensed under the GPL
    #
    # Please see COPYING for details
    #
    # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
    # Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
    # All rights reserved.
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    override_utf8_locale yes
    use_spacer none
    use_xft yes
    xftfont FreeMono:italic:size=7
    xftalpha 1
    
    double_buffer yes
    minimum_size 400 72
    no_buffers yes
    update_interval 1
    
    own_window yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    own_window_transparent yes
    own_window_type override
    
    border_inner_margin 0
    border_width 0
    draw_borders no
    draw_shades no
    stippled_borders 0
    
    default_color 000000
    #default_outline_color 1E1C1A
    #default_shade_color white
    own_window_colour ffffff
    
    alignment bottom_right
    gap_x 0
    gap_y 0
    
    cpu_avg_samples 1
    net_avg_samples 1
    no_buffers yes
    
    #short_units true
    
    #Lua Scripts
    lua_load ~/.conkygui/scripts/clock_mod.lua
    lua_draw_hook_pre clock_rings
    
    
    TEXT
    ${voffset 0}${offset 285}${if_match ${freq cpu1}<1000}0${endif}${freq cpu1}MHz
    ${voffset 0}${offset 285}${exec sensors | grep "Core 0:" | cut -c15-16 ;}°C
    ${voffset 0}${offset 285}
    ${voffset 0}${offset 285}
    ${voffset 0}${offset 285}${exec sensors | grep "Core 1:" | cut -c15-16 ;}°C
    ${voffset 0}${offset 285}${if_match ${freq cpu2}<1000}0${endif}${freq cpu2}MHz
    
    ${voffset -84}${offset 220}${battery}
    ${voffset 0}${offset 220}
    ${voffset 0}${offset 220}
    ${voffset 0}${offset 220}
    ${voffset 0}${offset 220}
    ${voffset 0}${offset 220}${wireless_essid wlan0}
    
    ${voffset -84}${offset 155}Memory
    ${voffset 0}${offset 155}
    ${voffset 0}${offset 155}
    ${voffset 0}${offset 155}
    ${voffset 0}${offset 155}
    ${voffset 0}${offset 155}Swap
    .clock_mod.lua
    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.
    
    
    Clock Rings Mod by Proxess (2009)
    
    This modification permits you to add warning colours on both countdown values (batteries, wlan, etc) and status percentages (cpu, file system usage, etc).
    
    v0.2 -- Added Background colouring and alphaing
    
    
    Clock Rings Mod Mod by Crinos512 (2009)
    
    This modification adds alpha to the warning colours.
    
    
    To call this script in Conky, use the following (assuming that you save this script to ~/.conkygui/scripts/clock_mod.lua):
    	lua_load ~/.conkygui/scripts/clock_mod.lua
    	lua_draw_hook_pre clock_rings
    ]]
    
    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'.
    		-- "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 ''.
    		-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
    		-- "bg_colour" is the colour of the base ring.
    		-- "bg_alpha" is the alpha value of the base ring.
    		-- "fg_colour" is the colour of the indicator part of the ring.
    		-- "fg_alpha" is the alpha value of the indicator part of the ring.
    		-- "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.
    		-- "radius" is the radius of the ring.
    		-- "thickness" is the thickness of the ring, centred around the radius.
    		-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    		-- "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.
    		-- "color_coding" is the variable that defines if there's a colour state level
    		-- "coding_direction" simply indicates if it's a countdown (false) or a status (true)
    		-- "warning" is the value that defines the state of the warning
    		-- "warning_colour" is the value that defines the state of the warning
    		-- "warning_alpha" is the alpha value of the indicator part of the ring during the state of the warning.
    		-- "danger" is the value that defines the state of the danger
    		-- "danger_colour" is the value that defines the state of the danger
    		-- "danger_alpha" is the alpha value of the indicator part of the ring during the state of the danger.
    
    		name='time', arg='%I',
    		max=12,
    		
    		x=365, y=36,
    		radius=20, thickness=1,
    		start_angle=0, end_angle=360,
    	
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    		
    		colour_coding=false, coding_direction=false,
    		warning=0, warning_colour=0xE38513, warning_alpha=0.5,
    		danger=0, danger_colour=0x840000, danger_alpha=0.8
    
    	},
    	{
    		name='time',
    		arg='%M.%S',
    		max=60,
    		
    		x=365, y=36,
    		radius=26, thickness=1,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    		
    		colour_coding=false, coding_direction=false,
    		warning=0, danger=0,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    	{
    		name='time',
    		arg='%S',
    		max=60,
    		
    		x=365, y=36,
    		radius=32, thickness=1,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    
    		colour_coding=false, coding_direction=false,
    		warning=0, danger=0,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    
    	{
    		name='cpu',
    		arg='cpu1',
    		max=100,
    		
    		x=300, y=0,
    		radius=36, thickness=10,
    		start_angle=90, end_angle=180,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=true,
    		warning=70, danger=90,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    	{
    		name='cpu',
    		arg='cpu2',
    		max=100,
    		
    		x=300, y=72,
    		radius=36, thickness=10,
    		start_angle=0, end_angle=90,
    		
    		bg_colour=0xFFFFFF, bg_alpha=0.2,
    		fg_colour=0xFFFFFF, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=true,
    		warning=70, danger=90,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    	
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		
    		x=240, y=0,
    		radius=36, thickness=10,
    		start_angle=90, end_angle=180,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=false,
    		warning=30, danger=10,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    	{
    		name='wireless_link_qual_perc',
    		arg='wlan0',
    		max=100,
    		
    		x=240, y=72,
    		radius=36, thickness=10,
    		start_angle=0, end_angle=90,
    		
    		bg_colour=0xFFFFFF, bg_alpha=0.2,
    		fg_colour=0xFFFFFF, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=false,
    		warning=30, danger=10,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    
    	{
    		name='memperc',
    		arg='',
    		max=100,
    		
    		x=180, y=0,
    		radius=36, thickness=10,
    		start_angle=90, end_angle=180,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0x000000, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=true,
    		warning=70, danger=90,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	},
    	{
    		name='swapperc',
    		arg='',
    		max=100,
    		
    		x=180, y=72,
    		radius=36, thickness=10,
    		start_angle=0, end_angle=90,
    		
    		bg_colour=0xFFFFFF, bg_alpha=0.2,
    		fg_colour=0xFFFFFF, fg_alpha=0.8,
    
    		colour_coding=true, coding_direction=true,
    		warning=70, danger=90,
    		warning_bgc=0xE38513, warning_bga=0.2,
    		warning_colour=0xE38513, warning_alpha=0.5,
    		danger_bgc=0x840000, danger_bga=0.2,
    		danger_colour=0x840000, danger_alpha=0.8
    	}
    }
    
    -- Use these settings to define the origin and extent of your clock.
    clock_r=36
    
    -- "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=365	
    clock_y=36
    
    -- Colour & alpha of the clock hands
    hour_colour=0x53524F
    minute_colour=0x53524F
    second_colour=0x53524F
    clock_alpha=0.8
    
    -- Do you want to show the seconds hand?
    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)
    	
    	local cc, cd=pt['colour_coding'], pt['coding_direction']
    	local wn, dn=pt['warning'], pt['danger']
    	local wbgc, wbga, wc, wa=pt['warning_bgc'], pt['warning_bga'], pt['warning_colour'], pt['warning_alpha']
    	local dbgc, dbga, dc, da=pt['danger_bgc'], pt['danger_bga'], pt['danger_colour'], pt['danger_alpha']
    	
    	local str=''
    	local value=0
    
    	str=string.format('${%s %s}',pt['name'],pt['arg'])
    	str=conky_parse(str)
    	value=tonumber(str)
    	
    	-- Draw background ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    	cairo_set_line_width(cr,ring_w)
    	if cc == false then
    		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	else
    		if cd == true then
    			if value < wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(bga,bga))
    			elseif value >= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dbgc,dbga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wbgc,wbga))
    			end
    		else
    			if value > wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(bga,bga))
    			elseif value <= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dbgc,dbga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wbgc,wbga))
    			end
    		end
    	end
    	cairo_stroke(cr)
    
    	-- Draw indicator ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    	if cc == false then
    		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	else
    		if cd == true then
    			if value < wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			elseif value >= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
    			end
    		else
    			if value > wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			elseif value <= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
    			end
    		end
    	end
    
    	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.5*clock_r*math.sin(hours_arc)
    	yh=yc-0.5*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,rgb_to_r_g_b(hour_colour,clock_alpha))
    	cairo_stroke(cr)
    	
    	-- Draw minute hand
    	
    	xm=xc+0.7*clock_r*math.sin(mins_arc)
    	ym=yc-0.7*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(minute_colour,clock_alpha))
    	cairo_stroke(cr)
    	
    	-- Draw seconds hand
    	
    	if show_seconds then
    		xs=xc+0.9*clock_r*math.sin(secs_arc)
    		ys=yc-0.9*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(second_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'])
    		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
    Attached Images Attached Images
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 14.04 LTS x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

  8. #10118
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    ok I have a few problems:
    1. voffsets have no effect on my conky. I am trying to make my conky horizontal across the bottom and I just need to move the individual "boxes" down but voffsets have no effect
    2. my todo list is split up. the tasks do not line up underneath the heading and i believe that has something to do with my voffsets.
    3. I do not know how to change the dimensions of my hd bar or my battery percent bar. i have tried adding 0,150 after them and I have looked on conky hardcore but can't find what i need

    .conkyrc
    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
    
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=8
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # 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.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 no
    
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type desktop
    
    # 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 black
    
    # If own_window is yes, these window manager hints may be used
    #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 280 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Draw borders around graphs
    draw_graph_borders no
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # 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 top_middle
    #alignment bottom_middle
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 1
    gap_y 1
    
    # 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 none
    
    # Shows the maximum value in scaled graphs.
    show_graph_scale no
    
    # Shows the time range covered by a graph.
    show_graph_range no
    
    # Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
    #max_port_monitor_connections 256
    
    # Maximum number of special things, e.g. fonts, offsets, aligns, etc.
    #max_specials 512
    
    # Maximum size of buffer for user text, i.e. below TEXT line.
    #max_user_text 16384
    
    # Timing interval for music player thread, e.g. mpd, audacious
    #music_player_interval (update_interval is default)
    
    # Strictness of if_up. One of: up, link or address. The later ones imply the further ones.
    # Defaults to up.
    #if_up_strictness address
    
    # 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 Verana:size=6}$sysname $kernel on $machine
    ${font Verdana:size=20}${color5}Hello Daniel
    ${voffset -20}${color1}$hr
    ${voffset -20}${font Verdana:size=14}${color1}${time %A %h %d %Y}
    ${font Verdana:size=30}${color1}${time %H:%M}
    ${voffset -15}${font ConkyWeather:size=36}c ${font Verdana:size=15}${voffset -5}${execi 3600 conkyForecast -i --location=USAZ0207 --datatype=LT} / ${execi 3600 conkyForecast -i --location=SNXX0006 --datatype=HT}
    ${goto 200}${font Verdana:style=Bold:size=9}${color1}Gmail: ${font Verdana:size=8}${execi 600 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=xyz --password=xyz --ssl} new emails
    ${goto 200}${font Verdana:style=Bold:size=9}Now Playing: ${font Verdana:size=8}${exec rhythmbox-client --no-start --print-playing}
    ${goto 200}${font Verdana:bold:size=10}${color1}HDD ${color1}${hr 2}
    ${goto 200}$font${color1}500 GB $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
    ${goto 200}${fs_bar /home}
    ${goto 200}${font Verana:style=Bold:size=9}CPU1: ${font Verana:size=8}${cpubar cpu1 10,150}${offset -20} ${cpu cpu1}%
    ${goto 200}${font Verana:style=Bold:size=9}CPU2: ${font Verana:size=8}${cpubar cpu2 10,150}${offset -20} ${cpu cpu2}%
    ${goto 420}${font Verana:style=Bold:size=9}Name         PID    CPU%    MEM%
    ${goto 420}${font Verana:size=8} ${top name 1}  ${top pid 1}  ${top cpu 1}  ${top mem 1}
    ${goto 420}${font Verana:size=8} ${top name 2}  ${top pid 2}  ${top cpu 2}  ${top mem 2}
    ${goto 420}${font Verana:size=8} ${top name 3}  ${top pid 3}  ${top cpu 3}  ${top mem 3}
    ${goto 420}${font Verana:size=8} ${top name 4}  ${top pid 4}  ${top cpu 4}  ${top mem 4}
    ${goto 420}${font Verana:size=8} ${top name 5}  ${top pid 5}  ${top cpu 5}  ${top mem 5}
    ${goto 640}${font Verana:style=Bold:size=9}RAM: ${font Verdana:size=8}${mem} / ${memmax} (${memperc}%)
    ${goto 640}${font Verana:style=Bold:size=9}SWAP: ${font Verdana:size=8}${swap} / ${swapmax} (${swapperc}%)
    ${goto 640}${font Verana:style=Bold:size=9} $processes processes ($running_processes running)
    ${goto 640}${font Verana:style=Bold:size=9}Battery Percent: ${font Verana:size=8}${battery_percent}%
    ${goto 640}${battery_bar}
    ${goto 845}${font Verana:style=Bold:size=9}CPU Temperature: ${font Verana:size=8}${acpitemp} Degrees Celsius
    ${goto 845}${font Verana:style=Bold:size=9}IP Address: ${font Verana:size=8}${gw_ip}
    ${goto 845}${font Verana:style=Bold:size=9}Public IP: ${font Verana:size=8}${execi 14400 wget -O - http://whatismyip.org/ | tail}
    ${goto 845}${font Verana:style=Bold:size=9}Total Download: ${font Verana:size=8}${totaldown eth1}
    ${goto 845}${font Verana:style=Bold:size=9}Total Upload: ${font Verana:size=8}${totalup eth1}
    ${goto 845}${font Verana:style=Bold:size=9}Up Speed: ${font Verdana:size=8}${upspeed eth1} Kb/s ${font Verana:style=Bold:size=9}Down Speed: ${font Verdana:size=8}${downspeed eth1} Kb/s
    ${goto 845}${font Verana:style=Bold:size=9}Uptime: ${font Verana:size=8}${uptime}
    ${goto 1100}${font Verana:style=Bold:size=9}To Do List${goto 1000}${font Verana:size=8}${goto 1000}${execi 300 cat ~/Documents/todo.txt}
    ok i got the voffsets to work. just need to get to fix my bars. check out the new screenshot. also i need to get my todo list moved over under the heading. if you look it is in the bottom left corner when it should be all the over on the right. any ideas

    fixed the bars using bruce's advice about using a cpu i dont have. thanks bruce. just need to figure out how to change the dimensions of battery_bar and fs_bar. also i need to move my todo lists. any help is appreciated greatly
    Attached Images Attached Images
    Last edited by djyoung4; October 26th, 2009 at 02:59 AM.
    I'm a super power user

  9. #10119
    Join Date
    Apr 2005
    Location
    Markham, Ontario
    Beans
    300
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Here's my first run at Conky in the form of a Lua+Cairo widget. The idea is based on Cairo Pies except the pie represents total memory usage.



    Code:
    -- xc,yc - center of the pie
    -- r - radius of the pie
    
    function ring_mem (xc, yc, r)
    
    	pat = cairo_pattern_create_radial (xc, yc, 0.2*r,
    		                           xc,  yc, r);
    	cairo_pattern_add_color_stop_rgba (pat, 0.1, 1, 1, 1, 0);
    	cairo_pattern_add_color_stop_rgba (pat, 1.0, 1, 1, 1, 0.1);
    	cairo_set_source (cr, pat);
    	cairo_arc (cr, xc, yc, r, 0, 2 * math.pi);
    	cairo_fill (cr);
    	cairo_pattern_destroy (pat);
    
    
    	cairo_set_font_size (cr, 10)
    	cairo_select_font_face (cr, "Coconut",
    				CAIRO_FONT_SLANT_NORMAL,
    				CAIRO_FONT_WEIGHT_NORMAL)	
    	cairo_set_line_width (cr, 2.0)
    
    	-- Show total mem usage
    	local str1 = conky_parse(string.format('${mem}'))
    	local str2 = string.match(str1, "(%d+)")
    	local str3 = string.match(str1, "(%a+)")
    
    	cairo_set_source_rgba(cr, 1, 1, 1, 1)
    	cairo_move_to (cr, xc-9, yc-1)
    	cairo_show_text (cr, str2)
    	cairo_move_to (cr, xc-9, yc+9)
    	cairo_show_text (cr, str3)
    	cairo_stroke(cr)
    
    	-- Get top mem usage
    	local str1 = conky_parse(string.format('${mem}'))
    	local mem = tonumber(string.match(str1, "(%d+)"))
    	local str1 = conky_parse(string.format('${memperc}'))
    	local mempct = tonumber(string.match(str1, "(%d+)"))
    	
    	-- Draw pie
    	local angle = -90
    	local angle2 = 0
    	local tro = 4		-- Text rotational offset (degrees)
    	local maxprocesses = 10
    	local maxstrlen = 8
    
    	for process = 1, maxprocesses do
    
    		cairo_save(cr)
    	
    		-- Get top process memory usage
    		local str2 = conky_parse(string.format('${top_mem mem %i}', tonumber(process)))
    		local mem_process = tonumber(str2)
    		local procpct = mem_process / mempct
    		angle2 = angle + (procpct*360)
    
    		if angle2 > 260 then
    			cairo_restore(cr)
    			break
    		end	
    
    		-- Get top process name
    		local str2 = conky_parse(string.format('${top_mem name %i} ', tonumber(process)))
    		local index = string.find(str2,' ')
    		
    		if (index == nil) then
    			cairo_restore(cr)
    			break
    		elseif (index > maxstrlen) then
    			str2 = string.sub(str2, 0, maxstrlen)
    		end
    
    		-- Draw pie outline
    		cairo_set_source_rgba(cr, 1, 1, 1, 0.2)		
    		cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));			
    		cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));	
    --		cairo_close_path(cr)
    		cairo_stroke(cr)
    
    		-- Draw text
    		cairo_set_source_rgba(cr, 1, 1, 1, 0.5)	
    		cairo_move_to(cr, xc, yc)
    		cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro)*(math.pi/180))
    --		cairo_show_text (cr, '    '..(procpct*100))
    		if (index > maxstrlen) then
    			cairo_show_text (cr, '      '..str2..'..')
    		else
    			cairo_show_text (cr, '      '..str2)
    		end		
    
    		angle = angle2 + 3
    
    		cairo_stroke(cr)
    		cairo_restore(cr)
    	end
    
    	if (angle < 264) then
    		angle2 = 267
    		cairo_set_source_rgba(cr, 1, 1, 1, 0.2)	
    		cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));
    		cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));	
    --		cairo_close_path(cr)
    		cairo_stroke(cr)
    		
    		if ((angle2 - angle) > 20) then
    			cairo_set_source_rgba(cr, 1, 1, 1, 0.5)	
    			cairo_move_to(cr, xc, yc)
    			cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro+2)*(math.pi/180))
    			cairo_show_text (cr, '      '..'other')
    			cairo_stroke(cr)
    		end
    	end
    end
    I'm not happy with the way it looks right now.


    Edit: and I just realized it doesn't really scale properly unless the radius is 75. The text extents functions in Cairo would be so useful on Conky if they worked.
    Last edited by Rob2687; October 26th, 2009 at 03:11 AM.

  10. #10120
    Join Date
    Jan 2009
    Location
    Montréal , France
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    @ djyoung4

    hi, for the battery_bar or fs_bar , try:
    ${fs_bar 10,150 /home} & ${battery_bar 10,150 BAT0}

    *todo list*
    try to replace
    ${goto 1100}${font Verana:style=Bold:size=9}To Do List${goto 1000}${font Verana:size=8}${goto 1000}${execi 300 cat ~/Documents/todo.txt}

    by
    ${goto 1000}${font Verdana:style=Bold:size=9}To Do List${goto 1100}${font Verdana:size=8}${execi 300 cat ~/Documents/todo.txt}
    Last edited by arpinux; October 26th, 2009 at 03:35 AM.

Page 1012 of 2317 FirstFirst ... 1251291296210021010101110121013101410221062111215122012 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •