Page 2104 of 2323 FirstFirst ... 1104160420042054209421022103210421052106211421542204 ... LastLast
Results 21,031 to 21,040 of 23230

Thread: Post your .conkyrc files w/ screenshots

  1. #21031
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    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"))
    I already have my own clock set earlier in the lua..I've even checked on Google to make sure I'm right about time difference and that confirms I'm 3 hours ahead, not 2 as conky states
    Linux...The mistress we all left Windows for

  2. #21032
    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
    I already have my own clock set earlier in the lua..I've even checked on Google to make sure I'm right about time difference and that confirms I'm 3 hours ahead, not 2 as conky states
    then you can add an hour like this
    Code:
    hours=tonumber(os.date("%I"))
    hours=hours+1
    if hours==13 then hours=1 end

  3. #21033
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    You could get full date table from 'os.date' in one go (no need to call 'os.date' multiple time):
    Code:
    date_table=os.date('!*t')
    '*t' - is for table of current system time
    '!*t' - is for table of current UTC time

    My result:
    Code:
    > date_table=os.date('!*t'); table.foreach(date_table, print)
    hour	10
    min	21
    wday	5
    day	8
    month	11
    year	2012
    sec	30
    yday	313
    isdst	false
    >
    So now, you can access it like that:
    Code:
    print(date_table.hour)   --for hours
    print(date_table.min)   --for minutes
    print(date_table.sec)   --for seconds
    print(date_table.month)   --for month number
    print(date_table.day)   --for day
    print(date_table.year)   --for year
    print(date_table.wday)   --for week day number (it's counted from Sunday, no matter of locale settings)
    print(date_table.yday)   --for year day number
    print(date_table.isdts)   --boolean ('true' or 'false') whatever is Daylight Saving Time in effect ('false' for UTC naturally)
    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. #21034
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    then you can add an hour like this
    Code:
    hours=tonumber(os.date("%I"))
    hours=hours+1
    if hours==13 then hours=1 end
    forgive me, but i'm not sure where i should put that. i've looked through the .lua and it only mentions the first line you said. i've added a picture to show what i'm trying to do and the .lua you gave me (with a little modification)

    EDIT : my time is the one on the far left
    Attached Images Attached Images
    Attached Files Attached Files
    Linux...The mistress we all left Windows for

  5. #21035
    Join Date
    Jun 2012
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    @Sector11
    Hi! What a great work you did ! I've "spyed" a little but not discretly on another forum and I've tested your new "Chronograph_full_2"
    Really nice and again big thanks ! (it's for instance in 2 languages but that doesn't disturb me so much)except the metric system...Sorry bad jokeBy the way I got a 1920x1080...
    Have a nice day
    Tschüss
    a shot :
    http://pix.toile-libre.org/upload/or...1352386371.png

  6. #21036
    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
    forgive me, but i'm not sure where i should put that. i've looked through the .lua and it only mentions the first line you said. i've added a picture to show what i'm trying to do and the .lua you gave me (with a little modification)

    EDIT : my time is the one on the far left
    there are these lines to set the time for each clock
    Code:
    --time calculations########################### 
    hours=tonumber(conky_parse("${tztime America/Bahia %l}"))
    just overwrite the corresponding line of the clock that is off with the new code

  7. #21037
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    there are these lines to set the time for each clock
    Code:
    --time calculations########################### 
    hours=tonumber(conky_parse("${tztime America/Bahia %l}"))
    just overwrite the corresponding line of the clock that is off with the new code
    ahhh ok, i have it like i want now. thanks for the help

    Code:
    --time calculations###########################
    hours=tonumber(os.date("%I"))
    hours=hours-3
    if hours==13 then hours=1 end
    Linux...The mistress we all left Windows for

  8. #21038
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by ragamatrix View Post
    @Sector11
    Hi! What a great work you did ! I've "spyed" a little but not discretly on another forum and I've tested your new "Chronograph_full_2"
    Really nice and again big thanks ! (it's for instance in 2 languages but that doesn't disturb me so much)except the metric system...Sorry bad jokeBy the way I got a 1920x1080...
    Have a nice day
    Tschüss
    a shot :
    http://pix.toile-libre.org/upload/or...1352386371.png
    Not "my work" but a collaberation of various people.

    Like this
    1. Sector11 steals 4-clocks code from mrpeachy and edits it to The 24 Hour Chronograph, with help from mrp.
    2. McLovin steals code from Sector11 and edits it, reverting it back to a 12 hour clock and adds conkyForecast
    3. Sector11 steals that and again edits it back to a 24 Hour Clock using mrpeachy's v9000 weather.


    The template uses the new addition in the main ~/v9000/v9000.lua script:
    so betweenthis line:
    Code:
    function out(tx)--##############################################################
    and this line:
    Code:
    end--function out ##############################################################
    you need to change it to:
    Code:
    function out(tx)--##############################################################
    --#############################
    --font needs to be set first #########
    f=nil
    f=(tx.f or default_font)
    --#############################
    --additional face settings
    face=nil
    face=(tx.face or default_face)  -- old is: face=(tx.face or "normal")
    if face=="normal" then
    cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    elseif face=="bold" then
    cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    elseif face=="italic" then
    cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_NORMAL);
    elseif face=="bolditalic" then
    cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_BOLD);
    end
    --##############################################################################
    c=nil
    c=(tx.c or default_color)
    a=nil
    a=(tx.a or default_alpha)
    fs=nil
    fs=(tx.fs or default_font_size)
    x=nil
    x=(tx.x or 0)
    y=nil
    y=(tx.y or 0)
    txt=nil
    txt=(tx.txt or "set txt")
    local function col(c,a)
    return ( (c/0x10000) % 0x100)/255,( (c/0x100) % 0x100)/255,(c % 0x100)/255,a
    end--local function
    cairo_set_font_size (cr, fs)
    cairo_set_source_rgba (cr,col(c,a))
    cairo_move_to (cr,x,y)
    cairo_show_text (cr,txt)
    cairo_stroke (cr)
    end--function out ##############################################################
    Then in any tempalte to have you have to add a section if you want the new features:
    Code:
    --SET DEFAULTS ##########################################################
    --set defaults do not localise these defaults if you use a seperate display script
    default_font="monofur"--font must be in quotes
    default_font_size=12
    default_color=0xffffff --white
    default_alpha=1 --fully opaque
    default_image_width=50
    default_image_height=50
    -- ## New Options ###
    default_face="bold"
    -- "normal" for normal/normal
    -- "bold" for normal/bold
    -- "italic" for italic/normal
    -- "bolditalic" for italic/bold
    --END OF DEFAULTS #######################################################

  9. #21039
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    OK, I spend hours out in a hot sun today, and since mid-afternoon on I've been sitting here with a damp towel over my shoulders.

    Came up with a new look. This means I can retire a few conkys on Desktop 2 and start making new ones.

    <<-- Here I am reving it up for it's second public appearance.

  10. #21040
    Join Date
    Jun 2012
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    I think I'm a conky addict...I played again to build it really compact...
    May-be to much

    bigger-->http://pix.toile-libre.org/?img=1352465606.png
    You've got lucky températures...Here winter comes with soon (-) in conky.
    Last edited by ragamatrix; November 9th, 2012 at 02:42 PM.

Page 2104 of 2323 FirstFirst ... 1104160420042054209421022103210421052106211421542204 ... 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
  •