Page 2044 of 2314 FirstFirst ... 1044154419441994203420422043204420452046205420942144 ... LastLast
Results 20,431 to 20,440 of 23132

Thread: Post your .conkyrc files w/ screenshots

  1. #20431

    Talking Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by ragamatrix View Post
    I had a look to your great work of weather conky, and i'd like to know how many ressource % CPU your script take ? i'm using an old machine
    thanx
    Hi

    Here is a weather script in bash

    http://foreverquest.blogspot.in/2012...cript-072.html

    the wiki for it is at

    https://bitbucket.org/plikhari/conkywx_pub/wiki/Home

    It should run light on your old machine.

    cheers

    Paramvir

  2. #20432
    Join Date
    Dec 2011
    Location
    Atlanta, Georgia USA
    Beans
    48
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    @ stylintile

    I was writing mine as you posted your response. Missed by that much. So I didn't see your reference to the use of sticky.

    But a question on compiz. I don't know compiz I've never used it.

    Doesn't compiz make all desktops one desktop? I'm looking at the link you gave and see djyoung4's output:
    Sorry I took so long to get back, I just got home from work.
    Actually, I was editing mine as you posted yours to add that reference. Great timing, don't you think?
    Regarding your question, that is correct. For example; if you have a monitor with 1600x900 resolution your first workspace starts at 0, the second at 1600, the third at 3200 etc.. That is if you are using one row and multiple columns. So if I run this:
    Code:
    wmctrl -d | grep 'VP:' | awk '{print $6}' | sed 's/,0//'
    in a terminal, the output shows the starting point (pixel) for whatever workspace I run it from. Then, in conky, I can use:
    Code:
    ${if_match ${exec wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1600}${color}Workspace 2${else}Workspace 1${endif}
    to show info on different workspaces from the same conky.

    Or I can use:
    Code:
    ${if_match ${exec wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1600}
    >code to display on workspace 2<
    ${endif}
    to display the entire conky on only the second workspace.

  3. #20433
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Took longer than I wanted as I was getting errors:



    It finally worked and Conky PitStop has had another upate.

    Thanks to mrpeachy for his excellent HowTo the Using Sensors page has been updated to include the three methods of using lm-sensors in Conky:

    Code:
        1.1 METHOD 1 - grep, awk, sed, etc. (old way, some new info)
        1.2 METHOD 2 - hwmon
        1.3 METHOD 3 - platform
    Thank you mrpeachy.
    I might be wrong but I think dk75 helped with that as well.
    Quote Originally Posted by Sector11 View Post
    @ stylintile

    I was writing mine as you posted your response. Missed by that much. So I didn't see your reference to the use of sticky.

    But a question on compiz. I don't know compiz I've never used it.

    Doesn't compiz make all desktops one desktop? I'm looking at the link you gave and see djyoung4's output:

    Code:
    djyoung4@Daniels-computer:~$ wmctrl -d
    0  * DG: 5120x800  VP: 0,0  WA: 0,1 1280x799  Workspace 1
    djyoung4@Daniels-computer:~$ wmctrl -d
    0  * DG: 5120x800  VP: 1280,0  WA: 0,1 1280x799  Workspace 1
    djyoung4@Daniels-computer:~$ wmctrl -d
    0  * DG: 5120x800  VP: 2560,0  WA: 0,1 1280x799  Workspace 1
    djyoung4@Daniels-computer:~$ wmctrl -d
    0  * DG: 5120x800  VP: 3840,0  WA: 0,1 1280x799  Workspace 1
    So to put a conky on his second 'desktop' top left (VP: 1280,0):

    ...
    When I ran that I could only get it to work on viewports 3 and 4. 1 and 2 would not work. I have since moved on to openbox as well so I can be of no more help at the moment. Off to install another virtual system...
    I'm a super power user

  4. #20434
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    I might be wrong but I think dk75 helped with that as well.
    Hmmmmmm very good chance of that, I'll check it out. Thanks.

    Quote Originally Posted by djyoung4 View Post
    When I ran that I could only get it to work on viewports 3 and 4. 1 and 2 would not work. I have since moved on to openbox as well so I can be of no more help at the moment. Off to install another virtual system...
    hehehehe Years ago someone told me when I moved from Ubuntu to Xubuntu I should try a *Box and that once I did there would be no going back. Been with OpenBox for 3 years now. LOVE IT!

    #! on Debian upgraded to SID & OpenBox best combo going!

  5. #20435
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ stylintile - Work? Oh right that's what you do with your days before you retire, I vaguely remember those. Kidding, I remember them well. Back to this....

    Do you really need the
    Code:
    ${if_match ${exec wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1600}
    command?

    I was curious if you could to it with:
    Code:
    alignment xx
    gap_y xx
    gay_x xx
    Example: imagine 4 desktops, 1000x1000 each to make it simple, and a 4 conkys that are 100 pixels wide.

    Code:
    gap_x 10 ## left &right
    gap_y 10 ## up & down
    alignment top_left
    puts a conky in the top left of Desktop 1

    Code:
    gap_x 1010 ## left &right
    gap_y 10 ## up & down
    alignment top_left
    puts a conky in the top left of Desktop 2


    Code:
    gap_x 1990 ## left &right
    gap_y 10 ## up & down
    alignment top_right
    puts a conky in the top left of Desktop 3

    and
    Code:
    gap_x 990 ## left &right
    gap_y 10 ## up & down
    alignment top_right
    puts a conky in the top left of Desktop 4

    Now if you have a:
    Code:
    1 2
    3 4
    situation gap_y will come into play as well.

    Or am I missing something here?

  6. #20436
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    hehehehe Years ago someone told me when I moved from Ubuntu to Xubuntu I should try a *Box and that once I did there would be no going back. Been with OpenBox for 3 years now. LOVE IT!

    #! on Debian upgraded to SID & OpenBox best combo going!
    Went to archbang. I love openbox. Works great for what I need but I like the arch way of upgrading and maintaining packages. Makes it easy in my opinion
    I'm a super power user

  7. #20437
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stylintile View Post
    So if I run this:
    Code:
    wmctrl -d | grep 'VP:' | awk '{print $6}' | sed 's/,0//'
    in a terminal, the output shows the starting point (pixel) for whatever workspace I run it from.
    GREP, AWK and SED all together for so simple task?
    Isn't it a "little" bit excessive?
    There is something "smaller" (especially wise if used in loops, like every second in Conky) - result of 10000 loop:
    Code:
    wmctrl -d | awk '{print $6}' | sed 's/,0//'
    1,36s user 6,37s system 18% cpu 41,884 total
    smaller and faster code
    Code:
    wmctrl -d | sed 's/.*VP:.\([0-9]*\).*/\1/'
    0,46s user 5,02s system 14% cpu 36,657 total
    that's little faster (little) but uses more CPU:
    Code:
    wmctrl -d | awk '{gsub(/,./,"",$6); print $6}'
    0,51s user 5,02s system 15% cpu 36,232 total
    and surprise, surprise, surprise, cut is the slowest one:
    Code:
    wmctrl -d | cut -d, -f1 | cut -d: -f3 | cut -c2-
    0,64s user 9,85s system 21% cpu 48,373 total
    at least, original code with GREP (unneeded and whoa, bloated):
    Code:
    wmctrl -d | grep 'VP:' | awk '{print $6}' | sed 's/,0//'
    0,80s user 9,93s system 20% cpu 53,276 total

    So, removing unnecessary parts and using only one command to parse data from wmctrl (whatever AWK or SED) results in almost twice less of resource being used in comparison to GREP/AWK/SED combo or 10% savings in comparison to AWK/SED combo.
    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

  8. #20438
    Join Date
    Aug 2011
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by ragamatrix View Post
    Ok i have work to do, i didn't find all the libs needed in the read me...I'm under dist voyager...
    If you need any help setting it up just let me know.
    Building Conky | iCalendar Conky | Weather Script | Background List
    Intel Core i7-2600K - 3.40GHz | Asus P8Z68-V LE | 8GB RAM - 1866 MHz | Nvidia GeForce GTX 560 Ti

  9. #20439
    Join Date
    Dec 2011
    Location
    Atlanta, Georgia USA
    Beans
    48
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    @ stylintile - Work? Oh right that's what you do with your days before you retire, I vaguely remember those. Kidding, I remember them well.
    I don't really consider it work as I really like what I do. I run my own tile installation business with one employee... Me.

    Back to this....

    Do you really need the
    Code:
    ${if_match ${exec wmctrl -d | awk '{print $6}' | sed 's/,0//'} == 1600}
    command?

    I was curious if you could to it with:
    [CODE]alignment xx
    gap_y xx
    gay_x xx[/CODE
    I just tried removing sticky from own_window_hints and changing the gap_x on a conky and it went off the right edge of the screen, but did not wrap or move to the next workspace. However, that was a lua conky, I will try with a regular rc and post back with the results.

  10. #20440
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    So, removing unnecessary parts and using only one command to parse data from wmctrl (whatever AWK or SED) results in almost twice less of resource being used in comparison to GREP/AWK/SED combo or 10% savings in comparison to AWK/SED combo.
    I want to borrow your brain for a week or so - or at least have a brain to brain connection for that time. WOW!!!

    While your here dk75, did you have an input in Using Sensors? Stinkeye has a mention. djyoung4 said h you had some input.

Page 2044 of 2314 FirstFirst ... 1044154419441994203420422043204420452046205420942144 ... 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
  •