Page 987 of 2327 FirstFirst ... 4878879379779859869879889899971037108714871987 ... LastLast
Results 9,861 to 9,870 of 23265

Thread: Post your .conkyrc files w/ screenshots

  1. #9861
    Join Date
    Jun 2009
    Location
    Seanchan
    Beans
    227
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    For those of you with simple tastes. I give you a simple remix using londonali's ring script. I love the rings. They're just what I needed to get interested in conky again. I hadn't used it for a long time.

    BTW, does anyone know if there is opacity for text or graphs built into Conky? I guess I could do something with compiz but then I'd have to adjust my script/conky as well because it would affect the whole window. Anyway I'm just asking because I'd like for the rest of conky to have some of the cool transparency that the rings have (not for this setup but for possible future projects).

    Also, Did they make it so that you no longer have to turn off the shadow around the conky window? I haven't even touched compiz and conky is in it's own window, but there is no shadow. I'm not complaining. I think it's great. I'm running Karmic with Conky 1.7.2.

    Finally, I doubt this is the kind of project that would be easy to do, but it would be amazing if someone came up with a hack to make text follow a path/curve. That would be legendary.
    Attached Images Attached Images
    Last edited by Crunchy the Headcrab; October 18th, 2009 at 05:48 AM.

  2. #9862
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cammy View Post
    Wow, I really like that conky. Nice wallpaper too.

    I'd better stop watching this thread or I'll be tearing my conky apart again!
    Awww, come on, go for it. Be the Creative Cammy!


    CHIMO!
    Bruce

  3. #9863
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    Ping and thanks to everyone involved

    http://ubuntuforums.org/showpost.php...1&postcount=66
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  4. #9864
    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 bapoumba View Post
    Ping and thanks to everyone involved

    http://ubuntuforums.org/showpost.php...1&postcount=66
    Quite cool, Thank you, and everyone!
    Registered Ubuntu User #29430

  5. #9865
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    Awww, come on, go for it. Be the Creative Cammy!
    hah! Well remember our "busy conky" discussion? I have a lot of stuff, and pretty much use it all. Circles take up a lot of space, so I dunno what I'd do with everything.

    Hmmmmm!
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

  6. #9866
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bapoumba View Post
    ping and thanks to everyone involved

    http://ubuntuforums.org/showpost.php...1&postcount=66
    nifty!!!
    - 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 -

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

    Re: Post your .conkyrc files w/ screenshots

    As promised, the colors change when the bars reach a certain value. The solution isn't the best, but it certainly works, which was my main concern:

    .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 Sans:size=8
    xftalpha 0.8
    
    double_buffer yes
    minimum_size 400 600
    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_margin 5
    border_width 1
    draw_borders no
    draw_shades no
    stippled_borders 0
    
    default_color ffffff
    #default_outline_color 1E1C1A
    #default_shade_color white
    own_window_colour ffffff
    
    alignment top_right
    gap_x 12
    gap_y 20
    
    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
    ${offset 120}${voffset 100}${font Baroque Script:size=8}$nodename
    ${offset 123}${voffset 10}${font Baroque Script:size=15}${time %b}${offset 40}${time %a}${offset 23}${time %d}
    ${offset 168}${voffset 35}${font Baroque Script:size=7}${time %p}
    ${offset 345}${voffset -80}${font Baroque Script:size=7}${if_match ${battery_percent BAT0}<30}${color FFFE4E}${endif}${if_match ${battery_percent BAT0}<10}${color 840000}${endif}$battery${color}
    ${voffset 80}${font Baroque Script:size=8}Kernel: ${alignr}${sysname} ${kernel} ${machine}
    Uptime: ${alignr}${uptime}
    ${offset 50}${voffset 5}${freq cpu1}mhz${offset 50}Memory${offset 15}Swap${offset 50}${freq cpu2}mhz
    ${offset 50}${voffset -1}${if_match ${exec sensors | grep "Core 0:" | cut -c15-16 ;}>=55}${color FFFE4E}${endif}${if_match ${exec sensors | grep "Core 0:" | cut -c15-16 ;}>=70}${color 840000}${endif}${exec sensors | grep "Core 0:" | cut -c15-16 ;}°c${color}${offset 255}${if_match ${exec sensors | grep "Core 1:" | cut -c15-16 ;}>=55}${color FFFE4E}${endif}${if_match ${exec sensors | grep "Core 1:" | cut -c15-16 ;}>=70}${color 840000}${endif}${exec sensors | grep "Core 1:" | cut -c15-16 ;}°c${color}
    ${offset 50}${voffset -1}${if_match ${cpu cpu1}<10}0${endif}${if_match ${cpu cpu1}<100}${if_match ${cpu cpu1}>=70}${color FFFE4E}${endif}${if_match ${cpu cpu1}>=90}${color 840000}${endif}0${endif}${if_match ${cpu cpu1}==100}${color 840000}${endif}${cpu cpu1}%${color}${offset 70}${if_match ${memperc}<10}0${endif}${if_match ${memperc}<100}${if_match ${memperc}>=70}${color FFFE4E}${endif}${if_match ${memperc}>=90}${color 840000}${endif}0${endif}${if_match ${memperc}==100}${color 840000}${endif}${memperc}%${color}${offset 40}${if_match ${swapperc}<10}0${endif}${if_match ${swapperc}<100}${if_match ${swapperc}>=70}${color FFFE4E}${endif}${if_match ${swapperc}>=90}${color 840000}${endif}0${endif}${if_match ${swapperc}==100}${color 840000}${endif}${swapperc}%${color}${offset 70}${if_match ${cpu cpu2}<10}0${endif}${if_match ${cpu cpu2}<100}${if_match ${cpu cpu2}>=70}${color FFFE4E}${endif}${if_match ${cpu cpu2}>=90}${color 840000}${endif}0${endif}${if_match ${cpu cpu2}==100}${color 840000}${endif}${cpu cpu2}%${color}
    ${offset 50}/${offset 90}C${offset 70}D${offset 80}G
    ${offset 50}${voffset -1}${if_match ${fs_used_perc /}>=70}${color FFFE4E}${endif}${if_match ${fs_used_perc /}>=90}${color 840000}${endif}${fs_used /}${color}${offset 60}${if_match ${fs_used_perc /media/C}>=70}${color FFFE4E}${endif}${if_match ${fs_used_perc /media/C}>=90}${color 840000}${endif}${fs_used /media/C}${color}${offset 30}${if_match ${fs_used_perc /media/D}>=70}${color FFFE4E}${endif}${if_match ${fs_used_perc /media/D}>=90}${color 840000}${endif}${fs_used /media/D}${color}${offset 70}${if_match ${fs_used_perc /media/G}>=70}${color FFFE4E}${endif}${if_match ${fs_used_perc /media/G}>=90}${color 840000}${endif}${fs_used /media/G}${color}
    ${offset 50}${voffset -1}${fs_size /}${offset 55}${fs_size /media/C}${offset 30}${fs_size /media/D}${offset 65}${fs_size /media/G}
    ${offset 50}${if_match ${wireless_link_qual_perc wlan0}<30}${color FFFE4E}${endif}${if_match ${wireless_link_qual_perc wlan0}<10}${color 840000}${endif}${wireless_essid wlan0}${color}${alignr}eth0
    ${offset 50}${addr wlan0}${alignr}${addr eth0}
    ${offset 50}${upspeed wlan0} / ${downspeed wlan0}${alignr}${upspeed eth0} / ${downspeed eth0}
    ${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=POXX0016 --datatype=WF}${alignr}${offset -70}${execi 600 conkyForecast --location=JAXX0071 --datatype=WF}
    ${offset 80}${voffset -105}${font Baroque Script:size=8}Lisbon${alignr}${offset -80}Osaka
    ${offset 80}${execi 600 conkyForecast --location=POXX0016 --datatype=HT --hideunits}c${alignr}${offset -80}${execi 600 conkyForecast --location=JAXX0071 --datatype=HT --hideunits}c
    ${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=POXX0016 --datatype=WF --startday=1}${alignr}${offset -70}${execi 600 conkyForecast --location=JAXX0071 --datatype=WF --startday=1}
    ${offset 80}${voffset -105}${font Baroque Script:size=8}Tomorrow${alignr}${offset -80}Tomorrow
    ${offset 80}${execi 600 conkyForecast --location=POXX0016 --datatype=HT --startday=1 --hideunits}c${alignr}${offset -80}${execi 600 conkyForecast --location=JAXX0071 --datatype=HT --startday=1 --hideunits}c
    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).
    
    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'.
    		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',
    		-- "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=0xffffff,
    		-- "fg_alpha" is the alpha value of the indicator part of the ring.
    		fg_alpha=0.6,
    		-- "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=200, y=150,
    		-- "radius" is the radius of the ring.
    		radius=87,
    		-- "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,
    		-- "color_coding" is the variable that defines if there's a colour state level
    		colour_coding=false,
    		-- "coding_direction" simply indicates if it's a countdown (false) or a status (true)
    		coding_direction=false,
    		-- "warning" is the value that defines the state of the warning
    		warning=0,
    		-- "warning_colour" is the value that defines the state of the warning
    		warning_colour=0xFFFE4E,
    		-- "danger" is the value that defines the state of the danger
    		danger=0,
    		-- "danger_colour" is the value that defines the state of the danger
    		danger_colour=0x840000
    	},
    	{
    		name='time',
    		arg='%M.%S',
    		max=60,
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.6,
    		x=200, y=150,
    		radius=125,
    		thickness=5,
    		start_angle=0,
    		end_angle=360,
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='time',
    		arg='%S',
    		max=60,
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.6,
    		x=200, y=150,
    		radius=135,
    		thickness=5,
    		start_angle=0,
    		end_angle=360,
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=370, y=250,
    		radius=25,
    		thickness=20,
    		start_angle=0,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=false,
    		warning=30,
    		warning_colour=0xFFFE4E,
    		danger=10,
    		danger_colour=0x840000
    	},	
    	
    	{
    		name='cpu',
    		arg='cpu1',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=45, y=390,
    		radius=25,
    		thickness=20,
    		start_angle=180,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='cpu',
    		arg='cpu2',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=370, y=390,
    		radius=25,
    		thickness=20,
    		start_angle=0,
    		end_angle=180,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='memperc',
    		arg='',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=140, y=390,
    		radius=25,
    		thickness=20,
    		start_angle=180,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='swapperc',
    		arg='',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=270, y=390,
    		radius=25,
    		thickness=20,
    		start_angle=0,
    		end_angle=180,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	
    	{
    		name='fs_used_perc',
    		arg='/',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=45, y=470,
    		radius=25,
    		thickness=20,
    		start_angle=180,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='fs_used_perc',
    		arg='/media/G',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=370, y=470,
    		radius=25,
    		thickness=20,
    		start_angle=0,
    		end_angle=180,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='fs_used_perc',
    		arg='/media/C',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=140, y=470,
    		radius=25,
    		thickness=20,
    		start_angle=180,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	{
    		name='fs_used_perc',
    		arg='/media/D',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=270, y=470,
    		radius=25,
    		thickness=20,
    		start_angle=0,
    		end_angle=180,
    		colour_coding=true,
    		coding_direction=true,
    		warning=70,
    		warning_colour=0xFFFE4E,
    		danger=90,
    		danger_colour=0x840000
    	},
    	
    	{
    		name='wireless_link_qual_perc',
    		arg='wlan0',
    		max=100,
    		ring="on",
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.8,
    		x=45, y=550,
    		radius=25,
    		thickness=20,
    		start_angle=180,
    		end_angle=360,
    		colour_coding=true,
    		coding_direction=false,
    		warning=30,
    		warning_colour=0xFFFE4E,
    		danger=10,
    		danger_colour=0x840000
    	},
    }
    
    -- 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=200	
    clock_y=150
    
    -- Colour & alpha of the clock hands
    hour_colour=0xffffff
    minute_colour=0xffffff
    second_colour=0xffffff
    clock_alpha=0.6
    
    -- 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, wa, wc, da, dc=pt['colour_coding'], pt['coding_direction'], pt['warning'], pt['warning_colour'], pt['danger'], pt['danger_colour']
    
    	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)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    	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))
    	if cc == true then
    		if cd == true then
    			if value >= wa and value < da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,fga))
    			elseif value >= da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,fga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		else
    			if value <= da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,fga))
    			elseif value <= wa then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,fga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		end
    	else
    		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	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.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,rgb_to_r_g_b(hour_colour,clock_alpha))
    	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_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+1.1*clock_r*math.sin(secs_arc)
    		ys=yc-1.1*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
    And yeah, the more time you spend on this thread, the more often you tear up your Conky.
    Attached Images Attached Images
    Last edited by proxess; October 18th, 2009 at 06:22 PM.
    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. #9868
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bozzy_ View Post
    Here is mine, still have to tweak it a little

    Edit: If anyone wants rc file let me know
    I just changed my rc so... I have to hold back... but that wallpaper... Where did you get it?
    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

  9. #9869
    Join Date
    Oct 2009
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Dear all!
    Here's my .conkyrc (feel free to modify it ):
    Code:
    use_xft yes
    xftfont OpenLogos DejaVu Sans Mono:size=8
    
    update_interval 1
    total_run_times 0
    double_buffer yes
    text_buffer_size 2048
    
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    minimum_size 180 0
    #maximum_width 230
    
    default_color white
    draw_shades no
    
    color0 white
    color1 E07A1F
    color2 green
    
    alignment top_right
    gap_x 20
    gap_y 40
    
    no_buffers no
    net_avg_samples 2
    
    override_utf8_locale yes
    
    no_buffers yes
    
    TEXT
    SYSTEM ${hr 2}
    ${voffset 2}${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
    ${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% ${alignr}${cpugraph cpu1 8,50}
    ${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,50}
    ${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,50}
    ${font StyleBats:size=16}8${font}   BAT: ${battery_percent BAT1}% ${alignr}${battery_bar 8,50 BAT1}
    ${font StyleBats:size=16}v${font}   Update: ${alignr}${execi 600 aptitude search "~U" | wc -l | tail} package(s)
    ${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
    
    HDD ${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
    ${voffset 4}${fs_used_perc /}%-${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,50 /}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}Home:
    ${voffset 4}${fs_used_perc /home}%-${fs_used /home}/${fs_size /home} ${alignr}${fs_bar 8,50 /home}
    
    ${if_existing /proc/net/route eth0}
    Networking ${hr 2}
    ${voffset 2}eth0${alignr}${addr eth0}
    ${voffset 2}Down: ${downspeed eth0} k/s
    ${alignr}${downspeedgraph eth0 20,150 88aadd 88aaee}
    ${voffset 2}Up: ${upspeed eth0} k/s
    ${alignr}${upspeedgraph eth0 20,150 88aadd 88aaee}
    ${endif}
    
    TIME ${hr 2}
    ${voffset 2}${font Arial Black:size=10}${time %H:%M}${alignr}${time %d %B %Y}${font}
    ${voffset 1}
    ${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignr} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color0}'" "/}
    
    ${if_existing /proc/net/route eth0}
    WEATHER ${hr 2}
    ${voffset 2}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=UPXX0054 --datatype=WF}${font}
    ${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=UPXX0054 --datatype=HT}${font}
    
    ${voffset 0}${alignc 48}${execpi 600 conkyForecast --location=RSXX0063 --datatype=DW --startday=1 --shortweekday} ${alignc 6}${execpi 600 conkyForecast --location=RSXX0063 --datatype=DW --startday=2 --shortweekday} ${alignc -38}${execpi 600 conkyForecast --location=RSXX0063 --datatype=DW --startday=3 --shortweekday} ${alignc -80}${execpi 600 conkyForecast --location=RSXX0063 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=RSXX0063 --datatype=WF --startday=1 --endday=4 --spaces=2}${font}
    ${voffset 0}${font DejaVu Sans:size=8}${alignc 50}${execpi 600 conkyForecast --location=RSXX0063 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=RSXX0063 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -12}${execpi 600 conkyForecast --location=RSXX0063 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=RSXX0063 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -48}${execpi 600 conkyForecast --location=RSXX0063 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=RSXX0063 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 2}${execpi 600 conkyForecast --location=RSXX0063 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=RSXX0063 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${endif}
    It looks like that:


    I would like to modify it to display current time vertically on the left side of the calendar. Looking forward for your advices! Thanks in advance!

  10. #9870
    Join Date
    Jul 2007
    Beans
    35

    Re: Post your .conkyrc files w/ screenshots

    I've been happy with this setup for a while now.
    conkyrc:

    background no
    cpu_avg_samples 2
    net_avg_samples 2
    total_run_times 0
    out_to_console no
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=10
    own_window_transparent yes
    own_window_colour purple
    xftalpha 0.8
    update_interval 1
    own_window yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_pager,skip_taskbar
    double_buffer yes
    maximum_width 227
    draw_shades no
    draw_outline no
    draw_borders no
    border_margin 4
    default_color yellow
    default_shade_color white
    default_outline_color white
    gap_x 3
    gap_y 13
    alignment top_right
    no_buffers yes
    uppercase no

    TEXT
    ${color cyan}Ubuntu 9.10a3 @ $nodename
    ${color orange}Kernel: $color $sysname $kernel
    ${color orange}Uptime: $color $uptime
    ${color orange}Battery: $color $battery
    ${color orange}Filesystem:${color red}${fs_used /} ${color #45F80B}free ${fs_free /}
    ${color red}$fs_used_perc% ${color red}used ${color red}${fs_bar /}
    ${color orange}RAM Usage: ${color red}$mem ${color}of $memmax
    ${color red}$memperc% ${color red}used $membar
    ${color orange}CPU Temp: $color ${acpitemp}${color}°C
    ${color red}${cpu}% used ${cpubar}
    ${color black}${cpugraph 000000 5000a0}
    ${color orange}Processes:$color $processes ${color orange}Running:$color $running_processes
    ${color orange}Name PID CPU% MEM%
    ${color }${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color }${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color }${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color }${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color }${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
    ${color cyan} Networking
    ${color green}Download ${color orange}Speed: ${color green}${downspeedf eth0}${color green} kB/s${color orange}
    ${color black}${downspeedgraph eth0 32,223 003000 00ff00}
    ${color green}Download ${color orange}Total: ${color green}${totaldown eth0}
    -----------------------------
    ${color red}Upload ${color orange}Speed: ${color red}${upspeedf eth0}${color red} kB/s
    ${color black}${upspeedgraph eth0 32,223 300001 ff0000}
    ${color red}Upload ${color orange}Total: ${color red}${totalup eth0}
    -----------------------------
    ${color cyan}Nullo Mountain Weather Data
    ${color #ABAFDE}Wind: ${font ConkyWindNESW:size=35}${execi 1800 conkyForecast --location=ASXX0271 --datatype=BS}${color yellow}${font} ${execi 1800 conkyForecast --location=ASXX0271 --datatype=WS} - ${execi 1800 conkyForecast --location=ASXX0271 --datatype=WD}
    ${color orange}Temperature: ${color yellow}${execi 1800 conkyForecast --location=ASXX0271 --datatype=HT --centeredwidth=4}
    ${color #2F3CCF}Humidity: ${color yellow}${execi 1800 conkyForecast --location=ASXX0271 --datatype=HM}
    ${color #2F3CCF}Rain: ${color yellow}${execi 1800 conkyForecast --location=ASXX0271 --datatype=PC}
    ${color #F72B0B}Sunrise: ${color yellow}${execi 1800 conkyForecast --location=ASXX0271 --datatype=SR}
    ${color #F72B0B}Sunset: ${color yellow}${execi 1800 conkyForecast --location=ASXX0271 --datatype=SS}
    Attached Images Attached Images

Page 987 of 2327 FirstFirst ... 4878879379779859869879889899971037108714871987 ... 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
  •