Page 976 of 2302 FirstFirst ... 4768769269669749759769779789861026107614761976 ... LastLast
Results 9,751 to 9,760 of 23020

Thread: Post your .conkyrc files w/ screenshots

  1. #9751
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by DReeves922 View Post
    and just when I think I'm starting to figure things out, I come back with a new set of questions

    1) was looking at the ssc.sh tutorial on Conky Hardcore and noticed the file names of ~/Conky/conkymain, etc instead of .conkyrc. Can you rename/move them because of the ssc.sh file?

    2) I created the ssc.sh file, and made a launcher for it on the desktop, but it naturally says I don't permission. What did I do wrong?
    Edit: and also, should the scc.sh file go into the Conky folder or leave it where the .conkyrc file is?

    3) Would it be possible to set this as a key command instead of the launcher?

    4) How about adding some more finer details to Conky Hardcore for those of us that are still in the shallow pool of Ubuntu? >_>
    This page from the site you were just looking at
    should answer all your questions:
    HowTo: A Beginners Guide to Setting up Conky

  2. #9752
    Join Date
    Oct 2009
    Beans
    12

    Re: Post your .conkyrc files w/ screenshots

    oh... right....

    I suck

  3. #9753
    Join Date
    Aug 2009
    Location
    Chicagoland
    Beans
    55
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by idigchess View Post
    How would I make my conky background semi-transparent? I can't use it without a background on all of my desktops, but when I have the background, it's really ugly to have the black strip down the side of my screen. Also, is it possible for me to make my conky background green instead of black? Any suggestions? Thanks!
    I've played around with it a bit. It's fairly straight forward. If you've got own window transparent set to no, add a line that is something like

    own_window_colour 245319

    That number is obviously just one hex shade of green. You can also specify an RGB color value. I'm not sure if it is possible to make the window semi-transparent. Hopefully someone with more advanced knowledge of conky can help out there.

  4. #9754
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    you could look into this as well...

    http://conky.linux-hardcore.com/?page_id=3002
    || Kubuntu x86_64 (12.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Razer Lachesis Gaming Mouse || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  5. #9755
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dmillerct View Post
    One little caveat that I have discovered is that whatever value conky returns has to be purely numerical. This is so the ring lua script can do the proper math to format it in a circle. An example of this would be ${downspeed} This variable will not work because it returns with Mib after the number, however ${downspeedf} returns just the number value and will then work fine.

    So to get back to your question, if you can get conky to output it numerically then yes it could work. However I am not sure if conky has that variable built in currently.
    [..]"Yes, we can!"[..]

    You can allways rule out any non numerical character by string manipulation ( LUA code ):
    Code:
    string_variable = string.gsub(string_variable, "[a-zA-Z]", "")
    Last edited by dk75; October 11th, 2009 at 09:05 AM.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  6. #9756
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dmillerct View Post
    You would have to ask londonali1010 to be sure but I think only native conky variables can be used in rings.lua.

    execi just calls an external program and therefore I don't think it counts.
    [..]"Yes, we can!"[..]

    You can call external command with LUA too:
    Code:
    local f = io.popen("cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3}'")
    local bat_level = f:read("*a")
    f:close()
    or use this sofisticated user function from stackoverflow.com given by Norman Ramsey
    Code:
    function os.capture(cmd, raw)
      local f = assert(io.popen(cmd, 'r'))
      local s = assert(f:read('*a'))
      f:close()
      if raw then return s end
      s = string.gsub(s, '^%s+', '')
      s = string.gsub(s, '%s+$', '')
      s = string.gsub(s, '[\n\r]+', ' ')
      return s
    end

    usage
    Code:
    bat_level = os.capture("cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3}'")
    Last edited by dk75; October 11th, 2009 at 09:05 AM.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  7. #9757
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hi all,
    I had the idea to show graphically my virtual desktops (total 4) with a ring (see picture)! The ring is divided into four parts:
    Desktop 1, First Quarter. Desktop 2 is the half-ring, etc.
    Only if I change the desktop, then crashes conky? No idea why!



    The Skript ist londonali1010's:
    http://conky.linux-hardcore.com/?page_id=2800

    and my idea:
    Code:
    ....
    {
            name='desktop',
            arg='',
            max=4,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0x00BFFF,
            fg_alpha=0.4,
            x=700, y=200,
            radius=60,
            thickness=30,
            start_angle=0,
            end_angle=360
        },
    ....
    When I Conky individually on each desktop views graphically showing me the ring on your right parts, so does it work. But when I change from one desktop to another crash Conky from complete!
    Last edited by searchOne; October 11th, 2009 at 10:31 AM.
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  8. #9758
    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 dk75 View Post
    [..]"Yes, we can!"[..]

    You can call external command with LUA too:
    Code:
    local f = io.popen("cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3}'")
    local bat_level = f:read("*a")
    f:close()
    or use this sofisticated user function from stackoverflow.com given by Norman Ramsey
    Code:
    function os.capture(cmd, raw)
      local f = assert(io.popen(cmd, 'r'))
      local s = assert(f:read('*a'))
      f:close()
      if raw then return s end
      s = string.gsub(s, '^%s+', '')
      s = string.gsub(s, '%s+$', '')
      s = string.gsub(s, '[\n\r]+', ' ')
      return s
    end

    usage
    Code:
    bat_level = os.capture("cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3}'")
    My apologies, I was talking about the script in its current state. Most of us are LUA noobs. Its good to know that LUA can handle all these little issues however.
    Registered Ubuntu User #29430

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

    Re: Post your .conkyrc files w/ screenshots

    I'm working on these right now. I wanna thank you all for your help (aka your scripts). I added and removed and modified them a little bit, but I left the headers. I'm still working on it at the moment.

    Just having one problem. How do I make the Hour ring follow the Hour hand? It's the only one that doesn't work how I want it to.

    Edit: The minute one is the same, it's just not very noticeable because it's smaller.

    clock.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.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    	lua_load ~/scripts/clock_rings.lua
    	lua_draw_hook_pre clock_rings
    ]]
    
    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=0xaaaaaa,
    		-- "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=150, 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
    	},
    	{
    		name='time',
    		arg='%M.%S',
    		max=60,
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xaaaaaa,
    		fg_alpha=0.6,
    		x=150, y=150,
    		radius=125,
    		thickness=5,
    		start_angle=0,
    		end_angle=360
    	},
    	{
    		name='time',
    		arg='%S',
    		max=60,
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xaaaaaa,
    		fg_alpha=0.6,
    		x=150, y=150,
    		radius=135,
    		thickness=5,
    		start_angle=0,
    		end_angle=360
    	},
    }
    
    -- 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=150	
    clock_y=150
    
    -- Colour & alpha of the clock hands
    hour_colour=0x555555
    minute_colour=0x555555
    second_colour=0xeeeeee
    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)
    
    	-- Draw background ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    	cairo_set_line_width(cr,ring_w)
    	cairo_stroke(cr)
    
    	-- Draw indicator ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	cairo_stroke(cr)
    end
    
    
    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
    .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 300 300
    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 A8AACC
    #default_outline_color 1E1C1A
    #default_shade_color white
    own_window_colour gray
    
    alignment top_right
    gap_x 12
    gap_y 20
    
    cpu_avg_samples 1
    net_avg_samples 1
    no_buffers yes
    
    #Lua Scripts
    lua_load ~/.conkygui/scripts/clock.lua
    lua_draw_hook_pre clock_rings
    
    
    TEXT
    ${offset 73}${voffset 113}${color AAAAAA}${font Baroque Script:size=15}${time %b}${offset 40}${time %a}${offset 25}${time %d}
    ${offset 118}${voffset 60}${color AAAAAA}${font Baroque Script:size=8}${time %p}
    Attached Images Attached Images
    Last edited by proxess; October 11th, 2009 at 01:03 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

  10. #9760
    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 DReeves922 View Post
    oh... right....

    I suck
    With the exception of Crinos512, I think everyone on this board sucked at one point. Embrace it, love it, and when you become a conky GOD like Bruce, look back and LOL.

    Registered Ubuntu User #29430

Page 976 of 2302 FirstFirst ... 4768769269669749759769779789861026107614761976 ... 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
  •