Page 2197 of 2348 FirstFirst ... 1197169720972147218721952196219721982199220722472297 ... LastLast
Results 21,961 to 21,970 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #21961
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    I see this has been answered already but I'd like to add my 2¢ worth anyway.

    First off, this morning, I started working on a test conky I call: nvidia-setting.conky because I see all these neat, old style, commands with ${nvidia-settings xxxxxx} that I stopped using the few I had from "old" conkys since the new native ${nvidia xxxx} conky commands hit the scene. And I picked up on the "nvidia-smi" you have in your conky, have never seen that one before ... thanks for that.

    Quote Originally Posted by kobayash1 View Post
    Hello again. I made my first post on these boards almost a month ago to show off my first attempt at conky. Today I want to post up another screenshot of my current conky, list a few of the changes I've made, and offer up my .conf file for perusal and suggestions.

    A couple of questions:

    --I couldn't compile 1.9.0 from source with the --enable-nvidia tag because I kept getting the missing nvctrl.h error. So I installed conky-all from Ubuntu repositories. Now I can enjoy the native ${nvidia} variables, though it doesn't call all the data I want (memory usage and fan capacity). The version is 1.8.1. Am I missing anything cool from 1.9.0?

    --Currently with my existing .conf file, my HDD is in constant use (every 2 seconds) because of my "${exec sensors > ~/.conky/lm-sensors_output}" line. I tried removing that line and just calling "sensors" in every line where I need it (temps, fan speeds). This kept my HDD from constantly saving a new "lm-sensors_output" file, but it increased my CPU usage across all 4 cores. I would normally idle at 0-2%, but with all those lines calling "sensors" I would idle at about 2-4%. Which way is more elegant and less intensive? Or is there a better way than the two I've tried?

    --Lastly, sometimes the ${top_mem} order is out of whack. Is this a bug or am I doing it wrong?
    1. I would definitely grab conky-all v 1.9.0-2 I've been using it for a while now and I know there are some things added - but for the life of me I can't remember. (getting old)

    2. I gotta check out what dk75 gave you ... that looks soooooooooooo good! KUDOS dk75! Adding to what Petro Dawg touched on there is more information that can be found here: Using Sensors, mrpeachy did a really nice job on updating that. I use the platform method myself.

    In my /sys/devices/platform/f71882fg.2560 directory anything that ends with "_input" can be used in conky:
    ie: /sys/devices/platform/f71882fg.2560/temp1_input & /sys/devices/platform/f71882fg.2560/temp2_input

    No exec or execi calls needed:
    Code:
    CPU ${platform f71882fg.2560 temp 1}°  MB ${platform f71882fg.2560 temp 2}°
    For people looking for a simple way to find out what "sensors" and what "????_input" is associated with I recommend inxi ... I've written a nice bash alias to help: sensen
    Code:
    alias sensen='sensors && inxi -s -x -c24'
    Code:
     20 May 13 | 13:57:15 ~
        $ sensen
    acpitz-virtual-0
    Adapter: Virtual device
    temp1:        +30.0°C  (crit = +110.0°C)
    
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1:        +30.8°C  (high = +70.0°C)
    
    f71862fg-isa-0a00
    Adapter: ISA adapter
    +3.3V:        +3.44 V  
    in1:          +1.35 V  
    in2:          +1.51 V  
    in3:          +0.85 V  
    in4:          +0.00 V  
    in5:          +0.00 V  
    in6:          +0.00 V  
    3VSB:         +3.41 V  
    Vbat:         +2.86 V  
    fan1:        2029 RPM
    fan2:           0 RPM  ALARM
    fan3:           0 RPM  ALARM
    temp1:        +39.0°C  (high = +85.0°C, hyst = +81.0°C)
                           (crit = +70.0°C, hyst = +66.0°C)  sensor = transistor
    temp2:        +34.0°C  (high = +85.0°C, hyst = +81.0°C)
                           (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
    temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                           (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor
    
    Sensors:   System Temperatures: cpu: 39.0C mobo: 34.0C gpu: 0.0:45C 
               Fan Speeds (in rpm): cpu: 2029 fan-2: 0 fan-3: 0 
     
     20 May 13 | 13:57:25 ~
        $
    3. top is like having 6 clocks in your house. You are never sure what time it really is.

    top, htop and other apps will report various output depending on how they work.

    Why is a 500GB HDD really less than 500GB? It's the marketing gimmick with the differences between: 1000 vs 1024

    Why is hd0, or /dev/sda, or dev/hda your first drive and hd1, or /dev/sdb, or dev/hdb your second drive?

    Just an opinion, but top is doing what it was designed to do while our brains are thinking something else.

    ${top_xxx} of which there are: 4
    1. top - sorts by CPU usage
    2. top_io - sorts by amount of I/O process
    3. top_mem - sorts by memory usage
    4. top_time - sorts by CPU time

    - each takes a # from 1 to 10 (10 is max)
    - each has "type" option
    • name
    • pid
    • cpu
    • mem
    • mem_res
    • mem_vsize
    • time
    • uid
    • user
    • io_perc
    • io_read
    • io_write

    You could literally file your screen with process information.

    Code:
    ${voffset 8}${alignc}${color5}Processes${color}
     Total ${color5}${processes}${color}${alignr 15}Running ${color5}${running_processes}${color}
    ${goto 220}${color0}mem${color}
     Name${goto 90}${color7}cpu${color}   mem  ${color1}uid${color}${goto 220}${color0}res${color}
     ${cpubar cpu0 0,250}
     ${top name 1}${goto 75}${color7}${top cpu 1}${color}${color}${top mem 1}${color1}${top uid 1}${color0}${goto 220}${top mem_res 1}${color}
     ${top name 2}${goto 75}${color7}${top cpu 2}${color}${top mem 2}${color1}${top uid 2}${color0}${goto 220}${top mem_res 2}${color}
     ${top name 3}${goto 75}${color7}${top cpu 3}${color}${top mem 3}${color1}${top uid 3}${color0}${goto 220}${top mem_res 3}${color}
     ${top name 4}${goto 75}${color7}${top cpu 4}${color}${top mem 4}${color1}${top uid 4}${color0}${goto 220}${top mem_res 4}${color}
     ${top name 5}${goto 75}${color7}${top cpu 5}${color}${top mem 5}${color1}${top uid 5}${color0}${goto 220}${top mem_res 5}${color}
     ${top name 6}${goto 75}${color7}${top cpu 6}${color}${top mem 3}${color1}${top uid 6}${color0}${goto 220}${top mem_res 6}${color}
     ${top name 7}${goto 75}${color7}${top cpu 7}${color}${top mem 7}${color1}${top uid 7}${color0}${goto 220}${top mem_res 7}${color}
     ${top name 8}${goto 75}${color7}${top cpu 8}${color}${top mem 8}${color1}${top uid 8}${color0}${goto 220}${top mem_res 8}${color}
     ${top name 9}${goto 75}${color7}${top cpu 9}${color}${top mem 9}${color1}${top uid 9}${color0}${goto 220}${top mem_res 9}${color}
    =======================
    One last thing, I believe that you are missing one of your cores.

    RE: CPU Core counts.

    In a bash file:
    Code:
    set root=(hd0,1)
    is your 1st hard drive, first partition - not that you have "zero" hard drives. Therefore "hd1" is the second harddrive

    AMD Athlon II X4 640 Propus 3.0GHz Socket AM3 95W Quad-Core Desktop Processor
    - - notice it "says" Quad-Core
    - - - BUT - - - sensors doesn't even show my triple core AMD Athlon X3 cores - HardInfo does though.
    - - - and with Intel - sensors report: Core0, Core1, Core2, Core3

    It is still the same number of cores = 4 just as hd0 and hd1 means the first and second hard drives.

    so:
    Code:
    Intel		AMD		Conky
    Quad		4 CPU		${cpu}
    ------------------------------------------
    Core0		cpu1		${cpu1}
    Core1		cpu2		${cpu2}
    Core2		cpu3		${cpu3}
    Core3		cpu4		${cpu4}
    
    and "conky" uses ${cpu0} - to calculate the average of the 4 "cores"
    Check it out.
    Attached Images Attached Images
    Last edited by Sector11; May 20th, 2013 at 06:25 PM.

  2. #21962
    Join Date
    Apr 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    and "conky" uses ${cpu0} - to calculate the average of the 4 "cores"
    Ignorance really is bliss! Thanks a lot for that catch! I'll find some time to read your Using Sensors article soon.

    EDIT: Wow, these hwmon and platform variables seem really useful. Can't wait to try these methods and compare with the /tmp file method! Neverending struggle to reach 0% idle while running Conky.
    Last edited by kobayash1; May 20th, 2013 at 10:44 PM.

  3. #21963
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    They can be found here, however you need to download Teo's scripts from the first post in that thread and quite possibly redo some of my stuff as things have changed over time. Check out the following two post as well as the one given.

    If you need help, I'm here and will help in any way possible, Teo's script adapt to various cities quite nicely.
    Thank you Sector11. This is my first try with conky, and one of my first tries with code, so any help will be greatly appreciated.
    I was kinda dreading that'd be your answer. The scripts you used were in the AccuW.tar link. There's nothing in that link anymore. I guess I'm screwed, then.
    And I do have Teo's scripts. I just don't know what to do with them...
    To make things worse, I'm way over my head here. I could make conky work for me only because of 42dorian's AMAZING tutorial, which I followed to the letter, but now I'm lost.

    Is there a tutorial (just like 42dorian's) on how to get a weather arrangement just like the one you showed on the post you linked, or on the one right below it (#16)? I just need 1 international city (Buenos Aires, Argentina), and 1 US city (Miami, Fl.).

    On an unrelated note, I'm having a weird (for me) issue with conky. When I start the computer up, conky loads with its top below the top bar. I have to open conky in Gedit and SAVE IT (without doing anything to it) for it to show properly. Any ideas on that?


    This one's right after startup This one's after saving conky
    (look at the overlap on top)

    Screenshot from 2013-05-20 11:01:14.jpg ..................Screenshot from 2013-05-20 11:04:24.jpg

  4. #21964
    Join Date
    Aug 2007
    Beans
    161

    Re: Post your .conkyrc files w/ screenshots

    In the attached image from my Conky, how do I get proper icons for the Q, A, and A? Thanks!
    Attached Images Attached Images

  5. #21965
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Inodoro Pereyra View Post
    On an unrelated note, I'm having a weird (for me) issue with conky. When I start the computer up, conky loads with its top below the top bar. I have to open conky in Gedit and SAVE IT (without doing anything to it) for it to show properly. Any ideas on that?
    It's about conky, it's not unrelated.

    Looks like conky is starting before your menu bar is running. Start your conky put a -p (pause in seconds):

    conky -p 10
    or maybe:

    conky -c /path_to/myconky -p 10

    You might need longer than 10 seconds.

    That's an OLD archive, not all is lost. I have a backup here --> AccuW.tar.gz.

    I'll have to check here to see if it still works as things at accuweather have changed a bit (I believe). Will test shortly.

    BsAs and Miami is easy if you want to use accuweather or weather·com ... with up to 10 days if you want ... I believe I have a setup, with Teo's latest scripts already done for two cities. I'll look.

    Working together we'll get you going.

    Can you post the "broken" conky code, complete as is - and what is your screen resolution?
    Lets see if we can get you fixed up.

    I take it you are "un gaucho porteño"? I believe with one of the scripts we can get right down to various barrios in BsAs - not sure, might be another weather script.

  6. #21966
    Join Date
    Apr 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Yep. Using the hwmon variable to get all the data I can from it, I've reduced the number of ${exec} variables in my .conf to just 2. Running just Irssi and Conky on my desktop, I've achieved the goal. Sure, I had to wait a few cycles for those pesky 1's to leave, and surely enough, another 1 showed up on the next cycle. But man am I amazed at all the data Conky can pull and display with such little resources.

    Thanks to everyone with all your help and suggestions!

    .conf: http://pastebin.com/zL0QBPsM
    Attached Images Attached Images

  7. #21967
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    It's about conky, it's not unrelated.

    Looks like conky is starting before your menu bar is running. Start your conky put a -p (pause in seconds):

    conky -p 10
    or maybe:

    conky -c /path_to/myconky -p 10

    You might need longer than 10 seconds.
    Yep! You got it!
    Your post got me thinking, because, following Dk75's instructions, I had created a desktop file, through which I should've been running a script, conky-delayed.sh, which had a 60 second delay, but conky was starting right away. So first I tried running conky-delayed.sh manually, on the terminal, and it didn't run. But then, I looked at the desktop file, and found two! One, conky.desktop, and the other one, conky-delayed.desktop. So I added the -p10 instruction to the conky.desktop file, restarted the computer and...voilá! Conky is running great from the get go!

    Now the not-so-good news...

    Quote Originally Posted by Sector11 View Post
    That's an OLD archive, not all is lost. I have a backup here --> AccuW.tar.gz.

    I'll have to check here to see if it still works as things at accuweather have changed a bit (I believe). Will test shortly.
    I saw you made the backup an hour ago. Thank you.
    Ok, downloaded it, and made the AccuW_2 directory EXACTLY as you posted it, and restarted conky. So far, nothing happened.
    But I still don't know what to do with Teo's scripts, so that may be the reason for the problem...

    Quote Originally Posted by Sector11 View Post
    BsAs and Miami is easy if you want to use accuweather or weather·com ... with up to 10 days if you want ... I believe I have a setup, with Teo's latest scripts already done for two cities. I'll look.

    Working together we'll get you going.
    Yeah, easy for YOU!!!
    Anyways, I don't need 10 day forecast. With a 2 day forecast I'm happy.


    Quote Originally Posted by Sector11 View Post
    Can you post the "broken" conky code, complete as is - and what is your screen resolution?
    Lets see if we can get you fixed up.
    Yep, gladly. My screen resolution is 1440x900, I'm on a Dell Inspiron 1525, running 12.04 LTS.
    When I try to post the code, it gets all screwed up (probably the post is too long), so I will post it on a following post.

    Quote Originally Posted by Sector11 View Post
    I take it you are "un gaucho porteño"? I believe with one of the scripts we can get right down to various barrios in BsAs - not sure, might be another weather script.
    Yep, I am. I was actually living in Miami for the last 13 years, until the nice ICE people decided to invite me to leave the country, after keeping me their "guest" for little more than a year. That's why I dissappeared from the forum, and why I don't remember squat about Ubuntu, Linux (not that I knew much before) and a whole lot of other things.

  8. #21968
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Here it is.

    Code:
     ##################################
    ## VinDSL | rev. 11-12-01 20:20 ##
    ##################################
    ##     December 2011 Series     ##
    ##################################
    
    ## ¡PLEASE READ THE FINE PRINT! ##
    
    ####
    ## Development Platforms (current)
    #
    #  Ubuntu 10.10 'Maverick Meerkat' (GNOME 2.28 - Conky 1.8.0)
    #  Ubuntu 12.04 'Precise Pangolin' (GNOME-SHELL - UNITY 2D/3D - Conky 1.8.1)
    #  Screen Resolution: 1280x1024x24 (DELL UltraSharp 1907FP)
    
    ####
    ## Prerequisites (required)
    #
    #  conky-all 1.8.0 or 1.8.1-5
    #  cURL - Command Line Tool
    #  xsltproc - Command Line Tool
    #  UTF-8 Compatible Text Editor
    #
    ## Tips n' Tricks
    ## Several ppl (including myself) have experienced issues with conky-all 1.8.1-6
    ## In every instance, downgrading to conky-all 1.8.1-5 has solved the problem(s).
    ## I recommend using (and pinning) conky-all 1.8.1-5 until things get sorted.
    ## conky-all 1.8.1-5 can be downloaded here: https://launchpad.net/ubuntu/+source/conky-all/1.8.1-5
    
    ####
    ## Installed fonts (required)
    #
    #  ConkyWeather (Stanko Metodiev)
    #  Cut Outs for 3D FX (Fonts & Things)
    #  Droid Font Family (Google Android SDK)
    #  KR A Round (Kat's Fun Fonts)
    #  OpenLogos (Icoma)
    #  PizzaDude Bullets (Jakob Fischer)
    #  Radio Space (Iconian Fonts)
    #  StyleBats (Vinterstille)
    #  Ubuntu Font Family (Canonical Ltd)
    #  Ubuntu Title Bold (Paulo Silva - not included in link below)
    #  Weather (Jonathan Macagba)
    # 
    ## Tips n' Tricks from Mr. Peachy, djyoung4, and 42dorian (Thanks!)
    ## Most necessary fonts can be downloaded here: http://ompldr.org/vOHdoag
    ## Unzip the fonts into your font folder, for example: /home/username/.fonts
    ## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv
    
    ####
    ## Use XFT? Required to Force UTF8 (see below)
    #
    use_xft yes
    xftfont DroidSans:size=8.75
    xftalpha 0.1
    
    ####
    ## Force UTF8? Requires XFT (see above)
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## This buffer is used for text, single lines, output from $exec, and other variables.
    ## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
    ## Decreasing the size (too low) will truncate content and cause strange display output.
    ## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
    #
    text_buffer_size 640
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 2.0
    
    ####
    ## The number of times Conky will update before quitting.
    ## Zero makes Conky run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window in instead of using desktop?
    #
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_class conky-semi
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    ####
    ## Some distros also require the following 2 lines.
    #
    own_window_argb_visual yes
    own_window_argb_value 255
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades yes
    default_shade_color 292421
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders no
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment top_right
    
    ####
    ## Minimum size of the text area.
    ## Syntax: minimum_size [width] [height]
    #
    minimum_size 260 800
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 260
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 5      ## Left / Right
    gap_y 10  ## Top / Bottom
    
    ####
    ## Shorten MiB/GiB to M/G in stats.
    #
    short_units no
    
    ####
    ## Pad % symbol spacing after numbers.
    #
    pad_percents 0
    
    ####
    ## Pad spacing between text and borders.
    #
    border_inner_margin 4
    
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 10
    
    ####
    ## Subtract file system -/+buffers/cache from used memory?
    ## Set to yes, to produce meaningful physical memory stats.
    #
    no_buffers yes
    
    ####
    ## Set to yes, if you want all text to be in UPPERCASE.
    #
    uppercase no
    
    ####
    ## Number of cpu samples to average.
    ## Set to 1 to disable averaging.
    #
    cpu_avg_samples 2
    
    ####
    ## Number of net samples to average.
    ## Set to 1 to disable averaging.
    #
    net_avg_samples 2
    
    ####
    ## Add spaces to keep things from moving around?
    ## Only affects certain objects.
    #
    use_spacer right
    
    ####
    ## My colors (suit yourself)
    #
    color0 White        #FFFFFF
    color1 Ivory        #FFFFF0
    color2 Ivory2        #EEEEE0
    color3 Ivory3        #CDCDC1
    color4 Red        #FFA54F
    color5 Tan2        #EE9A49
    color6 Gray        #7E7E7E
    color7 AntiqueWhite4    #8B8378
    color8 Dark blue    #696969
    color9 Tomato        #FF6347
    
    #####
    ## Load Lua for shading (optional)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    ####
    ## Load Lua for bargraphs (required)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/bargraph_small.lua
    lua_draw_hook_post main_bars
    
    TEXT
    ##################################
    ##             LOGO             ##
    ##################################
    ##Uncomment for hard-coded ID (static)
    #${voffset -20}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}1${offset 1}2${offset 1}.${offset 0}0${offset 0}4${font}
    ####
    ## Uncomment for soft-coded ID (dynamic)
    ${voffset -27}${font OpenLogos:size=80}${color2}v${font}${voffset -65}${goto 138}${font UbuntuTitleBold:size=28}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
    ####
    ## Additional ID (branch version, code name, release date, etc.)
    #{voffset -1}${goto 188}${font Ubuntu-B:size=8.1}${color4}alpha 1${font}
    ##################################
    ##            SYSTEM            ##
    ##################################
    #${voffset 5}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 5}${font}
    # ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
    #${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
    #${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${pre_exec dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
    #${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
    #${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
    ##################################
    ##          PROCESSORS          ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 5}${color8}${voffset -2}${hr 5}${font}
    ${voffset 5}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
    ##################################
    ##            MEMORY            ##
    ##################################
    ${voffset 5}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 5}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
    ##################################
    ##             HDD              ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color8}${voffset -2}${hr 5}${font}
    #${voffset 6}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}ROOT${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
    ${voffset 5}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}HOME${goto 95}${font DroidSans:size=8.3}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%${font}
    #${voffset 15}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
    ##################################
    ##         TOP PROCESSES        ##
    ##################################
    #${voffset 15}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem #name 1}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem #name 2}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem #name 3}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 4}${alignr}${top_mem mem 4}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
    ##################################
    ##           NETWORK            ##
    ##################################
    #${voffset 12}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color8}${voffset -2}${hr 5}${font}
    #${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown eth0}${alignr}${font DroidSans:size=8.3}${downspeed eth0}${font}
    #${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.65}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup eth0}${alignr}${font DroidSans:size=8.3}${upspeed eth0}${font}
    #${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.5}LAN${alignr}${font DroidSans:size=8.3}${addr eth0}${font}
    #${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${alignr}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
    ##################################
    ##             TIME             ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color8}${voffset -2}${hr 5}${font}
    ${voffset -12}${font RadioSpace:size=62}${color3}${if_match ${time %l}<=9}${alignc 7}${time %H:%M}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M}${endif}${endif}${font}
    # ${voffset 0}${font DroidSansFallback:bold:size=6.85}${color4}${alignc 2}Sunrise${offset 1}# ${execi 1800 conkyForecast -d SR}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 1800 conkyForecast -d SS}${font}
    #${voffset 160}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color8}${voffset -2}${hr 5}${font}
    # ${voffset -4}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}
    ##################################
    ##      CALENDAR (5-Line)       ##
    ##################################
    #${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset 18}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
    #${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
    #${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
    #${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
    #${voffset -83}${font CutOutsFor3DFX:size=67}${color8}${alignc 99}2${font}
    ####
    ## Uncomment for Conky 1.8.0 (use mono fonts only)
    # ${voffset -68}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for Conky 1.8.1 (use mono fonts only)
    #${voffset -84}${offset 95}${font DroidSansMono:size=9.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    
    ##################################
    ##      WEATHER (Metric)        ##
    ##################################
    ${voffset -12}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 5}${font}
    ${color1}BUENOS AIRES, ARGENTINA. 
    ${texeci 500 bash /home/bernardo/AccuW_2/BsAs/acc_int_images}\
    ${texeci 500 bash /home/bernardo/AccuW_2/Miami/acc_int_images}\
    ${image /home/bernardo/AccuW_2/BsAs/cc.png -p 5,50 -s 110x66}
    ${execpi 600 sed -n '1p' /home/bernardo/AccuW_2/BsAs/messages}
                   ${font Zekton:bold:size=12}${execpi 600 sed -n '29p' /home/bernardo/AccuW_2/BsAs/curr_cond}°     ${execpi 600 sed -n '30p' /home/bernardo/AccuW_2/BsAs/curr_cond}°${font}
    
                    ${color1}WIND: ${color}${execpi 600 sed -n '31p' /home/bernardo/AccuW_2/BsAs/curr_cond} ${execpi 600 sed -n '32p' /home/bernardo/AccuW_2/BsAs/curr_cond}
                     ${color1}HUM: ${color}${execpi 600 sed -n '33p' /home/bernardo/AccuW_2/BsAs/curr_cond}
                      ${color1}DP: ${color}${execpi 600 sed -n '37p' /home/bernardo/AccuW_2/BsAs/curr_cond}°
                      ${color1}PR: ${color}${execpi 600 sed -n '34p' /home/bernardo/AccuW_2/BsAs/curr_cond}
                     ${color1}VIS: ${color}${execpi 600 sed -n '38p' /home/bernardo/AccuW_2/BsAs/curr_cond}
    ${color1}UVI: ${color}${execpi 600 sed -n '36p' /home/bernardo/AccuW_2/BsAs/curr_cond}\
    ${goto 134}${color1}CLOUD: ${color}${execpi 600 sed -n '35p' /home/bernardo/AccuW_2/BsAs/curr_cond}
    #${color1}Sunrise:  ${color}${execpi 600 sed -n '39p' /home/bernardo/AccuW_2/BsAs/curr_cond}\
    #${goto 160}  ${color1}Sunset: ${color}${execpi 600 sed -n '40p' /home/bernardo/AccuW_2/BsAs/curr_cond}
    #${color1}Moonrise: ${color}${execpi 600 sed -n '41p' /home/bernardo/AccuW_2/BsAs/curr_cond}\
    #${goto 160} ${color1}Moonset: ${color}${execpi 600 sed -n '42p' /home/bernardo/AccuW_2/BsAs/curr_cond}
    ${hr 1}
     ${color1}TODAY${color} P: ${execpi 600 sed -n '28p' /home/bernardo/AccuW_2/BsAs/first_days}${goto 180}${color1}TONIGHT${color} P: ${color}${execpi 600 sed -n '33p' /home/bernardo/AccuW_2/BsAs/first_days}\
    ${image /home/bernardo/AccuW_2/BsAs/tod.png -p 0,190 -s 110x66}\
    ${image /home/bernardo/AccuW_2/BsAs/ton.png -p 145,190 -s 110x66}
    
                  ${execpi 600 sed -n '26p' /home/bernardo/AccuW_2/BsAs/first_days}°\
    ${goto 272}${execpi 600 sed -n '31p' /home/bernardo/AccuW_2/BsAs/first_days}°
    
                  ${execpi 600 sed -n '27p' /home/bernardo/AccuW_2/BsAs/first_days}°\
    ${goto 272}${execpi 600 sed -n '32p' /home/bernardo/AccuW_2/BsAs/first_days}°         
    
    ${color8}${voffset -2}${hr 5}
    ${color1}MIAMI, FLORIDA, UNITED STATES.
    ${image /home/bernardo/AccuW_2/Miami/cc.png -p 10,320 -s 110x66}
    ${execpi 600 sed -n '1p' /home/bernardo/AccuW_2/Miami/messages}
                   ${font Zekton:bold:size=12}${execpi 600 sed -n '29p' /home/bernardo/AccuW_2/Miami/curr_cond}°     ${execpi 600 sed -n '30p' /home/bernardo/AccuW_2/Miami/curr_cond}°${font}
    
                    ${color1}WIND: ${color}${execpi 600 sed -n '31p' /home/bernardo/AccuW_2/Miami/curr_cond} ${execpi 600 sed -n '32p' /home/bernardo/AccuW_2/Miami/curr_cond}
                     ${color1}HUM: ${color}${execpi 600 sed -n '33p' /home/bernardo/AccuW_2/Miami/curr_cond}
                      ${color1}DP: ${color}${execpi 600 sed -n '37p' /home/bernardo/AccuW_2/Miami/curr_cond}°
                      ${color1}PR: ${color}${execpi 600 sed -n '34p' /home/bernardo/AccuW_2/Miami/curr_cond}
                     ${color1}VIS: ${color}${execpi 600 sed -n '38p' /home/bernardo/AccuW_2/Miami/curr_cond}
    ${color1}UVI: ${color}${execpi 600 sed -n '36p' /home/bernardo/AccuW_2/Miami/curr_cond}\
    ${goto 134}${color1}CLOUD: ${color}${execpi 600 sed -n '35p' /home/bernardo/AccuW_2/Miami/curr_cond}
    #${color1}Sunrise:  ${color}${execpi 600 sed -n '39p' /home/bernardo/AccuW_2/Miami/curr_cond}\
    #${goto 160}  ${color1}Sunset: ${color}${execpi 600 sed -n '40p' /home/bernardo/AccuW_2/Miami/curr_cond}
    #${color1}Moonrise: ${color}${execpi 600 sed -n '41p' /home/bernardo/AccuW_2/Miami/curr_cond}\
    #${goto 160} ${color1}Moonset: ${color}${execpi 600 sed -n '42p' /home/bernardo/AccuW_2/Miami/curr_cond}
    ${hr 1}
     ${color1}TODAY${color} P: ${execpi 600 sed -n '28p' /home/bernardo/AccuW_2/Miami/first_days}${goto 180}${color1}TONIGHT${color} P: ${color}${execpi 600 sed -n '33p' /home/bernardo/AccuW_2/Miami/first_days}\
    ${image /home/bernardo/AccuW_2/Miami/tod.png -p 0,458 -s 110x66}\
    ${image /home/bernardo/AccuW_2/Miami/ton.png -p 145,458 -s 110x66}
    
                  ${execpi 600 sed -n '26p' /home/bernardo/AccuW_2/Miami/first_days}°\
    ${goto 272}${execpi 600 sed -n '31p' /home/bernardo/AccuW_2/Miami/first_days}°
    
                  ${execpi 600 sed -n '27p' /home/bernardo/AccuW_2/Miami/first_days}°\
    ${goto 272}${execpi 600 sed -n '32p' /home/bernardo/AccuW_2/Miami/first_days}°
    
    ${hr 1}
    ##################################
    ##   RHYTHMBOX (Experimental)   ##
    ##################################
    #${if_running rhythmbox}
    #${voffset -8}${font DroidSans:bold:size=7.75}${color4}RHYTHMBOX${offset 8}${color8}${voffset -2}${hr 2}${font}
    #${voffset 8}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/rhythmbox-client --print-#playing-format %tt | head -n 1`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 rhythmbox-client --print-playing-format # %tt --no-start}}${font}${else}${alignc}${execi 2 rhythmbox-client --print-playing-format %tt --no-start}${font}  ${endif} # ${endif}
    ##################################
    ##    BANSHEE (Experimental)    ##
    ##################################
    # ${if_running banshee}
    # ${voffset -10}${font DroidSans:bold:size=7.75}${color4}BANSHEE${offset 8}${color8}${voffset -2}${hr 2}${font}
    # ${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/banshee --query-title --# no-present | cut -f1- -d " "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 banshee --query-title --no-present | cut # -f2- -d " "}}${font}${else}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d " "}${font}${endif}  ${endif}

  9. #21969
    Join Date
    Sep 2007
    Location
    house
    Beans
    79
    Distro
    Lubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Found on Deviantart by SeaJey



    Code:
    #==============================================================================
    #                               conkyrc_seamod
    # Date    : 05/02/2012
    # Author  : SeaJey
    # Version : v0.1
    # License : Distributed under the terms of GNU GPL version 2 or later
    # 
    # This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
    # 
    # conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
    # conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
    #==============================================================================
    
    background yes
    update_interval 1
    
    cpu_avg_samples 1
    net_avg_samples 2
    temperature_unit celsius
    
    double_buffer yes
    no_buffers yes
    text_buffer_size 2048
    
    gap_x 1300
    gap_y 20
    minimum_size 300 900
    maximum_width 350
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_argb_visual yes
    own_window_argb_value 0
    own_window_class conky
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    border_inner_margin 0
    border_outer_margin 0
    alignment tr
    
    
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    override_utf8_locale yes
    use_xft yes
    xftfont caviar dreams:size=10
    xftalpha 0.5
    uppercase no
    
    # Defining colors
    default_color FFFFFF
    # Shades of Gray
    color1 DDDDDD
    color2 AAAAAA
    color3 888888
    # Orange
    color4 EF5A29
    # Green
    color5 77B753
    
    # Loading lua script for drawning rings
    lua_load ~/.conky/seamod_rings.lua
    lua_draw_hook_post main
    
    ## System information using conky capabilities
    
    # Header with base system info
    TEXT
    ${font Ubuntu:size=10,weight:bold}${color4}SYSTEM ${hr 2}
    ${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
    ${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename          ${time %B} ${time %d}, ${time %Y} ${alignr}${time %I:%M} 
    ${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime
    ${offset 140}CPU 1 - ${alignc}${cpu cpu1}%${alignr}${freq_g 1} GHz
    ${offset 140}CPU 2 - ${alignc}${cpu cpu2}%${alignr}${freq_g 2} GHz
    ${offset 140}CPU 3 - ${alignc}${cpu cpu3}%${alignr}${freq_g 3} GHz
    ${offset 140}CPU 4 - ${alignc}${cpu cpu4}%${alignr}${freq_g 4} GHz
    # Showing CPU Graph
    ${voffset -36}
    ${offset 120}${cpugraph 30,183 666666 666666}${voffset -25}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}CPU
    # Showing TOP 5 CPU-consumers
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%
    
    #Showing memory part with TOP 5
    ${voffset 40}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}MEM    $mem of $memmax$alignr$memperc%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
    ${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%
    
    # Showing disk partitions: root, home and Data
    ${voffset 42}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}DISKS
    ${offset 120}${diskiograph 33,183 666666 666666}${voffset -30}
    ${voffset 20}
    ${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}
    ${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /home}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /home}
    ${offset 115}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /var}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /var}
    
    # Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
    ${voffset 46}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}ETHERNET
    ${offset 140}${color1}${font Ubuntu:size=10}LAN-  ${addr eth0}  
    ${offset 140}${color1}WAN-  ${pre_exec wget -O - http://ip.tupeux.com | tail} $font
    ${voffset 40}             
    ${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed eth0} / ${totalup}
    ${offset 15}${upspeedgraph eth0 30,285 4B1B0C FF5C2B 100 -l}
    ${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed eth0} / ${totaldown}
    ${offset 15}${downspeedgraph eth0 30,285 324D23 77B753 100 -l}
    ${color4}${hr 2}
    ${alignc}${exec ~/.conky/./mail.sh} Gmails Waiting
    ${alignc}${font Ubuntu:size=10}CPU temp ${execi 1 cat /sys/module/k10temp/drivers/pci:k10temp/0000:00:18.3/temp1_input|cut -c  1,2} °C 
    ${alignc}${font Ubuntu:size=10}Mobo Temp:${exec sensors | grep 'temp2' | cut -c15-20}°C 
    ${alignc}NVidia Temp: ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} °C
    and lua
    Code:
    -==============================================================================
    --                            seamod_rings.lua
    --
    --  Date    : 05/02/2012
    --  Author  : SeaJey
    --  Version : v0.1
    --  License : Distributed under the terms of GNU GPL version 2 or later
    --
    --  This version is a modification of lunatico_rings.lua wich is modification of conky_orange.lua 
    --
    --  conky_orange.lua:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
    --  lunatico_rings.lua:  http://gnome-look.org/content/show.php?content=142884
    --==============================================================================
    
    require 'cairo'
    
    
    --------------------------------------------------------------------------------
    --                                                                    gauge DATA
    gauge = {
    {
        name='cpu',                    arg='cpu0',                  max_value=100,
        x=70,                          y=130,
        graph_radius=52,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu1',                  max_value=100,
        x=70,                          y=130, 
        graph_radius=40,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=40,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu2',                  max_value=100,
        x=70,                          y=130,
        graph_radius=28,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=30,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu3',                  max_value=100,
        x=70,                          y=130,
        graph_radius=16,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=4,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='memperc',                arg='',                      max_value=100,
        x=70,                          y=300,
        graph_radius=44,
        graph_thickness=20,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=42,
        txt_weight=0,                  txt_size=9.0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
        caption='',
        caption_weight=1,              caption_size=10.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='fs_used_perc',           arg='/var',                     max_value=100,
        x=70,                          y=470,
        graph_radius=50,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Var',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/home/',                     max_value=100,
        x=70,                          y=470,
        graph_radius=38,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=32,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Home',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/',                     max_value=100,
        x=70,                          y=470,
        graph_radius=26,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=22,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Root',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='downspeedf',           arg='eth0',                     max_value=100,
        x=70,                          y=660,
        graph_radius=54,
        graph_thickness=10,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Down',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='upspeedf',           arg='eth0',                     max_value=100,
        x=70,                          y=660,
        graph_radius=40,
        graph_thickness=10,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
        txt_radius=30,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Up',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    }
    
    -------------------------------------------------------------------------------
    --                                                                 rgb_to_r_g_b
    -- converts color in hexa to decimal
    --
    function rgb_to_r_g_b(colour, alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    -------------------------------------------------------------------------------
    --                                                            angle_to_position
    -- convert degree to rad and rotate (0 degree is top/north)
    --
    function angle_to_position(start_angle, current_angle)
        local pos = current_angle + start_angle
        return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
    end
    
    
    -------------------------------------------------------------------------------
    --                                                              draw_gauge_ring
    -- displays gauges
    --
    function draw_gauge_ring(display, data, value)
        local max_value = data['max_value']
        local x, y = data['x'], data['y']
        local graph_radius = data['graph_radius']
        local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
        local graph_start_angle = data['graph_start_angle']
        local graph_unit_angle = data['graph_unit_angle']
        local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
        local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
        local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
        local graph_end_angle = (max_value * graph_unit_angle) % 360
    
        -- background ring
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
        cairo_set_line_width(display, graph_thickness)
        cairo_stroke(display)
    
        -- arc of value
        local val = value % (max_value + 1)
        local start_arc = 0
        local stop_arc = 0
        local i = 1
        while i <= val do
            start_arc = (graph_unit_angle * i) - graph_unit_thickness
            stop_arc = (graph_unit_angle * i)
            cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
            cairo_stroke(display)
            i = i + 1
        end
        local angle = start_arc
    
        -- hand
        start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
        stop_arc = (graph_unit_angle * val)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
        cairo_stroke(display)
    
        -- graduations marks
        local graduation_radius = data['graduation_radius']
        local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
        local graduation_unit_angle = data['graduation_unit_angle']
        local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
        if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
            local nb_graduation = graph_end_angle / graduation_unit_angle
            local i = 0
            while i < nb_graduation do
                cairo_set_line_width(display, graduation_thickness)
                start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
                stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
                cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
                cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
                cairo_stroke(display)
                cairo_set_line_width(display, graph_thickness)
                i = i + 1
            end
        end
    
        -- text
        local txt_radius = data['txt_radius']
        local txt_weight, txt_size = data['txt_weight'], data['txt_size']
        local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
        local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
        local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
        cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
        cairo_set_font_size (display, txt_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
        cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
        cairo_show_text (display, value)
        cairo_stroke (display)
    
        -- caption
        local caption = data['caption']
        local caption_weight, caption_size = data['caption_weight'], data['caption_size']
        local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
        local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
        cairo_set_font_size (display, caption_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
        cairo_move_to (display, x + tox + 5, y + toy + 1)
        -- bad hack but not enough time !
        if graph_start_angle < 105 then
            cairo_move_to (display, x + tox - 30, y + toy + 1)
        end
        cairo_show_text (display, caption)
        cairo_stroke (display)
    end
    
    
    -------------------------------------------------------------------------------
    --                                                               go_gauge_rings
    -- loads data and displays gauges
    --
    function go_gauge_rings(display)
        local function load_gauge_rings(display, data)
            local str, value = '', 0
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
            draw_gauge_ring(display, data, value)
        end
        
        for i in pairs(gauge) do
            load_gauge_rings(display, gauge[i])
        end
    end
    
    -------------------------------------------------------------------------------
    --                                                                         MAIN
    function conky_main()
        if conky_window == nil then 
            return
        end
    
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        local display = cairo_create(cs)
        
        local updates = conky_parse('${updates}')
        update_num = tonumber(updates)
        
        if update_num > 5 then
            go_gauge_rings(display)
        end
    
        cairo_surface_destroy(cs)
        cairo_destroy(display)
    
    end
    and mail.sh
    Code:
    #!/bin/bash
    
    curl  https://username:password@mail.google.com/mail/feed/atom -s | grep fullcount | tail -c +12 | head -c -13
    Geek by nature, Linux by choice

  10. #21970
    Join Date
    Dec 2011
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    i remember once finding a conky-mimetype file from here. but for the **** of it, i can't find it anymore.
    anyone have it handy or remember where it is?
    plus, any updates to conky gtksourceview language definition?
    thanx.

Page 2197 of 2348 FirstFirst ... 1197169720972147218721952196219721982199220722472297 ... 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
  •