Page 12 of 260 FirstFirst ... 210111213142262112 ... LastLast
Results 111 to 120 of 2592

Thread: HOWTO: VinDSL Conky Script

  1. #111
    Join Date
    Sep 2010
    Beans
    5

    Re: HOWTO: VinDSL Conky Script

    Remove (tm) and the last 10 character
    Code:
    cat /proc/cpuinfo | grep 'model name' | uniq | cut -f 2 -d ':' | sed 's/.\{10\}$//' | sed 's/.tm.//;s/.\(.*\)/\1/'
    Replace ATI to ATI[ and cut to first [ char and from second [ char and the end it replace [ with space and remove ]... so the final is ATI Radeon HD 4350
    Code:
    lspci | grep VGA | cut -f 3 -d ':' | sed 's/.ATI./ATI[/' | cut -f -1,3- -d '[' | sed 's/\[/ /;s/\]//'
    Quote Originally Posted by blackoutfh View Post
    It's to long in my opinion I would prefer
    AMD Athlon II X2 250 ----> I would trim the (tm) and the Processor
    ATI Radeon HD4350 ---> I would trim the TechnologiesINC and optional the [] or not and the coretyle RV710 at the end optional

    just an idea

  2. #112
    Join Date
    Apr 2007
    Beans
    195

    Re: HOWTO: VinDSL Conky Script

    Uh, Guys? I'd appreciate it if you brought this kind of thing to the Conky thread, not this one. It's not that it doesn't belong here, it's just that, if you're going to bring up "A different way of doing things" the Conky thread has a bigger, more vocal, audience that is more willing to give you feedback. It's better for you and everyone else if you brought it to them.

    Not that I don't appreciate your particular take on VinDSL's script, or that you want to give the guy ideas. It's just... This kind of "New Idea!" stuff belongs at the Conky thread, where this thread is supposed to be strictly about getting new people going on Conky using VinDSL's scripts. I know you didn't mean any harm by it, it's just that some new users might read the howto, go to the last page and see what you've done. New users get confused by this stuff really easily. I try to write the HowTo to get them to the point where it doesn't as fast as possible, but it still lessens the "Dumb Questions" if you keep your new ideas in the Conky thread.

    VinDSL and I wanted this thread to lessen the "Dumb Questions" as much as possible. It's kind of an efficiency thing. You guys aren't in trouble or anything, but I would really like it if you shared this with the Conky thread instead of here. Thanks guys.

  3. #113
    Join Date
    Sep 2010
    Beans
    5

    Re: HOWTO: VinDSL Conky Script

    Yepp, you are right. I was too enthusiastic and I cannot see where am I. Sorry for destroying

  4. #114
    Join Date
    Apr 2007
    Beans
    195

    Re: HOWTO: VinDSL Conky Script

    You didn't destroy anything. I'm just seeing an upswing in people thinking this thread is about sharing what they're doing with VinDSL's scripts. That's... nifty and all... just... the Conky thread is there for that kind of thing. That people are coming here to do it is kind of... odd to me.

    Kinda like someone shouting "I Like Baseball!" when they're in line to get into a Football game. It's not bad, you're not going to get into trouble, but the people around you are definitely going to look at you funny.

    This is a HowTo thread. If it's not VinDSL with a mini-howto for fixing or troubleshooting some problem he's found with his scripts, me updating the main HowTo post and leaving notice of it, or someone bringing up where they just can't seem to get things going for one reason or another (AKA, someone ASKING How TO FIX something) then it really belongs in the big Conky thread. That's really their purpose. To show off what you've got and share your solutions with the community. THEY won't look at you funny. In fact, they may hug you. I'm not promising it, it's more of a metaphor, but new/nifty ways to do things makes them very happy and friendly over there.

    If you're trying to share your idea with VinDSL or myself... well... don't. Share it with the community in general, AKA the Conky Thread. We read them there too. If it's a really good idea, VinDSL will pick it up, twist it into some unholy monstrosity, put his name/style into it, and force me to learn it for the next version of the HowTo anyways. (I kid of course. I get a ton of fun out of picking on Vin, and his weird sense of humour.)

    So, I appreciate the work guys... it's just... It belongs in the Conky Thread a lot more than it does here.

  5. #115
    Join Date
    Apr 2007
    Beans
    195

    Re: HOWTO: VinDSL Conky Script

    UPDATE:

    Apparently I missed the part where Conky Pitstop changed their URL. Remedied now. The link works once again! Huzzah!

    Okay. Carry on with your day and ignore the crazy person with the keyboard.

  6. #116
    Join Date
    Apr 2007
    Beans
    195

    Re: HOWTO: VinDSL Conky Script

    This has been requested of me by VinDSL in a PM. I'm posting these two lua functions for him.

    The old Calendar Box code I started with.
    Code:
    --################################################################################
    --Box Function
    --################################################################################
    do
    
    require "cairo"
    local cs, cr = nil
    
    local function conky_set_the_font(cr, fface, fsize, fbold)
    		if fbold == 1 then
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD)
    		else
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
    		end
    		cairo_set_font_size(cr, fsize)
    end
    
    local function conky_draw_date(cr, extents, string, fred, fgreen ,fblue, falpha, tacross, down)
    		cairo_set_source_rgba(cr, fred, fgreen, fblue, falpha)
    		cairo_move_to(cr, tacross - (extents.width /2 ), down)
    		cairo_show_text(cr, string)
    end
    
    function conky_draw_box(cs, cr)
    	if conky_window == nil then return end
    	if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    	cr = cairo_create(cs)
    	local updates = tonumber(conky_parse('${updates}'))
    	--####################################################################################################
    	if updates>5 then -- starts the display
    	--####################################################################################################
    		--Weekday text color
    		local wred, wgreen, wblue, walpha = 1, 1, 1, 1
    		--Weekday text font
    		local wfont = "TransponderAOE"
    		--Weekday text size
    		local wfontsize = 16
    		--Weekday font bold? Set to 1 for bold font
    		local wfbold = 1
    		--###################################################
    		--Month text color
    		local mred, mgreen, mblue, malpha = 1, 0, 0, 1
    		--Month text font
    		local mfont = "TransponderAOE"
    		--Month text size
    		local mfontsize = 18
    		--Month font bold? Set to 1 for bold font
    		local mfbold = 1
    		--###################################################
    		--Day text color
    		local dred, dgreen, dblue, dalpha = 1, 1, 0, 1
    		--Day font
    		local dfont = "TransponderAOE"
    		--Day size
    		local dfontsize = 30
    		--Day font bold? Set to 1 for bold font
    		local dfbold = 1
    		--###################################################
    		--Year text color
    		local yred, ygreen, yblue, yalpha = 1, 1, 1, 1
    		--year font
    		local yfont = "TransponderAOE"
    		--Year size
    		local yfontsize = 18
    		--Year font bold? Set to 1 for bold font
    		local yfbold = 1
    		--###################################################
    		--indicator box enter 1 for box or 0 for no box
    		local box = 1
    		--use the following 2 numbers to adjust box position
    		local xadjust = 20
    		local yadjust = 180
    		--set the box dimensions
    		local width = 104
    		local height = 110
    		--box thickness
    		local bthick = 5
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 1, 0, 0, 1
    		--###################################################
    		--Today's Date Box ###############################
    		--###################################################
    		--position
    		local down = yadjust + bthick
    		--###################################################
    		--gap from sides
    		local gaph = 10
    		--###################################################
    		--variables (need to set font face, font size and text string in order to populate text extents structure with text measurements)
    		-- Weekday
    		local wdays = os.date("%A")
    		local ext_wdays = cairo_text_extents_t:create()
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		cairo_text_extents(cr, wdays, ext_wdays)
    		-- Month
    		local month = os.date("%B")
    		local ext_month = cairo_text_extents_t:create()
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		cairo_text_extents(cr, month, ext_month)
    		-- Today
    		local today = tonumber(os.date("%d"))
    		local ext_today = cairo_text_extents_t:create()
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		cairo_text_extents(cr, today, ext_today)
    		-- Year
    		local year = os.date("%G")
    		local ext_year = cairo_text_extents_t:create()
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		cairo_text_extents(cr, year, ext_year)
    		-- text across box center axis
    		local tacross = xadjust + (width / 2)
    		-- gap between lines (with 4 lines it will be 3 gaps)
    		local gapl = (height - (bthick * 2) - (gaph * 2) - ext_wdays.height - ext_month.height - ext_today.height - ext_year.height) / 3
    		--###################################################
    		--print box 
    		--###################################################
    		--Weekday
    		down = down + gaph + ext_wdays.height
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		conky_draw_date(cr, ext_wdays, wdays, wred, wgreen ,wblue, walpha, tacross, down)
    		--Month
    		down = down + gapl + ext_month.height
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		conky_draw_date(cr, ext_month, month, mred, mgreen ,mblue, malpha, tacross, down)
    		--Day
    		down = down + gapl + ext_today.height
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		conky_draw_date(cr, ext_today, today, dred, dgreen ,dblue, dalpha, tacross, down)
    		--Year
    		down = down + gapl + ext_year.height
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		conky_draw_date(cr, ext_year, year, yred, ygreen ,yblue, yalpha, tacross, down)
    		--box around
    		if box == 1 then
    			cairo_set_source_rgba(cr, bxred, bxgreen, bxblue, bxalpha)
    			cairo_rectangle(cr, xadjust, yadjust, width, height)
    			cairo_set_line_width(cr, bthick)
    			cairo_stroke(cr)
    		end
    		cairo_stroke(cr)
    		--#################################################################################
    	end--end if 5
    end--end box function
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end
    The new function code, modified to be a label with a box.
    Code:
    --################################################################################
    --Box Function
    --################################################################################
    do
    
    require "cairo"
    local cs, cr = nil
    
    local function conky_set_the_font(cr, fface, fsize, fbold)
    		if fbold == 1 then
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD)
    		else
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
    		end
    		cairo_set_font_size(cr, fsize)
    end
    
    local function conky_draw_label(cr, extents, string, fred, fgreen ,fblue, falpha, tacross, down)
    		cairo_set_source_rgba(cr, fred, fgreen, fblue, falpha)
    		cairo_move_to(cr, tacross - (extents.width /2 ), down)
    		cairo_show_text(cr, string)
    end
    
    function conky_draw_box(cs, cr)
    	if conky_window == nil then return end
    	if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    	cr = cairo_create(cs)
    	local updates = tonumber(conky_parse('${updates}'))
    	--####################################################################################################
    	if updates>5 then -- starts the display
    	--####################################################################################################
    		--Number text color
    		local nred, ngreen, nblue, nalpha = 1, 1, 1, 1
    		--Number text font
    		local nfont = "DiamondFantasy"
    		--Number text size
    		local nfontsize = 20
    		--Number font bold? Set to 1 for bold font
    		local nfbold = 0
    		--Number Label
    		local numlabel="25"
    		--###################################################
    		--Unit text color
    		local ured, ugreen, ublue, ualpha = 1, 1, 1, 1
    		--Unit font
    		local ufont = "DiamondFantasy"
    		--Unit size
    		local ufontsize = 20
    		--Unit font bold? Set to 1 for bold font
    		local ufbold = 0
    		--Unit Label
    		local unitlabel="GB"
    		--###################################################
    		--Text text color
    		local txred, txgreen, txblue, txalpha = 1, 1, 1, 1
    		--Text font
    		local txfont = "DiamondFantasy"
    		--Text size
    		local txfontsize = 20
    		--Text font bold? Set to 1 for bold font
    		local txfbold = 0
    		--Text Label
    		local txtlabel="Total Allowed"
    		--###################################################
    		--indicator box enter 1 for box or 0 for no box
    		local box = 1
    		--use the following 2 numbers to adjust box position
    		local xadjust = 230
    		local yadjust = 955
    		--set the box dimensions
    		local width = 90
    		local height = 90
    		--box thickness
    		local bthick = 2
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 0, 0.5, 0, 1
    		--###################################################
    		--Today's Date Box ###############################
    		--###################################################
    		--position
    		local down = yadjust + bthick
    		--###################################################
    		--gap from sides
    		local gaph = 10
    		--###################################################
    		--gap from top of box
    		local gaptb = 25
    		--###################################################
    		--gap between labels adjustment
    		local gapla = 10
    		--###################################################
    		--variables (need to set font face, font size and text string in order to populate text extents structure with text measurements)
    		-- Number
    		local ext_numlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, nfont, nfontsize, nfbold)
    		cairo_text_extents(cr, numlabel, ext_numlabel)
    		-- Unit
    		local ext_unitlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, ufont, ufontsize, ufbold)
    		cairo_text_extents(cr, unitlabel, ext_unitlabel)
    		-- Text
    		local ext_txtlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, txfont, txfontsize, txfbold)
    		cairo_text_extents(cr, txtlabel, ext_txtlabel)
    		-- text across box center axis
    		local tacross = xadjust + (width / 2)
    		-- gap between lines (with 4 lines it will be 3 gaps)
    		local gapl = (height - (bthick * 2) - (gaph * 2) - ext_numlabel.height - ext_unitlabel.height - ext_txtlabel.height - gapla) / 3
    		--###################################################
    		--print box 
    		--###################################################
    		--Number
    		down = down + gapl + gaptb + ext_numlabel.height
    		conky_set_the_font(cr, nfont, nfontsize, nfbold)
    		conky_draw_label(cr, ext_numlabel, numlabel, nred, ngreen ,nblue, nalpha, tacross, down)
    		--Unit
    		down = down + gapl + ext_unitlabel.height
    		conky_set_the_font(cr, ufont, ufontsize, ufbold)
    		conky_draw_label(cr, ext_unitlabel, unitlabel, ured, ugreen , ublue, ualpha, tacross, down)
    		--Text
    		down = down + gapl + ext_txtlabel.height
    		conky_set_the_font(cr, txfont, txfontsize, txfbold)
    		conky_draw_label(cr, ext_txtlabel, txtlabel, txred, txgreen ,txblue, txalpha, tacross, down)
    		--box around
    		if box == 1 then
    			cairo_set_source_rgba(cr, bxred, bxgreen, bxblue, bxalpha)
    			cairo_rectangle(cr, xadjust, yadjust, width, height)
    			cairo_set_line_width(cr, bthick)
    			cairo_stroke(cr)
    		end
    		cairo_stroke(cr)
    		--#################################################################################
    	end--end if 5
    end--end box function
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end
    First one is called the old way, the new one is called using a ${lua conky_draw_label} object in the TEXT area. Screenshots of both.
    Attached Images Attached Images

  7. #117
    Join Date
    Jun 2011
    Beans
    33

    Re: HOWTO: VinDSL Conky Script

    Thanks for the great HowTo, I would never have got it working the way it currently is.


  8. #118
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,991
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Good job, Zephilinox!
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  9. #119
    Join Date
    Jun 2011
    Beans
    33

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    Good job, Zephilinox!
    Couldn't have done it without your conky scripts ^.^, although I did have to edit the weather script a fair bit for it to output what I wanted.

    I assume its alright to post to my version of the .conkyrc? here it is, 1680x1050 resolution, I used the conkyKeyring and conkyEmail scripts so that if I have no new email messages it says "No New Messages." if I have one new message it says "1 New Message." and if I have more than one, it says "2 New Messages." with the number being highlighted in color5.

    I also changed the window type to panel rather than normal, which seems to be exactly the same as normal except for the fact when I click the Show Desktop button, conky doesn't get hidden.

    another little tweak was adding a space in between the minutes and the AM/PM for the clock, makes it nicer to read.

    Code:
    ##################################
    ## VinDSL | rev. 11-12-01 20:20 ##
    ##################################
    ##     December 2011 Series     ##
    ##################################
    
    ## ¡PLEASE READ THE FINE PRINT! ##
    
    ####
    ## Development Platforms (current)
    #
    #  Ubuntu 10.10 'Maverick Meerkat' (GNOME 2.28 - Conky 1.8.0)
    #  Ubuntu 12.04 'Precise Pangolin' (GNOME-SHELL - UNITY 2D/3D - Conky 1.8.1)
    #  Screen Resolution: 1280x1024x24 (DELL UltraSharp 1907FP)
    
    ####
    ## Prerequisites (required)
    #
    #  conky-all 1.8.0 or 1.8.1
    #  cURL - Command Line Tool
    #  xsltproc - Command Line Tool
    #  UTF-8 Compatible Text Editor
    
    ####
    ## Installed fonts (required)
    #
    #  ConkyWeather (Stanko Metodiev)
    #  Cut Outs for 3D FX (Fonts & Things)
    #  Droid Font Family (Google Android SDK)
    #  KR A Round (Kat's Fun Fonts)
    #  OpenLogos (Icoma)
    #  PizzaDude Bullets (Jakob Fischer)
    #  Radio Space (Iconian Fonts)
    #  StyleBats (Vinterstille)
    #  Ubuntu Font Family (Canonical Ltd)
    #  Ubuntu Title Bold (Paulo Silva - not included in link below)
    #  Weather (Jonathan Macagba)
    # 
    ## Tips n' Tricks from Mr. Peachy, djyoung4, and 42dorian (Thanks!)
    ## Most necessary fonts can be downloaded here: http://ompldr.org/vOHdoag
    ## Unzip the fonts into your font folder, for example: /home/username/.fonts
    ## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv
    
    ####
    ## Use XFT? Required to Force UTF8 (see below)
    #
    use_xft yes
    xftfont DroidSans:size=10
    xftalpha 0.1
    
    ####
    ## Force UTF8? Requires XFT (see above)
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## This buffer is used for text, single lines, output from $exec, and other variables.
    ## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
    ## Decreasing the size (too low) will truncate content and cause strange display output.
    ## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
    #
    text_buffer_size 640
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 2.0
    
    ####
    ## The number of times Conky will update before quitting.
    ## Zero makes Conky run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window in instead of using desktop?
    #
    own_window yes
    own_window_transparent yes
    own_window_type panel
    own_window_class conky-semi
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    ####
    ## Some distros also require the following 2 lines.
    #
    own_window_argb_visual yes
    own_window_argb_value 255
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades yes
    default_shade_color 292421
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders no
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment top_right
    
    ####
    ## Minimum size of the text area.
    ## Syntax: minimum_size [width] [height]
    #
    minimum_size 240 1660
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 240
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 6      ## Left / Right
    gap_y 8  ## Top / Bottom
    
    ####
    ## Shorten MiB/GiB to M/G in stats.
    #
    short_units yes
    
    ####
    ## Pad % symbol spacing after numbers.
    #
    pad_percents 0
    
    ####
    ## Pad spacing between text and borders.
    #
    border_inner_margin 4
    
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 10
    
    ####
    ## Subtract file system -/+buffers/cache from used memory?
    ## Set to yes, to produce meaningful physical memory stats.
    #
    no_buffers yes
    
    ####
    ## Set to yes, if you want all text to be in UPPERCASE.
    #
    uppercase no
    
    ####
    ## Number of cpu samples to average.
    ## Set to 1 to disable averaging.
    #
    cpu_avg_samples 1
    
    ####
    ## Number of net samples to average.
    ## Set to 1 to disable averaging.
    #
    net_avg_samples 1
    
    ####
    ## Add spaces to keep things from moving around?
    ## Only affects certain objects.
    #
    use_spacer right
    
    ####
    ## My colors (suit yourself)
    #
    color0 White        #FFFFFF
    color1 Ivory        #FFFFF0
    color2 Ivory2        #EEEEE0
    color3 Ivory3        #CDCDC1
    color4 FFA000        #FFA000
    color5 FFAA32        #FFA032
    color6 Gray        #7E7E7E
    color7 AntiqueWhite4    #8B8378
    color8 DimGray        #696969
    color9 Tomato        #FF6347
    color10 Tan3        #FFA54F
    color11 Tan4        #EE9A49
    
    #####
    ## Load Lua for shading (optional)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    ####
    ## Load Lua for bargraphs (required)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/bargraph_small.lua
    lua_draw_hook_post main_bars
    
    TEXT
    ##################################
    ##             LOGO             ##
    ##################################
    ## Uncomment for hard-coded ID (static)
    #${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}1${offset 1}2${offset 1}.${offset 0}0${offset 0}4${font}
    ####
    ## Uncomment for soft-coded ID (dynamic)
     ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
    ####
    ## Additional ID (branch version, code name, release date, etc.)
    ${voffset -1}${goto 188}${font Ubuntu-B:size=8.1}${color4}alpha 1${font}
    ##################################
    ##            SYSTEM            ##
    ##################################
    ${voffset 7}${font DroidSans:bold:size=8.25}${color5}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
    # ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
    ${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
    ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia 460 GTX${alignr}${font DroidSans:size=8.3}${pre_exec dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}Intel${offset 3}Quad${offset 3}Core${offset 3}Q6600${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
    ##################################
    ##          PROCESSORS          ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color5}PROCESSORS${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU0${offset 5}${font DroidSans:size=8.3}${cpu cpu0}%${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU3${offset 5}${font DroidSans:size=8.3}${cpu cpu3}%${font}
    ##################################
    ##            MEMORY            ##
    ##################################
    ${voffset 5}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
    ##################################
    ##             HDD              ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color5}HDD${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 6}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}Root${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
    ${voffset 15}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}Storage${goto 95}${font DroidSans:size=8.3}${fs_used /media/Storage/}${goto 133}/${offset 5}${fs_size /media/Storage/}${alignr}${fs_free_perc /media/Storage/}%${font}
    ${voffset 15}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}Ex. Storage${goto 95}${font DroidSans:size=8.3}${fs_used /media/External Storage/}${goto 133}/${offset 5}${fs_size /media/External Storage/}${alignr}${fs_free_perc /media/External Storage/}%${font}
    ##################################
    ##         TOP PROCESSES        ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color5}TOP PROCESSES${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 1}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 2}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 3}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 4}${alignr}${top_mem mem 4}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
    ##################################
    ##           NETWORK            ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color5}NETWORK${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown eth0}${alignr}${font DroidSans:size=8.3}${downspeed eth0}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.65}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup eth0}${alignr}${font DroidSans:size=8.3}${upspeed eth0}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.5}LAN${alignr}${font DroidSans:size=8.3}${addr eth0}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${alignr}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
    ##################################
    ##     WEATHER (Imperial)       ##
    ##################################
    #${voffset 4}${font DroidSans:bold:size=8.25}${color5}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset -55}${font RadioSpace:size=34}${color3}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" ctbi}${font}${voffset -28}${goto 33}${font Weather:size=42}${color3}y${font}
    #${voffset -38}${font Ubuntu:size=8.63}${color5}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" ctti}${font}
    #${voffset -39}${font KRARound:size=36}${color3}${goto 195}I${font}
    #${voffset 6}${font Ubuntu:size=23}${color5}${alignc -2}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" ccb}${font}
    #${voffset 8}${font DroidSansFallback:size=8.63}${color3}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ"}${font}
    #${voffset -57}${font ConkyWeather:size=48}${color6}${alignc -55}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" cp}${font}
    #${voffset 6}${font DroidSansMono:bold:size=8.62}${color4}${offset 40}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" dl}${font}
    #${voffset 0}${font ConkyWeather:size=37.9}${color3}${offset 26}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" fcp}${font}
    #${voffset 0}${font DroidSansFallback:bold:size=8.62}${color4}${offset 28}${execi 1800 /home/z/.conky/weather/weather.sh "Scottsdale,AZ" fcti}${font}
    ##################################
    ##      WEATHER (Metric)        ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8.25}${color5}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset -55}${font RadioSpace:size=34}${color3}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" ctbm}${font}${voffset -28}${goto 33}${font Weather:size=42}${color3}y${font}
    #${voffset -38}${font Ubuntu:size=8.63}${color5}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" cttm}${font}
    #${voffset -39}${font KRARound:size=36}${color3}${goto 195}I${font}
    #${voffset 6}${font Ubuntu:size=23}${color5}${alignc -2}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" ccb}${font}
    #${voffset 8}${font DroidSansFallback:size=8.63}${color3}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk"}${font}
    #${voffset -57}${font ConkyWeather:size=48}${color6}${alignc -55}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" cp}${font}
    #${voffset 6}${font DroidSansMono:bold:size=8.62}${color5}${offset 40}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" dl}${font}
    #${voffset 0}${font ConkyWeather:size=37.9}${color3}${offset 26}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" fcp}${font}
    #${voffset 0}${font DroidSansFallback:bold:size=8.62}${color4}${offset 35}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" fctm}${font}
    #################
    #${voffset 0}${font Ubuntu:size=16}${color5}${alignc 0}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" ccb}${font}
    ${voffset -4}${font RadioSpace:size=24}${color3}${alignc 0}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" ctbm}${font}
    ${voffset 0}${font DroidSansFallback:size=8.63}${color3}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk"}${font}
    ${voffset 0}${font ConkyWeather:size=37.9}${color3}${alignc 0}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" fcp}${font}
    ${voffset 0}${font DroidSansMono:bold:size=8.62}${color5}${alignc 0}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" dl}${font}
    ${voffset 0}${font DroidSansFallback:bold:size=8.62}${color5}${alignc 0}${execi 1800 /home/z/.conky/weather/weather.sh "Burnham,uk" fctm}${font}
    ##################################
    ##             TIME             ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color5}TIME${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset -4}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M %p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M %p}${endif}${endif}${font}
    ##################################
    ##      CALENDAR (5-Line)       ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color5}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 15}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
    ${voffset -10}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
    ${voffset -3}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
    ${voffset -3}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
    ${voffset -86}${font CutOutsFor3DFX:size=70}${color8}${alignc 99}2${font}
    ####
    ## Uncomment for Conky 1.8.0 (use mono fonts only)
    # ${voffset -68}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for Conky 1.8.1 (use mono fonts only)
    ${voffset -64}${offset 100}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ##################################
    ##   EMAIL                      ##
    ##################################
    ${voffset -8}${font DroidSans:bold:size=7.75}${color5}Email${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}f${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}Lavabit: ${if_match ${execi 300 conkyEmail conkyEmail -m IMAP -s imap.youremailserver.com -o 993 -e -u username}<=0}No New Messages.${else}${if_match ${execi 300 conkyEmail conkyEmail -m IMAP -s imap.youremailserver.com -o 993 -e -u username}<=1}${color5}${execi 300 conkyEmail conkyEmail -m IMAP -s imap.youremailserver.com -o 993 -e -u username}${color3} New Message.${else}${color5}${execi 300 conkyEmail conkyEmail -m IMAP -s imap.youremailserver.com -o 993 -e -u username}${color3} New Messages.${endif}${endif}${font}
    ##################################
    ##   RHYTHMBOX (Experimental)   ##
    ##################################
    #${if_running rhythmbox}
    #${voffset -8}${font DroidSans:bold:size=7.75}${color5}RHYTHMBOX${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset 8}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/rhythmbox-client --print-playing-format %tt | head -n 1`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 rhythmbox-client --print-playing-format %tt --no-start}}${font}${else}${alignc}${execi 2 rhythmbox-client --print-playing-format %tt --no-start}${font}${endif}${endif}
    ##################################
    ##    BANSHEE (Experimental)    ##
    ##################################
    #${if_running banshee}
    #${voffset -10}${font DroidSans:bold:size=7.75}${color5}BANSHEE${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/banshee --query-title --no-present | cut -f1- -d " "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 banshee --query-title --no-present | cut -f2- -d " "}}${font}${else}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d " "}${font}${endif}${endif}

  10. #120
    Join Date
    Apr 2007
    Beans
    195

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by Zephilinox View Post
    I assume its alright to post to my version of the .conkyrc?
    Best place to show it off is the Big Conky Thread that I mention in the first post. Not that it doesn't belong here... well... it kinda doesn't... but the people who will appreciate it most are over there. This is a HowTo thread for answering "How do you get it going, VinDSL? I want what you've got!"

    This is more of an ease of other users' ability to get it running. To ease the "Stupid" questions and all that. It's easier if this thread is just the HowTo and VinDSL and I keeping updates going about his scripts. That way when people are genuinely stumped they aren't cluttered with posts that aren't directly focussed on getting the script running.

    The Conky Thread, on the other hand, will happily embrace you for sharing.

Page 12 of 260 FirstFirst ... 210111213142262112 ... 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
  •