Page 2103 of 2348 FirstFirst ... 1103160320032053209321012102210321042105211321532203 ... LastLast
Results 21,021 to 21,030 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #21021
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    just tried medit and i like the bracket highlighting
    i often get lost in multiple nested brackets during calculations
    medit makes the matching brackets bold as you close them

    i would like the highlighting to be a bit more obvious - ie color change but will be useful

    thanks for the recommendation sector11
    Just tried it myself. Thanks Sector11. I'm no coder either! Call me a tweaker as well...

    Jed

  2. #21022
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    just tried medit and i like the bracket highlighting
    i often get lost in multiple nested brackets during calculations
    medit makes the matching brackets bold as you close them

    i would like the highlighting to be a bit more obvious - ie color change but will be useful

    thanks for the recommendation sector11
    One more for you, medit doesn't have a native colour code for "Conky" but you can get it at Conky PitStop: Medit and Conky and there is the gedit version that started all that as well: Gedit and Conky.

    Took me a bit to wean myself off gedit but Medit is lighter, faster and other than an "colour picker" just as good in my opinion.
    Code:
    sudo apt-get install gcolor2
    fixes that little problem.
    Attached Images Attached Images

  3. #21023
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    And here is custom "lua.lang" including Cairo functions/constants for gtksourceview applications (gedit) - copy it to:
    gtk2: ~/.local/share/gtksourceview-2.0/language-specs
    gtk3: ~/.local/share/gtksourceview-3.0/language-specs
    Attached Files Attached Files
    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

  4. #21024
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    And here is custom "lua.lang" including Cairo functions/constants for gtksourceview applications (gedit) - copy it to:
    gtk2: ~/.local/share/gtksourceview-2.0/language-specs
    gtk3: ~/.local/share/gtksourceview-3.0/language-specs
    i dont have a gtksourceview folder in /home/username/.local/share/
    where else should i look?

    edit - i have those folder in /usr/share/
    should i create them in my home folder? or just put the file into /usr/share/ ?

  5. #21025
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    just put it in ~/.local/share/gtksourceview-3.0/language-specs (or 2.0 for gtk2)
    This folder isn't created in $HOME because it's for user to make, standard folder is in /usr/share, but there is for packages installed only - don't mess with 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

  6. #21026
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Hey everybody. I'm hoping I can get a little help with this issue. I'm running a second clock, but the time is wrong. It says 9pm, but it's actually 8pm in the region. I've included the code so the gurus can maybe come up with a suggestion

    Code:
    --ALTERNATE TIME 2 ##################################
    --CLOCK SETTINGS
    clock_radius=60
    clock_centerx=820
    clock_centery=110
    --DRAWING CODE
    --draw border
    cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
    cairo_set_line_width (cr,clock_border_width)
    cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
    cairo_stroke (cr)
    --draw marks
    --stuff that can be moved outside of the loop, needs only be set once
    --calculate end and start radius for marks
    m_end_rad=clock_radius-b_to_m
    m_start_rad=m_end_rad-m_length
    --set line cap type
    cairo_set_line_cap  (cr, m_cap)
    --set line width
    cairo_set_line_width (cr,m_width)
    --set color and alpha for marks
    cairo_set_source_rgba (cr,mr,mg,mb,ma)
    --start for loop
    for i=1,12 do
    --drawing code uisng the value of i to calculate degrees
    --calculate start point for 12 oclock mark
    radius=m_start_rad
    point=(math.pi/180)*((i-1)*30)
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    --set start point for line
    cairo_move_to (cr,clock_centerx+x,clock_centery+y)
    --calculate end point for 12 oclock mark
    radius=m_end_rad
    point=(math.pi/180)*((i-1)*30)
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    --set path for line
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    --draw the line
    cairo_stroke (cr)
    end--of for loop
    --time calculations###########################
    hours=tonumber(conky_parse("${tztime America/Bahia %l}"))
    --convert hours to seconds
    h_to_s=hours*60*60
    minutes=tonumber(conky_parse("${tztime America/Bahia %M}"))
    --convert minutes to seconds
    m_to_s=minutes*60
    --get current seconds
    seconds=tonumber(conky_parse("${tztime America/Bahia %S}"))
    --draw hours hand ############################
    --get hours minutes seconds as just seconds
    hsecs=h_to_s+m_to_s+seconds
    --calculate degrees for the hand each second
    hsec_degs=hsecs*(360/(60*60*12))--im using an equation instead of typing the calculation straight in because the result of 360/43200 gave us decimal places
    --set radius we will use to calculate hand points
    radius=hh_length
    --set our starting line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    --calculate coordinates for end of minutes hand
    point=(math.pi/180)*hsec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    --describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    --set up line attributes and draw line
    cairo_set_line_width (cr,hh_width)
    cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
    cairo_set_line_cap  (cr, hh_cap)
    cairo_stroke (cr)
    --draw minutes hand
    --get minutes and seconds just as seconds
    msecs=m_to_s+seconds
    --calculate degrees for the hand each second
    msec_degs=msecs*0.1
    --set radius we will use to calculate hand points
    radius=mh_length
    --set our starting line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    --calculate coordinates for end of minutes hand
    point=(math.pi/180)*msec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    --describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    --set up line attributes and draw line
    cairo_set_line_width (cr,mh_width)
    cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
    cairo_set_line_cap  (cr, mh_cap)
    cairo_stroke (cr)
    --draw seconds hand #############################
    --calculate degrees for the hand each second
    sec_degs=seconds*6
    --set radius we will use to calculate hand points
    radius=sh_length
    --set our starting line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    --calculate coordinates for end of seconds hand
    point=(math.pi/180)*sec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    --describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    --set up line attributes
    cairo_set_line_width (cr,sh_width)
    cairo_set_source_rgba (cr,shr,shg,shb,sha)
    cairo_set_line_cap  (cr, sh_cap)
    cairo_stroke (cr)
    --###################################################
    Attached Images Attached Images
    Last edited by merlin_ie; November 8th, 2012 at 12:25 AM.
    Linux...The mistress we all left Windows for

  7. #21027
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by merlin_ie View Post
    Hey everybody. I'm hoping I can get a little help with this issue. I'm running a second clock, but the time is wrong. It says 9pm, but it's actually 8pm in the region. I've included the code so the gurus can maybe come up with a suggestion
    put this directly into the conkyrc
    Code:
    ${tztime America/Bahia %l}
    and see what it puts out
    might it have something to do with daylight saving time?
    Last edited by mrpeachy; November 8th, 2012 at 12:48 AM.

  8. #21028
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    put this directly into the conkyrc
    Code:
    ${tztime America/Bahia %l}
    and see what it puts out
    might it have something to do with daylight saving time?
    same issue as the clock in image. an hour behind the proper time. in case you're wondering, i'm in Ireland

    EDIT : you gave me the code to display 3 clocks from a lua, and i have it set for Israel and Sweden..those times are correct
    Linux...The mistress we all left Windows for

  9. #21029
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    just put it in ~/.local/share/gtksourceview-3.0/language-specs (or 2.0 for gtk2)
    This folder isn't created in $HOME because it's for user to make, standard folder is in /usr/share, but there is for packages installed only - don't mess with it.
    OH! I gotta try that with medit as well.
    Thanks dk75 ....

  10. #21030
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by merlin_ie View Post
    same issue as the clock in image. an hour behind the proper time. in case you're wondering, i'm in Ireland

    EDIT : you gave me the code to display 3 clocks from a lua, and i have it set for Israel and Sweden..those times are correct
    if its your own time you want then you can just use the time command instead of tztime
    or better in the lua script use
    Code:
    hours=tonumber(os.date("%I"))

Page 2103 of 2348 FirstFirst ... 1103160320032053209321012102210321042105211321532203 ... 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
  •