Page 1631 of 2348 FirstFirst ... 6311131153115811621162916301631163216331641168117312131 ... LastLast
Results 16,301 to 16,310 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #16301
    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 VinDSL View Post
    ...

    I know you're not a Compiz user (stated above)...

    I would strongly suggest NOT changing this setting, if you're running Natty!

    Canonical is doing a lot of dev work with Compiz in Natty right now.

    Fooling around with CCMS (at this juncture) will surely lead to disastrous results in Ubu 11.04!

    Just saying...
    I recommend no one run natty until it's released unless you're actually testing it or have another really good reason. Ubuntu's that are in development regularly break. Natty was broken a few weeks back and will probably break again before it's released and even if it doesn't break it's still full of bugs.

    Stick to something that works!

    And don't discuss natty outside the natty forum, it will only tempt people to try it.

  2. #16302
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    I recommend no one run natty until it's released unless you're actually testing it or have another really good reason.[...]
    Truth!

    Ubu dev releases are NOT for the faint of heart. They're rough as a corn cob...

    The whole purpose is for things to fail, and bugs to be fixed.

    If you don't enjoy your desktop crashing constantly, and hate filling out bug reports, don't run 11.04!

    That said, I'm testing Conky / conkyForecast and developing scripts for same, so I have a reason to run it.
    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

  3. #16303
    Join Date
    Oct 2005
    Location
    Herrenberg, Germany
    Beans
    19
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by VinDSL View Post
    I was talking about copying n' pasting ascii symbols into blogs/messageboards/IM, et cetera, when your keyboard isn't working or your keyboard doesn't contain the symbol(s).

    For instance, let's say I want to type " uber " in this message.

    My language code = en, so German isn't supported.

    The only way I can include " uber " (on a vB site) is to copy n' paste " über " into the message box. And, so forth, and so on...
    Not the only way: (from Wikipedia - Unicode input)
    GTK+ has its own solution. Ctrl+⇧ Shift+u, then type the hex code (such as 2 1 7 d), then hit ↵ Enter. A simpler way to think of the starting sequence is Ctrl + U. (In some older versions Ctrl and Shift must be held down while entering the number. GTK+ versions before 2.10, do not use Ctrl-Shift-U, only Ctrl-Shift-[hex number].)

  4. #16304
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    I'm getting nil values when I try to run it with these changes. What am I missing, if you don't mind?
    [cut code]
    OK.
    First thing that I've seen just as when I've intended your code is that you overwrited extents structure with redundant data and thus only last one was in the end inside.

    Secondly you called it thereafter with wrong, let say compared to arrays, "index".
    Extents structure have only 6 sub variable: x_bearing, y_bearing, width, height, x_advance and y_advance - period.
    So, if you called it extents.week then it had nil value because it's non existent.
    And then, you must calculate extents after you set font face and font size since text measures are dependant on that.

    And then it was too many brackets in move_to functions.

    And then it was positioning errors.
    If you want to draw text relative to other object you must calculate its position relative to it also - not taken from air.

    So, there are working one:
    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 = 16
    		--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 = 50
    		local yadjust = 50
    		--set the box dimensions
    		local width = 104
    		local height = 110
    		--box thickness
    		local bthick = 8
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 0, 0, 0.753, 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
    
    end
    Last edited by dk75; February 27th, 2011 at 11:24 AM. Reason: since part of code is redundant then I've functionized it
    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

  5. #16305
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by emk2203 View Post
    Not the only way [...]
    Heh!

    Have you tried this in a vB message box?
    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

  6. #16306
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Install "ibus-m17n", go to iBus preferences and at Input Method tab add method Other - Compose.

    From now on, when typing text, just <CTRL><SPACE> to change input method to Compose and you have pulldown menu to chose alternatives to letter that you typeing:
    Code:
    Deutchland, Deutchland, űber alles.
    Skøl!
    Last edited by dk75; February 27th, 2011 at 12:48 PM.
    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. #16307
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Install "ibus-m17n" [...]
    Nice!

    I think I'll install that in Natty, and give it a try...
    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

  8. #16308
    Join Date
    Oct 2005
    Location
    England
    Beans
    49
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    I've used conky for quite a while now with a script written a year or two ago.
    It wasn't until I fitted an esata drive and added it to the script that I noticed an annoying feature.
    Every few seconds the esata drive positioned a couple of feet away made a ticking noise even though it didn't seem to be accessed by any process.
    However, my conky script was to blame.
    I used
    'Drive Temp: ${execi 10 hddtemp /dev/sdc |cut -c36-40}'
    to keep an eye on the drive temperatures. This accessed the drive, creating a ticking noise and probably shortens the drive mechanisms life. Indeed, I just replaces a 3 year old drive the other day.
    I have since changed the script to
    '${if_match "${diskio /dev/sdc1}" > "1MiB"}${offset 38}${voffset -16}Drive Temp: ${execi 10 hddtemp /dev/sdc |cut -c36-40}${else}${offset 38}${voffset -16}Drive Temp: ${execi 1000 hddtemp /dev/sdc |cut -c36-40}${endif}'
    to check the drive for activity before checking its temperature and then increasing the length of time between checks if the drive is not being accessed.
    Perhaps I am re-inventing the wheel but on the off chance that this may be helpful, I post.
    If there is a more efficient way to achieve the same end, I would be interested.

  9. #16309
    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 TheValk View Post
    I've used conky for quite a while now with a script written a year or two ago.
    It wasn't until I fitted an esata drive and added it to the script that I noticed an annoying feature.
    Every few seconds the esata drive positioned a couple of feet away made a ticking noise even though it didn't seem to be accessed by any process.
    However, my conky script was to blame.
    I used
    'Drive Temp: ${execi 10 hddtemp /dev/sdc |cut -c36-40}'
    to keep an eye on the drive temperatures. This accessed the drive, creating a ticking noise and probably shortens the drive mechanisms life. Indeed, I just replaces a 3 year old drive the other day.
    I have since changed the script to
    '${if_match "${diskio /dev/sdc1}" > "1MiB"}${offset 38}${voffset -16}Drive Temp: ${execi 10 hddtemp /dev/sdc |cut -c36-40}${else}${offset 38}${voffset -16}Drive Temp: ${execi 1000 hddtemp /dev/sdc |cut -c36-40}${endif}'
    to check the drive for activity before checking its temperature and then increasing the length of time between checks if the drive is not being accessed.
    Perhaps I am re-inventing the wheel but on the off chance that this may be helpful, I post.
    If there is a more efficient way to achieve the same end, I would be interested.
    You don't need to run the hddtemp (terminal) command with ${execi ..}, there is a ${hddtemp ...} variable in conky to get the disk temps. Using that instead might also prevent the "ticking".

    Code:
    ${hddtemp /dev/sda}

  10. #16310
    Join Date
    Oct 2005
    Location
    England
    Beans
    49
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    You don't need to run the hddtemp (terminal) command with ${execi ..}, there is a ${hddtemp ...} variable in conky to get the disk temps. Using that instead might also prevent the "ticking".

    Code:
    ${hddtemp /dev/sda}
    It does!

    Excellent. I will modify my script at once.

    Thanks.

    By the way, is there a conky query that will get the drive temperature of a USB drive?
    The old way I used gave S.M.A.R.T. unavailable and this way gives N/A

    I know Smart is available as Disk Utility displays it fine.
    Last edited by TheValk; February 27th, 2011 at 06:02 PM.

Page 1631 of 2348 FirstFirst ... 6311131153115811621162916301631163216331641168117312131 ... 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
  •