Page 2191 of 2291 FirstFirst ... 119116912091214121812189219021912192219322012241 ... LastLast
Results 21,901 to 21,910 of 22907

Thread: Post your .conkyrc files w/ screenshots

  1. #21901
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,812
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by gizmoid View Post
    This is absolutely beautiful. As my first post in this forum goes to you!! Should tell you something . I have been trying to get a weather section like your's for ever and a day.
    Thanks, so much!

    I just went through airport security, and am sitting in a terminal lounge, waiting for my plane to arrive.

    Kind words mean a lot to me, right now!
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  2. #21902
    Join Date
    May 2013
    Location
    United States
    Beans
    30
    Distro
    Ubuntu 13.04 Raring Ringtail

    Any conky experts out there?

    I've finally made my window manager pretty, and it was really fun doing it. But I'm now stuck, I'm really really new at conky, and I'm attempting to get http://ninquitassar.deviantart.com/a...onky-281468275 as my desktop conky.

    So lets start from the beginning, I'm running ubuntu 13.04+openbox I've sudo apt-get installed conky-all along with curl lm-sensors and hddtemp

    What confuses me though is when I downloaded the file from deviantart it contained multipule conkyrc config files, conkyrc0, conkyrc1, and conkyrc2 along with a lua folder I don't know with and a few scripts. The readme file provided with it wasn't much help either.

    I figured I'd just copy and paste all the conkyrc's into my .conkyrc config file and edit little tid bits here and there to get the desired affect, it didn't eaxctly work. SO

    I'm hoping someone out there can help me figure it out.

  3. #21903
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Merged Nolix's thread with this one.

  4. #21904
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Any conky experts out there?

    Quote Originally Posted by Nolix View Post
    I've finally made my window manager pretty, and it was really fun doing it. But I'm now stuck, I'm really really new at conky, and I'm attempting to get http://ninquitassar.deviantart.com/a...onky-281468275 as my desktop conky.

    So lets start from the beginning, I'm running ubuntu 13.04+openbox I've sudo apt-get installed conky-all along with curl lm-sensors and hddtemp

    What confuses me though is when I downloaded the file from deviantart it contained multipule conkyrc config files, conkyrc0, conkyrc1, and conkyrc2 along with a lua folder I don't know with and a few scripts. The readme file provided with it wasn't much help either.

    I figured I'd just copy and paste all the conkyrc's into my .conkyrc config file and edit little tid bits here and there to get the desired affect, it didn't eaxctly work. SO

    I'm hoping someone out there can help me figure it out.


    I'm not familiar with his particular code and I'm too lazy to see what it is, but, NO, I expect each conkyrc needs to be called separately. This can be done from terminal by typing something like

    Code:
    conky -c ~/Documents/Conky/Main/conkyrc0
    for each conkyrc file, be sure to change the path to a where ever you saved the conky files. (this will require you to have multiple terminal windows running to get all rc files running)

    IF you can get them to run with that, then we can make a bash script to launch them all at once with out needing terminal.

    I expect at this point, since you are new to conky, using a conky with LUA scripts maybe a little difficult for you to alter. You may start with a simple conky first to learn the basics before moving on.

    Try this one http://lonelymachines.org/2012/08/16...-conky-config/, it's where I got my start. There is also a lot of good tips and available codes in this thread as well.

    You may be more satisfied with a unique Conky tailored to your exact needs which you code yourself.

    Good Luck.
    >>Update<<
    Looks like they moved your post to the thread I was suggesting.
    Last edited by Petro Dawg; May 11th, 2013 at 04:19 AM.
    Who's Awesome? You're Awesome.

  5. #21905
    Join Date
    May 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by VinDSL View Post
    Thanks, so much!

    I just went through airport security, and am sitting in a terminal lounge, waiting for my plane to arrive.

    Kind words mean a lot to me, right now!
    No problem. I've been throught that man. Just gotta find some place to wind down after all the traveling. Where you headed?

    I really like the lay out you went with. nice to have so much right on the desktop.

    Your weather section really caught my eye. Been trying to do that for a long time, but never got it to work right. Tried the accuweather rss config. but the whole getting approval and requesting a key never worked.

    Any advice??

  6. #21906
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,812
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by gizmoid View Post
    No problem. I've been throught that man. Just gotta find some place to wind down after all the traveling. Where you headed?

    Any advice??
    I'm sitting in a hotel shuttle in Vegas, right now. LoL!

    And, I'm using ConkyWX for my weather parser. Go to the HOWTO in my sig, for details.
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  7. #21907
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    @ Nolix

    Normally I leave everything in the extracted folder and move this folder to where I keep my conky stuff (doesn't matter where).

    Downloads like these usually have 4 components.

    1) Conky configs (Usually named conkyrcX)

    2) Lua scripts
    Look in each conkyrc to see if it is using a lua script.
    If there is a line above "TEXT" Starting with lua_load, change the path in that line to where you saved the lua script.

    3) Other scripts
    Look in each conkyrc to see if it is using other scripts and change that path to where you saved other scripts.
    Running the conkyrc in terminal will show if it can't find a script.

    4) A startup script
    Open the startup script and make sure the paths are pointing to where you saved the conky configs

    In addition, check you have the fonts used in the configs and you may have to adjust the lines reading sensors and drives to your computer setup.
    Then as Petro Dawg said test each config in terminal to show any errors.
    eg
    Code:
    conky -c /path/to/your/config
    Last edited by stinkeye; May 11th, 2013 at 11:34 AM.

  8. #21908
    Join Date
    May 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by VinDSL View Post
    I'm sitting in a hotel shuttle in Vegas, right now. LoL!

    And, I'm using ConkyWX for my weather parser. Go to the HOWTO in my sig, for details.
    OK, i dl'd the conkywx program. looking through the config file, it seems way over my head. just to add a small weather section to my existing config.

    this is my config on my laptop.
    Code:
    use_xft yes
    xftfont Terminus:size=8
    xftalpha 0.8
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_argb_visual yes
    own_window_type normal
    own_window_class conky-semi
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    background no
    double_buffer yes
    minimum_size 300 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_shade_color black
    default_outline_color white
    default_bar_size 150 5
    default_gauge_size 35 25
    imlib_cache_size 0
    draw_shades no
    alignment top_right
    gap_x 5
    gap_y 5
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    default_color Black
    color1 black
    color2 blue
    
    
    TEXT
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Info ${color slate grey}${hr 2}${font}
    ${color1}Date ${alignr}${color slate grey}${time %a,}${color}${time %e %B %G}
    ${color1}Time ${alignr}${color}${time %T}
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}System ${color slate grey}${hr 2}${font}
    ${color1}Hostname ${alignr}${color}${nodename}
    ${color1}${sysname} ${alignr}${color}${kernel}-${machine}
    ${color1}CPU ${alignr}${color}${freq_g}GHz
    ${color1}Loadaverage ${alignr}${color}${loadavg 1} ${loadavg 2} ${loadavg 3}
    ${color1}Uptime ${alignr}${color}${uptime}
    ${color1}Battery Status ${alignr}${color}${battery BAT1} $color remaining
    ${color1}Cpu Temperature ${alignr}${color}${acpitemp}C
    ${color1}Hdd Temperature ${alignr}${color}${hddtemp /dev/sda}C
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Processors ${color slate grey}${hr 2}${font}
               ${color1}Core 1: ${color}${cpu cpu1}% ${cpugauge cpu2}${color1}          Core 2: ${color}${cpu cpu2}% ${cpugauge cpu2}
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Memory ${color slate grey}${hr 2}${font}
    ${color1}Memory ${color}${alignr}${memeasyfree} / ${memmax}
    ${color1}Currently ${color}${alignr}${memperc}% ${membar}
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Filesystem ${color slate grey}${hr 2}${font}
    ${color1}/ ${color}${alignc}${fs_used /} / ${fs_size /} ${color}${alignr}${fs_free_perc /} %
    ${color}${fs_bar 5,300 /}
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Networking ${color slate grey}${hr 2}${font}
    ${if_existing /proc/net/route wlan0}${color1}Ip ${color}${alignr}${addr wlan0}
    ${color1}AP ${color}${alignr}${wireless_essid wlan0}
    ${color1}Signal Strength ${color}${alignr}${wireless_link_qual_perc wlan0}${wireless_link_bar 10,100 wlan0}
    ${color1}Download ${alignr}${color}${downspeed wlan0}${downspeedgraph wlan0 10,100}
    ${color1}Upload ${alignr}${color}${upspeed wlan0}${upspeedgraph wlan0 10,100}
    ${color1}Total Down/Up ${alignr}${color}${totaldown wlan0}${color1}/${color}${totalup wlan0}
    ${else}${if_existing /proc/net/route eth0}${color1}Ip ${color}${alignr}${addr eth0}
    ${color1}Download ${alignr}${color}${downspeed eth0}${downspeedgraph eth0 10,100}
    ${color1}Upload ${alignr}${color}${upspeed eth0}${upspeedgraph eth0 10,100}
    ${color1}Total Down/Up ${alignr}${color}${totaldown eth0}${color1}/${color}${totalup eth0}${endif}${endif}
    
    ${font AvantGardeLTMedium:bold:size=10}${color Tan1}Top Processes ${color slate grey}${hr 2}${font}
    ${color1}${top name 1} ${alignr}${color}${top cpu 1} ${top mem 1}
    ${color1}${top name 2} ${alignr}${color}${top cpu 2} ${top mem 2}
    ${color1}${top name 3} ${alignr}${color}${top cpu 3} ${top mem 3}
    ${color1}${top name 4} ${alignr}${color}${top cpu 4} ${top mem 4}
    ${color1}${top name 5} ${alignr}${color}${top cpu 5} ${top mem 5}
    And this is my location through wunderground. Station ID: KILPALAT10

    URL: http://www.wunderground.com/q/zmw:60074.1.99999

    I tried to change the location in the "wxconf", but am sure i did something wrong. The default configuration doesn't even load anything up.

  9. #21909
    Join Date
    May 2013
    Location
    United States
    Beans
    30
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    @ Nolix

    Normally I leave everything in the extracted folder and move this folder to where I keep my conky stuff (doesn't matter where).

    Downloads like these usually have 4 components.

    1) Conky configs (Usually named conkyrcX)

    2) Lua scripts
    Look in each conkyrc to see if it is using a lua script.
    If there is a line above "TEXT" Starting with lua_load, change the path in that line to where you saved the lua script.

    3) Other scripts
    Look in each conkyrc to see if it is using other scripts and change that path to where you saved other scripts.
    Running the conkyrc in terminal will show if it can't find a script.

    4) A startup script
    Open the startup script and make sure the paths are pointing to where you saved the conky configs

    In addition, check you have the fonts used in the configs and you may have to adjust the lines reading sensors and drives to your computer setup.
    Then as Petro Dawg said test each config in terminal to show any errors.
    eg
    Code:
    conky -c /path/to/your/config

    Yeah, that seemed to work!

    I've been messing around with Conky files all day though, I didn't like having multipule rc files, 'cause I like to keep it as simple and effective as possible. I'm trying to decide what else to add to it though.

    Code:
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # Update interval in seconds
    update_interval 4
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    own_window yes
    own_window_transparent yes
    #own_window_type override
    own_window_type desktop
    #own_window_type normal #use this if you want a nice shadow to appear around conky
    
    # If own_window is yes, these window manager hints may be used
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    #default_shade_color white
    #default_outline_color grey
    own_window_colour grey
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 12
    gap_y 8
    
    # Subtract file system buffers from used memory?
    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
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer none
    
    TEXT
    SYSTEM ${hr 2}
    ${alignc 24}${font Ubuntu:size=14}${nodename}${font}
    ${alignc -8}${font Ubuntu:size=8}Dell Inspiron N5050
    ${voffset 2}${font Ubuntu:style=Bold:size=12}Ubuntu 13.04
    ${font Ubuntu:size=8}Kernel: ${alignr}${kernel}
    
    #cpu#
    CPU ${hr 2}
    ${offset 0}${font Nimbus Mono L:size=8 style=bold}Core1:  ${font neuropol:size=8}${cpu cpu1}% $alignr ${freq_g (1)} GHz / ${exec sensors | grep "Core 0" | cut --bytes=14-21}
    ${offset 0}${font Nimbus Mono L:size=8 style=bold}Core2:  ${font neuropol:size=8}${cpu cpu2}% $alignr ${freq_g (2)} GHz / ${exec sensors | grep "Core 1" | cut --bytes=14-21}
    
    MEMORY ${hr 2}
    #..: HARD DISK :..
    #--- correct to your partitions ---
    ${offset 0}${font neuropol:size=12}$memperc% ${font Nimbus Mono L:size=8 style=bold} Ram
    ${offset 0}${font neuropol:size=12}$swapperc% ${font Nimbus Mono L:size=8 style=bold} Swap
    ${offset 0}${voffset -5}${cpubar cpu6 0, 110}${voffset 2}${color1}
    ${offset 0}root   ${fs_free /} / ${fs_size /}
    
    
    #..: BATTERY :..
    BATTERY ${hr 2}
    ${offset 0} ${font neuropol:size=12}${battery_percent BAT0}%${font Nimbus Mono L:size=8 style=bold}  Battery
    ${offset 0}${voffset -5}${cpubar cpu6 0, 110}${voffset 2}${color1}
    ${offset 0}..:: ${acpiacadapter} ::..
    ${offset 0}${battery_time BAT0}
    
    
    DATE ${hr 2}
    ${alignc 19}${font Arial Black:size=18}${time %H:%M}${font}
    ${voffset 2}${alignc}${time %A, %d %B %Y}
    Screenshot from 2013-05-11 13:19:52.jpg
    Last edited by Nolix; May 12th, 2013 at 04:16 AM.

  10. #21910
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Nolix View Post
    Yeah, that seemed to work!

    I've been messing around with Conky files all day though, I didn't like having multipule rc files, 'cause I like to keep it as simple and effective as possible. I'm trying to decide what else to add to it though.
    I grabbed the file you originally pointed to ... I have no music here, no wifi or wlan - just a wired connection so some things didn't fit. However I took the first two conkys and merged then into one with a whole pocket full of tweaks and added the shaded background:


    Not a bad little conky.

    conky
    Code:
    ## Conky by Ninquitassar (2012)
    ## my deviantart: http://ninquitassar.deviantart.com/
    ## special thanks to Iacoporosso
    ##..: Conky status :..
    ## Edited for Debian SID & OpenBox bt Sector11 - May 2013
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    own_window_colour gray
    own_window_title Conky
    own_window_class Conky
    
    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes
    
    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type normal
    # own_window_argb_visual yes
    
    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Use: own_window_type normal
    ### Use: own_window_transparent no
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
    # own_window_argb_value 0
    
    minimum_size 320 680     ## width, height
    maximum_width 320      ## width
    
    gap_x 5 # left-right
    gap_y 10 # up-down
    
    alignment top_right
    ###################################################  End Window Settings  ###
    ###  Font Settings  #########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont Monofur:bold:size=9
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    draw_shades yes # amplifies text if yes
    default_shade_color 000000 ## black
    draw_outline no # amplifies text if yes
    default_outline_color 000000 ## black
    
    #default_color 000000 #  0   0   0	Black
    default_color DCDCDC #220 220 220	Gainsboro
    color0 8FBC8F #143 188 143	DarkSeaGreen
    color1 778899 #119 136 153	LightSlateGray
    color2 FF8C00 #255 140   0	DarkOrange
    color3 7FFF00 #127 255   0	Chartreuse
    color4 FFA07A #255 160 122	LightSalmon
    color5 FFDEAD #255 222 173	NavajoWhite
    color6 00BFFF #  0 191 255	DeepSkyBlue
    color7 00FFFF #  0 255 255	Cyan
    color8 FFFF00 #255 255   0	Yellow
    color9 B22222 #178  34  34	FireBrick
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 5
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders no #yes
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    # Boolean value, if true, Conky will be forked to background when started.
    background yes
    
    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer none
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 4048
    
    # Subtract (file system) buffers from used memory?
    no_buffers yes
    
    # change GiB to G and MiB to M
    short_units yes
    
    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2
    
    #   Maximum size of user text buffer, i.e. layout below TEXT line in config file
    #  (default is 16384 bytes)
    # max_user_text 16384
    
    # Desired output unit of all objects displaying a temperature. Parameters are
    # either "fahrenheit" or "celsius". The default unit is degree Celsius.
    # temperature_unit Fahrenheit
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
     lua_load /media/5/Conky/LUA/draw-bg.lua
    #TEXT
    #${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    #lua_load /media/5/Conky/LUA/draw-bg.lua
    #lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.2
    # lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.2
    #
    # TEXT
    #
    #######################################################  End LUA Settings  ###
    # The all important - How often conky refreshes.
    
    update_interval 1
    
    ##..: Clock and rings :..
    ##-- SET TO YOUR PATH!!! --
    ##
      lua_load ~/BlackPearlConky/lua/clock.lua
      lua_draw_hook_pre clock_rings
    
    TEXT
    ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}${color5}${goto 59}${cpubar cpu0 16,1}${voffset -3}${hr 2}${color}
    ${goto 230}${uptime}${goto 120}${font LED_Mono:size=20}${time %T}${font}
    ${color5}${goto 113}${cpubar cpu6 0,200}${voffset 2}${color1}
    ${goto 150}${color}SU MO  ${color5}${time %b %y}${color}  FR SA
    ${goto 150}${color}${execp REM=`date +%-d`; cal -h | sed '2d' | sed -e '1d' -e 's/\<'$REM'\>/${color5}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 150}/g'}
    
    ${color5}${goto 155}${voffset 3}${cpubar cpu0 17,1}${voffset -3}${hr 2}${color}
    ${goto 200}${voffset -15}${font LED_Mono:size=18}${cpu cpu1}${font}%${goto 270}CPU1
    ${goto 200}${font LED_Mono:size=18}${cpu cpu2}${font}%${goto 270}CPU2
    ${goto 200}${font LED_Mono:size=18}${cpu cpu3}${font}%${goto 270}CPU3${font Monofur:bold:size=12}${goto 147}${platform f71882fg.2560 temp 1}°
    ${goto 200}${color5}${font LED_Mono:size=18}${cpu cpu0}${font}%${goto 270}CPU0${color}
    
    
    ${color5}${goto 105}${cpubar cpu0 17,1}${voffset -3}${hr 2}${color3}
    ${goto 170}${color5}${font LED_Mono:size=16}${memperc}${font}%${goto 270}RAM
    ${goto 170}${cpubar cpu0 0,120}${voffset 2}${color}
    ${goto 95}HDD${goto 170}root   ${fs_free /}${goto 250}/ ${fs_size /}
    ${goto 170}home   ${fs_free /home}${goto 250}/ ${fs_size /home}${goto 95}${font Monofur:bold:size=12}${color}${hddtemp /dev/sda}°${color}${font Monofur:bold:size=6}
    ${font}${goto 170}M/5    ${fs_free /media/5}${goto 250}/ ${fs_size /media/5}
    
    
    
    
    ${color5}${cpubar cpu0 1,200}${voffset 1}${cpubar cpu0 17,1}${color}
    ${goto 15}${voffset -5}Dw ${font Liquid Crystal:bold:size=20}${voffset -8}${downspeed eth0}${font}
    ${goto 15}${voffset 6}Up ${font Liquid Crystal:bold:size=20}${voffset -7}${upspeed eth0}${font}
    ${goto 15}${color5}${cpubar cpu0 0,110}${color}
    ${goto 15}Total Down   ${if_up wlan0}${totaldown wlan0}${else}${totaldown eth0}${endif}
    ${goto 15}Total Up     ${if_up wlan0}${totalup wlan0}${else}${totalup eth0}${endif}
    ${color5}${voffset 11}${cpubar cpu0 1,150}${voffset 1}${cpubar cpu0 17,1}${color}${goto 15}USB - Used %
    ${goto 15}${if_existing /dev/sdb1}${exec df -h | grep "sdb1" | cut -c45-60}${else}No Device${endif}
    ${goto 15}${if_existing /dev/sdc1}${exec df -h | grep "sdc1" | cut -c45-60}${else}No Device${endif}
    ${goto 15}${if_existing /dev/sdd1}${exec df -h | grep "sdd1" | cut -c45-60}${else}No Device${endif}
    ${goto 15}${if_existing /dev/sde1}${exec df -h | grep "sde1" | cut -c45-60}${else}No Device${endif}
    clock.lua
    Code:
    --[[
    Clock Rings by londonali1010 (2009)
    Configuration by Ninquitassar (2012)
    
    This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
    
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
      lua_load ~/scripts/clock_rings-v1.1.1.lua
      lua_draw_hook_pre clock_rings
    
    Changelog:
    + v1.1.1 -- Fixed minor bug that caused the script to crash if conky_parse() returns a nil value (20.10.2009)
    + v1.1 -- Added colour option for clock hands (07.10.2009)
    + v1.0 -- Original release (30.09.2009)
    ]]
    
    settings_table = {
      {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=60, y=82,
        radius=55,
        thickness=3,
        start_angle=0,
        end_angle=360
      },
     {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=60, y=82,
        radius=44,
        thickness=10,
        start_angle=0,
        end_angle=360
      },
     {
        name='time',
        arg='%I.%M',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=60, y=82,
        radius=34,
        thickness=3,
        start_angle=0,
        end_angle=360
      },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=156, y=245,
        radius=40,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=156, y=245,
        radius=34,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=156, y=245,
        radius=28,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xFFDEAD,
        fg_alpha=0.6,
        x=156, y=245,
        radius=22,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xFFDEAD,
        fg_alpha=0.6,
        x=105, y=380,
        radius=58,
        thickness=3,
        start_angle=0,
        end_angle=360
      },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=105, y=380,
        radius=50,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=105, y=380,
        radius=43,
        thickness=3,
        start_angle=0,
        end_angle=360
      },
    {
        name='fs_used_perc',
        arg='/media/5',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=105, y=380,
        radius=36,
        thickness=5,
        start_angle=0,
        end_angle=360
      },
     {
       name='downspeedf',
    	arg='eth0',
    	max=5.00,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.5,
        x=207, y=522,
        radius=40,
        thickness=5,
        start_angle=5,
        end_angle=355
      },
    {
       name='upspeedf',
    	arg='eth0',
    	max=5.00,
        bg_colour=0xffffff,
        bg_alpha=0.05,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=207, y=522,
        radius=30,
        thickness=5,
        start_angle=185,
        end_angle=535
      },
    {
        name="fs_used_perc",
        arg="/media/disk",
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=157, y=642,
        radius=40,
        thickness=3,
        start_angle=5,
        end_angle=355
      },
     {
        name="fs_used_perc",
        arg="/media/sdb1-usb-Kingston_DataTra",
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=157, y=642,
        radius=34,
        thickness=3,
        start_angle=95,
        end_angle=445
      },
     {
        name="fs_used_perc",
        arg="/media/VSIDO_LiveCD",
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=157, y=642,
        radius=28,
        thickness=3,
        start_angle=185,
        end_angle=535
      },
     {
        name="fs_used_perc",
        arg="/media/VSIDO_LiveCD-2",
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xd7d7d7,
        fg_alpha=0.6,
        x=157, y=642,
        radius=22,
        thickness=3,
        start_angle=275,
        end_angle=625
      },
    }
    
    --Use these settings to define the origin and extent of your clock.
      clock_r=50
    
    --Coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
      clock_x=60
      clock_y=82
    
    --Colour & alpha of the clock hands
      clock_colour=0xffffff
      clock_alpha=0.6
    
    --Show the seconds hand ?
      show_seconds=true
    
    require 'cairo'
    
    function rgb_to_r_g_b(colour,alpha)
      return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function draw_ring(cr,t,pt)
      local w,h=conky_window.width,conky_window.height
    
      local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
      local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
      local angle_0=sa*(2*math.pi/360)-math.pi/2
      local angle_f=ea*(2*math.pi/360)-math.pi/2
      local t_arc=t*(angle_f-angle_0)
    
      --Draw background ring
      cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
      cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
      cairo_set_line_width(cr,ring_w)
      cairo_stroke(cr)
    
      --Draw indicator ring
      cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
      cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
      cairo_stroke(cr)
    end
    
    function draw_clock_hands(cr,xc,yc)
      local secs,mins,hours,secs_arc,mins_arc,hours_arc
      local xh,yh,xm,ym,xs,ys
    
      secs=os.date("%S")
      mins=os.date("%M")
      hours=os.date("%I")
    
      secs_arc=(2*math.pi/60)*secs
      mins_arc=(2*math.pi/60)*mins+secs_arc/60
      hours_arc=(2*math.pi/12)*hours+mins_arc/12
    
      --Draw hour hand
      xh=xc+0.65*clock_r*math.sin(hours_arc)
      yh=yc-0.65*clock_r*math.cos(hours_arc)
      cairo_move_to(cr,xc,yc)
      cairo_line_to(cr,xh,yh)
      --
      cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
      cairo_set_line_width(cr,5)
      cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha))
      cairo_stroke(cr)
    
      --Draw minute hand
      xm=xc+0.95*clock_r*math.sin(mins_arc)
      ym=yc-0.95*clock_r*math.cos(mins_arc)
      cairo_move_to(cr,xc,yc)
      cairo_line_to(cr,xm,ym)
      --
      cairo_set_line_width(cr,3)
      cairo_stroke(cr)
    
      -- Draw seconds hand
      if show_seconds then
        xs=xc+1.1*clock_r*math.sin(secs_arc)
        ys=yc-1.1*clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
        --
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
      end
    end
    
    function conky_clock_rings()
      local function setup_rings(cr,pt)
      local str=''
      local value=0
    
      str=string.format('${%s %s}',pt['name'],pt['arg'])
      str=conky_parse(str)
    
      value=tonumber(str)
      if value == nil then value = 0 end
    
    --Les ajouts suivants permettent de corriger le retard prit par les anneaux
      --Ajout wlourf : conversion des minutes en centièmes d'heures
      if pt['arg'] == "%I.%M"  then
        value=os.date("%I")+os.date("%M")/60
        if value>12 then value=value-12 end
      end
    
      --Ajout Fenouille84 : conversion des secondes en centièmes de minutes
      if pt['arg'] == "%M.%S"  then
        value=os.date("%M")+os.date("%S")/60
      end
      --Fin ajout
    
      pct=value/pt['max']
      draw_ring(cr,pct,pt)
    end
    
    --Check that Conky has been running for at least 5s
      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 cr=cairo_create(cs)
    
      local updates=conky_parse('${updates}')
      update_num=tonumber(updates)
    
      if update_num>5 then
        for i in pairs(settings_table) do
          setup_rings(cr,settings_table[i])
        end
      end
    
      draw_clock_hands(cr,clock_x,clock_y)
    end

Page 2191 of 2291 FirstFirst ... 119116912091214121812189219021912192219322012241 ... 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
  •