Page 2267 of 2348 FirstFirst ... 126717672167221722572265226622672268226922772317 ... LastLast
Results 22,661 to 22,670 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #22661
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Very nicely done! Congrats

    in wun.lua everything that is on the timer happens between lines
    1453 and 1557

    i dont put the download and processing code in directly, all that stuff is in individual functions, above the main function, and it is the functions that are called when the timer is activated
    then the functions put all the data into tables and then the tables are sent to the weather template on line 1573
    Last edited by mrpeachy; February 1st, 2014 at 04:34 AM.

  2. #22662
    Join Date
    Dec 2011
    Location
    Atlanta, Georgia USA
    Beans
    45
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    Great! I still have a lot that I need to learn and stuff I want to do (cleaning up the code for one), and I still have to figure out the green dots, which I assume track the download and processing steps. I found the second two and put an if desktop==7 for them, but I haven't been able to find the first one yet. I'll work on it some more tomorrow. Right now it's past my bedtime (after midnight here). Good night, and thanks again.
    Ubuntu User #35429 | Linux User #558865

  3. #22663
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stylintile View Post
    Great! I still have a lot that I need to learn and stuff I want to do (cleaning up the code for one), and I still have to figure out the green dots, which I assume track the download and processing steps. I found the second two and put an if desktop==7 for them, but I haven't been able to find the first one yet. I'll work on it some more tomorrow. Right now it's past my bedtime (after midnight here). Good night, and thanks again.
    the first dot is set up in lines 1448 to 1462
    that was a hard one to figure out how to get it to change color when the script was updating because essential the code is frozen during updates

  4. #22664
    Join Date
    Dec 2011
    Location
    Atlanta, Georgia USA
    Beans
    45
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    Success!! I got the pollen stuff incorporated, and got the indicators to only appear on the desktop that wun is running on. Now, if I could just figure out the 5 pixel movement. Oh well, now I have new stuff to play with. Like changing all of the cat commands, and figuring out what other cool info I can get from the computer or the net and add to conky.
    Ubuntu User #35429 | Linux User #558865

  5. #22665
    Join Date
    Jul 2006
    Location
    Gujranwala, Pakistan
    Beans
    139
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Hey guys how do you display right-to-left (RTL) languages in conky? I enter text RTL with a proper font specified but it is displayed LTR.
    Code:
    # Create own window instead of using desktop (required in nautilus)
    own_window_class Conky
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_argb_visual yes
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer none
    use_xft yes
    
    # Update interval in seconds
    update_interval 1.0
    
    # Minimum size of text area
    minimum_size 400 400 
    
    if_up_strictness address
    
    maximum_width 400
    
    #maximum_height 180
    
    text_buffer_size 10000
    
    max_user_text 90000
    
    # Draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    xftfont Droid Sans Mono:size=9
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_inner_margin 0
    
    # border width
    border_width 0
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color white
    
    own_window_colour black
    
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    alignment left_middle
    
    override_utf8_locale yes
    
    TEXT
    ${font Alvi Nastaleeq:size=60}خوش آمدید$font

  6. #22666
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by sbjaved View Post
    Hey guys how do you display right-to-left (RTL) languages in conky? I enter text RTL with a proper font specified but it is displayed LTR.
    Code:
    TEXT
    ${font Alvi Nastaleeq:size=60}خوش آمدید$font
    I don't have RTL configured here but would this work?
    Code:
    TEXT
    ${alignr 5}${font Alvi Nastaleeq:size=60}خوش آمدید$font
    The "5" will bring it 5 pixels off the right edge.

    You can still use ${goto xx} and ${alignc} or ${alignc xx} ${alignc -xx} as well.

    Let us know how you make out. It works here:
    Attached Images Attached Images
    Last edited by Sector11; February 7th, 2014 at 04:55 PM.

  7. #22667
    Join Date
    Jul 2006
    Location
    Gujranwala, Pakistan
    Beans
    139
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    I guess I wasn't able to explain myself. I don't mean alignment of the text within conky. I meant letters itself are being displayed in the wrong order. If you look at the text and you look at the output, the order is all wrong. English is a Left to Right language (i.e. A B C --->), the language i'm trying to enter is Right to Left (<--- خ و ش) but it is being displayed as english (LTR) instead of its proper order (RTL):

    خ و ش is being displayed as ش و خ

    You can compare in your code and conky screenshot as well. I hope this makes some sense.

  8. #22668
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by sbjaved View Post
    I guess I wasn't able to explain myself. I don't mean alignment of the text within conky. I meant letters itself are being displayed in the wrong order. If you look at the text and you look at the output, the order is all wrong. English is a Left to Right language (i.e. A B C --->), the language i'm trying to enter is Right to Left (<--- خ و ش) but it is being displayed as english (LTR) instead of its proper order (RTL):

    خ و ش is being displayed as ش و خ

    You can compare in your code and conky screenshot as well. I hope this makes some sense.
    OOPS! Now I understand
    Welcome becomes --- > over there ...
    emocleW
    Yea, I did an oopsie ... Really strange as it sat in my text editor correctly

    Maybe a "locale" setting? Wish I could help... but out of my league now.

    Maybe here? ... not Persian but ...
    Attached Images Attached Images

  9. #22669
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    is this what you were after?
    see the yellow text at the top


    done by a simple lua script

    Code:
    function conky_rtl(t)
    local ltab={}
        for i in string.gmatch(t, "[%a%p%d%s]") do
            table.insert(ltab,1,i)
        end
    local t=table.concat(ltab)
    return t:gsub("[{}]","")
    end--function
    i'm loading the script above text, using it below
    text is entered between curly brackets {}

    Code:
    lua_load /home/mcdowall/lua/rtl.lua
    
    TEXT
    ${color yellow}${lua_parse rtl {hello world here is some reversed text}}
    i think there is a better way to send lua the text without using {}, as you cant use { or } in the text with this method


    Quote Originally Posted by sbjaved View Post
    I guess I wasn't able to explain myself. I don't mean alignment of the text within conky. I meant letters itself are being displayed in the wrong order. If you look at the text and you look at the output, the order is all wrong. English is a Left to Right language (i.e. A B C --->), the language i'm trying to enter is Right to Left (<--- خ و ش) but it is being displayed as english (LTR) instead of its proper order (RTL):

    خ و ش is being displayed as ش و خ

    You can compare in your code and conky screenshot as well. I hope this makes some sense.
    Last edited by mrpeachy; February 8th, 2014 at 04:50 AM.

  10. #22670
    Join Date
    Jul 2006
    Location
    Gujranwala, Pakistan
    Beans
    139
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    This would solve one part of the issue. But most RTL languages use words that join together (e.g. خ و ش is actually written as خوش ).
    Last edited by sbjaved; February 8th, 2014 at 04:58 AM.

Page 2267 of 2348 FirstFirst ... 126717672167221722572265226622672268226922772317 ... 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
  •