Page 1054 of 2284 FirstFirst ... 54554954100410441052105310541055105610641104115415542054 ... LastLast
Results 10,531 to 10,540 of 22835

Thread: Post your .conkyrc files w/ screenshots

  1. #10531
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Bruce,
    we're almost neighbors! I am here in "Hessen"... http://de.wikipedia.org/wiki/Hessen http://en.wikipedia.org/wiki/Hessen
    We "were" neighbours. (1980-84)

    But we are Conky-#!'er-neighbours. That's good enough.

    CHIMO!
    Bruce

  2. #10532
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    We "were" neighbours. (1980-84)

    But we are Conky-#!'er-neighbours. That's good enough.

    CHIMO!
    Bruce
    Yes, this is right!

    CHIMO!
    Stefan
    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

  3. #10533
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hi all!

    I've got a little problem: I wanted to compile Conky 1.7.2 on my Mandriva 2009.1 64Bit system (I know this is a Ubuntu - forum!). But I always get this message

    Code:
    checking for LUA ... yes
    checking for cairo ... yes
    checking for cairo_xlib ... yes
    checking for tolua ++... tolua + +
    checking for library containing tolua_error ... no
    configure: error: not found tolua_error
    I've tried, but all "tolua" Libraries are installed. Has anyone else an idea?

    On my 64Bit #! CrunchBang system, I installed it without problems!
    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

  4. #10534
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hi all!

    I've got a little problem: I wanted to compile Conky 1.7.2 on my Mandriva 2009.1 64Bit system (I know this is a Ubuntu - forum!). But I always get this message

    Code:
    checking for LUA ... yes
    checking for cairo ... yes
    checking for cairo_xlib ... yes
    checking for tolua ++... tolua + +
    checking for library containing tolua_error ... no
    configure: error: not found tolua_error
    I've tried, but all "tolua" Libraries are installed. Has anyone else an idea?

    On my 64Bit #! CrunchBang system, I installed it without problems!
    Do you have tolua-dev libraries/packages/rpm whatever?

    Try this anyway: http://rpm.pbone.net/index.php3/stat...1/search/conky
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 13.10 x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

  5. #10535
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    Time for some serious stuff.

    Technically, we can make buttons with Cairo, right? Meaning it may be possible to make buttons with Lua Cairo and Conky? Some feedback from the techies please if it is possible or not.
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 13.10 x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by proxess View Post
    Time for some serious stuff.

    Technically, we can make buttons with Cairo, right? Meaning it may be possible to make buttons with Lua Cairo and Conky? Some feedback from the techies please if it is possible or not.
    Technically, you can make SVGs with Cairo...Problem is that with Conky/Cairo, it basically just prints to a window every update_interval seconds; as far as I am aware, it doesn't have any way to watch for a keypress or a mouseclick. Not that I'm exactly an expert, but I'd be very interested to find out if anyone figures out how to do it, because then you could theoretically write a panel/dock with Conky!
    - 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. #10537
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    Technically, you can make SVGs with Cairo...Problem is that with Conky/Cairo, it basically just prints to a window every update_interval seconds; as far as I am aware, it doesn't have any way to watch for a keypress or a mouseclick. Not that I'm exactly an expert, but I'd be very interested to find out if anyone figures out how to do it, because then you could theoretically write a panel/dock with Conky!
    What if Cairo is looking for actions over the printed items, and not Conky?

    I had a teacher (and boss after I finished school) that said "Whatever you can do with a specific programming language, you can do with any programming language.
    This may seem like a long shot, and he was kind of nuts, but he was probably the smartest and most intelligent person I've ever met.
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 13.10 x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

  8. #10538
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Post your .conkyrc files w/ screenshots

    On a side-note, or not, some more Conky fun fun FUN!
    Messy
    Clean

    .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:bold:size=7
    xftalpha 1
    
    double_buffer yes
    minimum_size 1270 34
    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 D3D3D3
    #default_outline_color 1E1C1A
    #default_shade_color white
    own_window_colour ffffff
    
    alignment bottom_middle
    gap_x 0
    gap_y -118
    
    cpu_avg_samples 1
    net_avg_samples 1
    no_buffers yes
    text_buffer_size 1024
    
    #short_units true
    
    #Lua Scripts
    lua_load ~/.conkygui/scripts/background_mod.lua
    lua_load ~/.conkygui/scripts/rings_mod.lua
    lua_draw_hook_pre background
    lua_draw_hook_post rings
    
    TEXT
    
    ${offset 1220}${voffset -10}${font FreeMono:bold:size=8}${time %a}${font}
    ${offset 1220}${voffset -2}${font FreeMono:bold:size=8}${time %b}${font}
    
    ${offset 1240}${voffset -35}${font FreeSans:bold:size=18}${time %d}${font}
    ${offset 1230}${voffset -4}${font FreeSans:bold:size=10}${time %Y}${font}
    
    ${offset 1160}${voffset -49}${font FreeSans:bold:size=18}${time %H:}${font FreeSans:bold:size=14}${time %M}${font}
    ${offset 1182}${voffset -3}${font FreeSans:bold:size=10}${time %S}${font}
    
    ${offset 1070}${voffset -43}${execpi 1800 conkyForecast --location=POXX0016 --template=/home/proxess/.conkygui/templates/lisbonforecast.template}
    ${offset 970}${voffset -40}${execpi 1800 conkyForecast --location=JAXX0071 --template=/home/proxess/.conkygui/templates/osakaforecast.template}
    ${offset 900}${voffset -40}
    ${offset 900}${voffset 0}
    ${offset 900}${voffset 0}
    
    ${offset 870}${voffset -40}
    ${offset 870}${voffset 0}
    ${offset 870}${voffset 0}
    
    ${offset 24}${voffset -40}${if_match ${cpu cpu1}<10}0${endif}${if_match ${cpu cpu1}<100}0${endif}${cpu cpu1}%
    ${offset 24}${voffset 0}${exec sensors | grep "Core 0:" | cut -c15-16 ;}°C
    ${offset 6}${voffset 0}${if_match ${freq cpu1}<1000}0${endif}${freq cpu1}MHz
    
    ${offset 76}${voffset -40}${if_match ${cpu cpu2}<10}0${endif}${if_match ${cpu cpu2}<100}0${endif}${cpu cpu2}%
    ${offset 76}${voffset 0}${exec sensors | grep "Core 1:" | cut -c15-16 ;}°C
    ${offset 58}${voffset 0}${if_match ${freq cpu2}<1000}0${endif}${freq cpu2}MHz
    
    ${offset 108}${voffset -40}M
    ${offset 108}${voffset -4}m
    ${offset 108}${voffset -4}y
    ${offset 108}${voffset -2}
    
    ${offset 166}${voffset -38}
    ${offset 166}${voffset -4}S
    ${offset 166}${voffset -4}w
    ${offset 166}${voffset -4}p
    
    ${offset 116}${voffset -40}
    ${offset 116}${voffset 0}
    ${offset 116}${voffset 0}${if_match ${memperc}<10}0${endif}${if_match ${memperc}<100}0${endif}${memperc}%
    
    ${offset 140}${voffset -40}${if_match ${swapperc}<10}0${endif}${if_match ${swapperc}<100}0${endif}${swapperc}%
    ${offset 140}${voffset 0}
    ${offset 140}${voffset 0}
    
    ${offset 177}${voffset -40}W
    ${offset 177}${voffset -4}L
    ${offset 177}${voffset -4}a
    ${offset 177}${voffset -4}n
    
    ${offset 235}${voffset -38}${if_existing /sys/class/power_supply/BAT0/}B${endif}
    ${offset 235}${voffset -4}${if_existing /sys/class/power_supply/BAT0/}a${else}A${endif}
    ${offset 235}${voffset -4}${if_existing /sys/class/power_supply/BAT0/}t${else}c${endif}
    ${offset 235}${voffset -2}0
    
    ${offset 185}${voffset -40}
    ${offset 185}${voffset 0}
    ${offset 185}${voffset 0}${if_match ${wireless_link_qual_perc wlan0}<10}0${endif}${if_match ${wireless_link_qual_perc wlan0}<100}0${endif}${wireless_link_qual_perc wlan0}%
    
    ${offset 209}${voffset -40}${if_existing /sys/class/power_supply/BAT0/}${if_match ${battery_percent BAT0}<10}0${endif}${if_match ${battery_percent BAT0}<100}0${endif}${battery_percent BAT0}%${else}240V${endif}
    ${offset 209}${voffset 0}
    ${offset 209}${voffset 0}
    
    ${offset 24}${voffset -40}${if_match ${cpu cpu1}<10}0${endif}${if_match ${cpu cpu1}<100}0${endif}${cpu cpu1}%
    ${offset 24}${voffset 0}${exec sensors | grep "Core 0:" | cut -c15-16 ;}°C
    ${offset 6}${voffset 0}${if_match ${freq cpu1}<1000}0${endif}${freq cpu1}MHz
    
    ${offset 76}${voffset -40}${if_match ${cpu cpu2}<10}0${endif}${if_match ${cpu cpu2}<100}0${endif}${cpu cpu2}%
    ${offset 76}${voffset 0}${exec sensors | grep "Core 1:" | cut -c15-16 ;}°C
    ${offset 58}${voffset 0}${if_match ${freq cpu2}<1000}0${endif}${freq cpu2}MHz
    
    ${offset 247}${voffset -40}
    ${offset 247}${voffset 0}/
    ${offset 247}${voffset 0}
    
    ${offset 315}${voffset -40}
    ${offset 315}${voffset 0}G
    ${offset 315}${voffset 0}
    
    ${offset 247}${voffset -40}
    ${offset 247}${voffset 0}
    ${offset 247}${voffset 0}${fs_free /}
    
    ${offset 285}${voffset -40}${fs_free /media/G/}
    ${offset 285}${voffset 0}
    ${offset 285}${voffset 0}
    lisbonforecast.template
    Code:
    [--datatype=OB]
    ${offset 1070}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<10}0${endif}${endif}[--datatype=HT --hideunits]C
    ${offset 1082}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]<10}0${endif}${endif}[--datatype=HT --hideunits --startday=1]C
    
    ${offset 1030}${voffset -40}${image [--datatype=WI] -s 36x36 -p 1030,-6}
    ${offset 1112}${voffset 0}${image [--datatype=WI --startday=1] -s 36x36 -p 1112,8}
    ${offset 1070}${voffset 0}
    osakaforecast.template
    Code:
    [--datatype=OB]
    ${offset 970}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<10}0${endif}${endif}[--datatype=HT --hideunits]C
    ${offset 982}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]<10}0${endif}${endif}[--datatype=HT --hideunits --startday=1]C
    
    ${offset 930}${voffset -40}${image [--datatype=WI] -s 36x36 -p 930,-6}
    ${offset 1012}${voffset 0}${image [--datatype=WI --startday=1] -s 36x36 -p 1012,8}
    ${offset 970}${voffset 0}
    background_mod.lua I know, I should make it grab the get_ vars, too lazy.
    Code:
    require 'cairo'
    
    function rgb_to_r_g_b(colour,alpha)
    	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    corner_r_tr=32
    corner_r_br=32
    corner_r_tl=32
    corner_r_bl=32
     
    -- Set colour and transparency.
    bg_colour=0x000000
    bg_alpha=0.5
     
    function conky_background()
    	if conky_window==nil then return end
    	local w=conky_window.width
    	local h=conky_window.height-119
    	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_tr,0)
    	cairo_line_to(cr,w-corner_r_tr,0)
    	cairo_curve_to(cr,w,0,w,0,w,corner_r_tl)
    
    	cairo_line_to(cr,w,h-corner_r_br)
    	cairo_curve_to(cr,w,h,w,h,w-corner_r_br,h)
    
    	cairo_line_to(cr,corner_r_bl,h)
    	cairo_curve_to(cr,0,h,0,h,0,h-corner_r_bl)
    
    	cairo_line_to(cr,0,corner_r_tl)
    	cairo_curve_to(cr,0,0,0,0,corner_r_tl,0)
    	cairo_close_path(cr)
     
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    	cairo_fill(cr)
    end
    rings_mod.lua
    Code:
    settings_table = {
    	{
    		name='cpu', arg='cpu1',
    		max=100,
    		
    		x=12, y=12,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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=64, y=12,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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='memperc', arg='',
    		max=100,
    		
    		x=128, y=12,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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=153, y=22,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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='wireless_link_qual_perc', arg='wlan0',
    		max=100,
    		
    		x=197, y=12,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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='battery_percent', arg='BAT0',
    		max=100,
    		
    		x=222, y=22,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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='fs_free_perc', arg='/',
    		max=100,
    		
    		x=264, y=12,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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='fs_free_perc', arg='/media/G',
    		max=100,
    		
    		x=305, y=22,
    		radius=4, thickness=8,
    		start_angle=0, end_angle=360,
    		
    		bg_colour=0x000000, bg_alpha=0.2,
    		fg_colour=0xD3D3D3, 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
    	}
    }
    
    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,value)
    	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']
    	
    	-- 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(bgc,bga))
    	else
    		if cd == true then
    			if value < wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,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(bgc,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 conky_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)
    		
    		if pt['name'] == 'time' and pt['arg'] == '%I' then
    			local his=tonumber(str)*60*60
    			local mis=tonumber(conky_parse('${time %M.%S}'))*60
    			local secs=tonumber(conky_parse('${time %S}'))
    			value=his+mis+secs
    		elseif pt['name'] == 'time' and pt['arg'] == '%M.%S' then
    			local mis=tonumber(str)*60
    			local secs=tonumber(conky_parse('${time %S}'))
    			value=mis+secs
    		else
    			value=tonumber(str)
    		end
    		
    		pct=value/pt['max']
    
    		draw_ring(cr,pct,pt,value)
    	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
    end
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 13.10 x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

  9. #10539
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by proxess View Post
    On a side-note, or not, some more Conky fun fun FUN!
    Messy
    Clean
    subtle, nice

  10. #10540
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by proxess View Post
    On a side-note, or not, some more Conky fun fun FUN!
    Messy or clean = Nice stuff!

    Have a nice day.
    Bruce

Page 1054 of 2284 FirstFirst ... 54554954100410441052105310541055105610641104115415542054 ... 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
  •