Page 2236 of 2294 FirstFirst ... 123617362136218622262234223522362237223822462286 ... LastLast
Results 22,351 to 22,360 of 22939

Thread: Post your .conkyrc files w/ screenshots

  1. #22351
    Join Date
    Feb 2012
    Beans
    49
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Uhm...*ahem*



    This is when I was borrowing some internet at some place (to look up something Google Maps). (Result blurred for ... obvious reasons...; it's just about the horizon on the image.)

    My thinking is I can inhibit this by a line that says that if the first letter of the IP address is not a number, then print some other line.

    Is this possible? Like...

    if %result =! {1|2|3|4|5|6|7|8|9|0} {print "IP Address lookup failed")
    else print IP_address

    Code:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,skip_taskbar
    background no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft yes
    
    # Update interval in seconds
    update_interval 3.0
    
    # Minimum size of text area
    minimum_size 160
    
    # Draw shades?
    draw_shades yes
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color white
    default_shade_color black
    default_outline_color white
    
    own_window_colour brown
    own_window_transparent yes
    
    # 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
    gap_x 10
    gap_y 30
    
    # stuff after 'TEXT' will be formatted on screen
    
    override_utf8_locale yes
    xftfont Terminus:size=8
    xftalpha 0.8
    
    TEXT
    ${color #FF6666}              SYSTEM PROFILE
    ${color slate grey}Computer Name: ${color }$nodename
    ${color slate grey}Kernel: ${color }$kernel
    ${color slate grey}Distro: ${color } ${pre_exec lsb_release -d | cut -f 2 } 
    ${color slate grey}Uptime: ${color }$uptime
    ${color slate grey}Free Storage Space: ${color }${fs_free /home}
    ${fs_bar 9,160 /home}
    ${color slate grey}Partition Size: ${color }${fs_size /}
    ${color slate grey}Battery Status: ${color }${battery}
    #${battery BAT0}#${if_match ${battery_percent BAT0} <= 30}${color orange}${battery_bar}{color}${endif}${battery_bar} ${if_match ${battery_percent BAT0} <= 20}${color red}${battery_bar}{color}${endif} ${if_match ${battery_percent BAT0} => 31}${color green}${battery_bar}{color}${endif}
    ${battery_bar}
    
    ${color #FF6666}            SYSTEM SUMMARY
    ${color slate grey}CPU Freq: ${color } $freq MHz at ${acpitemp}°C
    ${color slate grey}CPU A: ${color }${cpu cpu1}% ${alignr}${cpubar cpu1 9,80}
    ${color slate grey}CPU B: ${color }${cpu cpu2}% ${alignr}${cpubar cpu2 9,80}
    ${color slate grey}Load: ${color } ${loadavg 1} ${color #3366FF}1min ${alignr}${color }${loadavg 2} ${color #3366FF}5min
    ${color slate grey}Memory:${color } ${alignr}$mem/$memmax
    $memperc% ${alignr}${membar 9,80}
    ${color slate grey}Swap: ${color } ${alignr}$swap/$swapmax
    $swapperc% ${alignr}${swapbar 9,80}
    
    ${color #FF6666}           ACTIVE PROCESSES
    ${color slate grey}Processes: ${color }$processes   ${color slate grey}Running: ${color }$running_processes
    
    ${color #3366FF}Process Name: ${alignr}% CPU
    ${color #ddaa00}${top name 1} ${alignr}${top_mem cpu 1}
    ${color slate grey}${top name 2} ${alignr}${top cpu 2}
    ${color slate grey}${top name 3} ${alignr}${top cpu 3}
    ${color slate grey}${top name 4} ${alignr}${top cpu 4}
    ${color slate grey}${top name 5} ${alignr}${top cpu 5}
    
    #${color slate grey}Highest Memory:
    #${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
    #${color slate grey} ${top_mem name 2}${top_mem mem 2}
    #${color slate grey} ${top_mem name 3}${top_mem mem 3}
    #${color slate grey} ${top_mem name 4}${top_mem mem 4}
    #${color slate grey} ${top_mem name 5}${top_mem mem 5}
    ${color #FF6666}           NETWORK NUMBERS
    ${color #FF0000}${if_empty ${exec cat /proc/net/arp | grep eth0}}${if_empty ${exec cat /proc/net/arp | grep wlan0}}No network connection 
    ${else}${color slate grey}Internal IP: ${alignr}${color }${addr wlan0}
    ${color slate grey}External IP: ${color } ${alignr}${execi 1800 wget -O - http://ip.tupeux.com | tail}
    ${color slate grey}Router: ${alignr}${color }${wireless_essid wlan0}  at ${wireless_bitrate wlan0}
    ${color slate grey}Range: ${color }${wireless_link_qual_perc wlan0}%  ${alignr}${wireless_link_bar 9,70 wlan0}
    ${color slate grey}Down: ${color }${downspeed wlan0} ${color slate grey}${alignr}Up: ${color }${upspeed wlan0}
    ${color slate grey}Total Down: ${alignr}${color }${totaldown wlan0}
    ${color slate grey}Total Up: ${alignr}${color }${totalup wlan0}${endif}
    
    ${else}${color slate grey}LAN IP:  ${alignr}${color }${addr eth0}
    ${color slate grey}External IP: ${color } ${alignr}${execi 1800 wget -O - http://ip.tupeux.com | tail}
    ${color slate grey}Down: ${color }${downspeed eth0} ${alignr}${color slate grey}Up: ${color }${upspeed eth0}
    ${color slate grey}Total Down: ${alignr}${color }${totaldown eth0}
    ${color slate grey}Total Up: ${alignr}${color }${totalup eth0}
    ${endif}
    ${color #FF6666}          ACTIVE CONNECTIONS
    ${color slate grey}In: ${color }${tcp_portmon 1 32767 count}  ${color slate grey}Out: ${color }${tcp_portmon 32768 61000 count}${color slate grey}${alignr}All: ${color }${tcp_portmon 1 65535 count}
    #${color #0077ff}Inbound
    #${color slate grey}${color }${tcp_portmon 1 32767 rhost 0}
    #${color slate grey}${color }${tcp_portmon 1 32767 rhost 1}
    #${color slate grey}${color }${tcp_portmon 1 32767 rhost 2}
    #${color slate grey}${color }${tcp_portmon 1 32767 rhost 3}
    #${color slate grey}${color }${tcp_portmon 1 32767 rhost 4}
    
    #${color #0077ff}Outbount:
    #${color slate grey}${color }${tcp_portmon 32768 61000 rhost 0}
    #${color slate grey}${color }${tcp_portmon 32768 61000 rhost 1}
    #${color slate grey}${color }${tcp_portmon 32768 61000 rhost 2}
    #${color slate grey}${color }${tcp_portmon 32768 61000 rhost 3}
    #${color slate grey}${color }${tcp_portmon 32768 61000 rhost 4}

    iMac G4 800MHz, Compaq E500, ThinkPad X200
    Likes: Ubuntu 9.10, 10.04LTS with 9.10 back-theme
    Classic Mac Networking v3.1 http://applefool.com/se30/
    "Linux assumes you know exactly what you are doing." -oboedad55, ubuntuforums.org

  2. #22352
    Join Date
    Dec 2012
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    A minimalist conky, with 2 transparent sliding tilda terminal!

    Code:
    # conky config
    
    background no
    use_xft yes
    xftfont Inconsolata:size=10
    xftalpha 0.8
    update_interval 2.0
    total_run_times 0
    own_window yes
    own_window_class conky
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
    double_buffer yes
    minimum_size 1300 0
    maximum_width 1300
    draw_shades no
    draw_borders no
    stippled_borders 0
    border_width 1
    default_color black
    default_shade_color black
    default_outline_color green
    alignment top_left
    #alignment bottom_left
    #alignment top_right
    #alignment top_left
    gap_x 80
    gap_y -1
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    text_buffer_size 512
    TEXT
    ${color #01424A}Power: ${color}${battery_time BAT0}      ${color #01424A}Disk: ${color}$fs_used_perc% ${fs_used /}/${fs_size /}      ${color #01424A}Processes: ${color}${processes}      ${color #01424A}RAM: ${color}$memperc% $mem/$memmax      ${color #01424A}CPU: ${color}$cpu%  ${acpitemp}°C  ${freq}MHz      ${color #01424A}WiFi: ${color}Do ${downspeed wlan0}k/s ${color}Up ${upspeed wlan0}k/s
    Attached Images Attached Images

  3. #22353
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mk32 View Post
    Uhm...*ahem*



    This is when I was borrowing some internet at some place (to look up something Google Maps). (Result blurred for ... obvious reasons...; it's just about the horizon on the image.)

    My thinking is I can inhibit this by a line that says that if the first letter of the IP address is not a number, then print some other line.

    Is this possible? Like...

    if %result =! {1|2|3|4|5|6|7|8|9|0} {print "IP Address lookup failed")
    else print IP_address
    What you can do is set your window to a fixed size so it won't grow with abnormal output
    eg
    Code:
    minimum_size 170 700	## width, height
    maximum_width 170	## width
    Could also try this for your external IP code....
    Code:
    ${execi 3600 curl ifconfig.me}
    May need to install curl.

  4. #22354
    Join Date
    Aug 2010
    Location
    Detachment 7
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    VSIDO 2 Velociraptor desktop scrot. Config's are posted in the Conky thread at vsido.org...

    | [I]Running 'VSIDO' | My blog |

  5. #22355
    Join Date
    Aug 2009
    Beans
    3,265
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Latest one with the weather updated. It's VinDSL's conky slightly modified.



    .conkyrc.vindsl:

    Code:
    ###############################################
    ## VinDSL | rev. 12-11-19 11:55 | ver. 0.7.9 ##
    ###############################################
    ##          November 2012 Series             ##
    ###############################################
    
    ## ¡PLEASE READ THE FINE PRINT! ##
    
    ####
    ## Development Platforms (current)
    #
    #  Ubuntu 10.10 'Maverick Meerkat' (GNOME 2.28 - Conky 1.8.0-1)
    #  Ubuntu 13.04 'Raring Ringtail'  (GNOME-SHELL - UNITY - LXDE - Conky 1.9.0-2)
    #  Screen Resolution: 1920x1200x24 (DELL UltraSharp 1907FP)
    #
    ## Tips n' Tricks: conky 1.8.1 will no longer be supported. RIP :)
    
    ####
    ## Prerequisites (required)
    #
    #  conky-all 1.8.0-1 or 1.9.0-2
    #  Conkywx 1.0.0 (Paramvir Likhari)
    #  UTF-8 Compatible Text Editor
    
    ####
    ## Installed fonts (required)
    #
    #  Arrows (JLH Fonts - not included in link below)
    #  ConkyWeather (Stanko Metodiev)
    #  Cut Outs for 3D FX (Fonts & Things)
    #  Droid Font Family (Google Android SDK)
    #  KR A Round (Kat's Fun Fonts)
    #  Moon Phases (Curtis Clark)
    #  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 single lines, text, output from $exec, and other variables.
    ## Increasing the 'text_buffer_size' (too high) will drastically reduce Conky's performance.
    ## Decreasing the buffer 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!
    ## Tips n' Tricks from dk75:"You don't need to create a 12KiB buffer for every Conky config line."
    #
    text_buffer_size 4352
    
    ####
    ## Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
    ## Tips n' Tricks from: sparker256 (Thanks, Bill!)
    #
    max_specials 700
    
    ####
    ## 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' type. Makes Conky behave like other panels.
    #
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    ####
    ## Some distros require the following lines for true transparency.
    ## BOTH of these lines need to be Commented/Uncommented in tandem.
    #
    own_window_argb_visual yes
    own_window_argb_value 255
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 1
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades yes
    default_shade_color 330
    
    ####
    ## 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 245 1394
    minimum_size 245 1894
    maximum_width 1200 
    ####added by me
    ## Maximum size of user text buffer, i.e. layout below TEXT line in config file (default is 16384 bytes)
    max_user_text 81920
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 245
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 6      # Left/Right
    gap_y 32  # Top/Bottom
    
    ####
    ## Shorten MiB/GiB to M/G in stats.
    #
    short_units yes
    
    ####
    ## 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 Tan1        #FFA54F
    color5 Tan2        #EE9A49
    color6 Gray        #7E7E7E
    color7 AntiqueWhite4    #8B8378
    color8 DimGray        #696969
    color9 Tomato        #FF6347
    # colorX OrangeRed    #FF4500
    
    #####
    ## 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_load ~/.conky/bargraph_testing.lua
    lua_draw_hook_post main_bars
    
    ####
    ## Define the locations of Conkywx files (required)
    ## Set the path to your .confs and templates here.
    #
    template0 "/usr/share/conkywx/conkywx.sh"
    template1 "/home/cavsfan/.config/conkywx/vindsl-imperial-conkywx.conf"
    template4 "/home/cavsfan/.config/conkywx/wx-wu-vindsl-imperial-weather-graphic-template.sh"
    template7 /tmp/wx-cavsfan-vindsl-imperial-conkywx.conf-pChA_r_27u0-m39/wxalert
    
    TEXT
    ##################################
    ##             LOGO             ##
    ##################################
    ## Uncomment for hard-coded ID (static)
    # ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -75}${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 -30}${font OpenLogos:size=93}${color2}v${font}${voffset -75}${goto 179}${font UbuntuTitleBold:size=12.6}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
    ####
    ## Additional ID (branch version, code name, release date, etc.)
    ${voffset -2}${goto 181}${font Ubuntu-B:bold:size=7.55}${color5}Conky ${conky_version}${font}
    # ${voffset 0}${goto 181}${font Ubuntu-B:size=8}${color4}Pre-Alpha${font}
    ####
    ## Uncomment to display YOUR custom graphic image (upper-right corner)
    #${voffset -30}${font OpenLogos:size=103}${color2}v${font}${voffset -52}${image /home/cavsfan/Pictures/ABC.jpg -p 180,0 -s 52x52 -n}
    ##################################
    ##            SYSTEM            ##
    ##################################
    ${voffset 7}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color0}${offset 5}${pre_exec lsb_release -sd | sed -e 's/development/dev/g'}${alignr}${pre_exec lsb_release -sr}${font}
    ${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color0}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
    ####
    ## Uncomment for nVidia ID (nvidia-smi version - dynamic)
    ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color0}${offset 5}${pre_exec nvidia-smi -q | grep "Product Name" | sed -e 's/.*: /nVidia /'}${alignr}${pre_exec nvidia-smi -q | grep "Driver Version" | awk '{print $4}'}${font}
    ####
    ## Uncomment for 'nvidia-current' driver ID (DPKG version - hybrid)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color0}${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}
    ####
    ## Uncomment for nvidia driver ID (OpenGL version - hydrid)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color0}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${pre_exec glxinfo | grep 'OpenGL version string' | sed -e 's/OpenGL.*: //' | cut -c '14-19'}${font}
    ####
    ## Uncomment for hard-coded video ID (any card / any driver - static)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color0}${offset 5}Video Card Product Name${alignr}Driver Version${font DroidSans:size=8.3}${font}
    ####
    ## Uncomment for CPU ID / CPU frequency (hybrid)
    #${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color0}${offset 5}Intel${offset 3}Core${offset 3}2${offset 3}Quad Q9550${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color0}${offset 5}Intel${offset 3}Core${offset 3}2${offset 3}Quad Q9550${alignr 1}${font DroidSans:size=8.3}2.83${offset 1}GHz${font}
    ####
    ## Uncomment for System Uptime (hybrid)
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color0}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
    ## uncoment for grub version
    ${voffset 2}${font OpenLogos:size=10}${color2}u${voffset -1}${font DroidSans:size=8.6}${color0}${offset 5}Grub${offset 3}Version${alignr}${font DroidSans:size=8.3}${pre_exec grub-install -v | grep grub-install | cut -c21-42}${font}
    ##################################
    ##          PROCESSORS          ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${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}${color0}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU3${offset 5}${font DroidSans:size=8.3}${cpu cpu3}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU4${offset 5}${font DroidSans:size=8.3}${cpu cpu4}%${font}
    ##################################
    ##            MEMORY            ##
    ##################################
    ${voffset 5}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 6}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color0}${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}${color6}${voffset -2}${hr 1}${font}
    ${voffset 7}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color0}${offset 4}ROOT${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
    ${voffset 16}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color0}${offset 4}FANTOM USB${goto 95}${font DroidSans:size=8.3}${fs_used /media/Fantom}${goto 133}/${offset 5}${fs_size /media/Fantom}${alignr}${fs_free_perc /media/Fantom}%${font}
    ${voffset 16}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color0}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
    ##################################
    ##         TEMPERATURES         ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color4}CPU/GPU TEMPERATURES${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU Core 1 Temp: $alignr${execi 600 sensors -f | grep 'Core 0' | awk '{print $3}' | cut -c2-9}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU Core 2 Temp: $alignr${execi 600 sensors -f | grep 'Core 1' | awk '{print $3}' | cut -c2-9}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU Core 3 Temp: $alignr${execi 600 sensors -f | grep 'Core 2' | awk '{print $3}' | cut -c2-9}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}CPU Core 4 Temp: $alignr${execi 600 sensors -f | grep 'Core 3' | awk '{print $3}' | cut -c2-9}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color0}${offset 2}GPU Temperature: $alignr${execi 10 nvidia-settings -q GPUCoreTemp | awk '{if (NR==2) {print ($4*9)/5+32}}'}°F
    ##################################
    ##         TOP PROCESSES        ##
    ##################################
    ${voffset 6}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${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}${color0}${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}${color0}${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}${color0}${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}${color0}${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}${color0}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top_mem name 7}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 7}${alignr}${top_mem mem 7}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top_mem name 8}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 8}${alignr}${top_mem mem 8}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top_mem name 9}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 9}${alignr}${top_mem mem 9}%${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top_mem name 10}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 10}${alignr}${top_mem mem 8}%${font}
    ##################################
    ##          NETWORK             ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color0}${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}${color0}${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}${color0}${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}${color0}${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}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color0}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${alignr}${font DroidSans:size=8.3}Demo mode
    ##################################
    ##      CONKYWX WEATHER         ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8.25}${color4}CONKYWX${if_existing ${template7}} \
    ${color5}Alert: ${if_match ${execi 60 expr length "$(cat ${template7})"}>=32}\
    ${color3}${scroll 30 10 ${execi 60 cat ${template7}}}${else}${color3}\
    ${execi 60 cat ${template7}}${endif}${endif} ${color6}${hr 2}${font}
    ####
    ## Uncomment for IMPERIAL Weather Stats (GRAPHIC icon set).
    ${execpi 900 ${template0} -c "${template1}" -t "${template4}"}${font}
    ##################################
    ##           TIME               ##
    ##################################
    ${voffset 2}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset -10}${font RadioSpace:size=32}${color0}${if_match ${time %l}<=9}${alignc 7}${time %l:%M}${offset 3}${time %p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M}${offset 3}${time %p}${endif}${endif}${font}
    ##################################
    ##         CALENDAR             ##
    ##################################
    ${voffset -1}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 15}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %A}${font}
    ${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color0}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color0}${alignc 60}${time %e}${endif}${endif}${font}
    ${voffset 0}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %B}${font}
    ${voffset 0}${font DroidSansMono:size=7.6}${color2}${alignc 60}${time %Y}${font}
    ${voffset -80}${font CutOutsFor3DFX:size=67}${color7}${alignc 99}2${font}
    ####
    ## Uncomment for "SUNDAY = First Day-of-the-Week" (use mono fonts only)
    ${voffset -70}${font DroidSansMono:size=7.55}${color0}${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}&${color0}/'}
    ####
    ## Uncomment for "MONDAY = First Day-of-the-Week" (use mono fonts only)
    # ${voffset -68}${font DroidSansMono:size=7.55}${color0}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color0}/'}
    ##################################
    ##  RHYTHMBOX 1 (Experimental)  ##
    ##################################
    #${if_running rhythmbox}
    #${voffset -13}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
    #${voffset 2}${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}
    ##################################
    ##  RHYTHMBOX 2 (Experimental)  ##
    ##################################
    ${if_running rhythmbox}
    ${voffset -13}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 5}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}}${font}${else}${alignc}${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}${font}${endif}${endif}
    ##################################
    ##    BANSHEE (Experimental)    ##
    ##################################
    ${if_running banshee}
    ${voffset -26}${font DroidSans:bold:size=8}${color4}BANSHEE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 3}${font DroidSans:size=8.25}${color0}${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}
    ##################################
    ##   GUAYADEQUE (Experimental)  ##
    ##################################
    ${if_running guayadeque}
    ${voffset -36}${font DroidSans:bold:size=8}${color4}GUAYADEQUE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font DroidSans:size=8.25}${color0}${if_match "${execpi 2 expr length "`qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "}}${font}${else}${alignc}${execi 2 qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "}${font}${endif}${endif}
    ##################################
    ##     VLC (Experimental)       ##
    ##################################
    ${if_running vlc}
    ${voffset -47}${font DroidSans:bold:size=8}${color4}VLC${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 3}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/xlsclients -l | grep "VLC media player" | cut -c -9 --complement | rev | cut -c 19- | rev`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 xlsclients -l | grep "VLC media player" | cut -c -9 --complement | rev | cut -c 19- | rev}}${font}${else}${alignc}${execi 2 xlsclients -l | grep "VLC media player" | cut -c -9 --complement | rev | cut -c 19- | rev}${font}${endif}${endif}
    ##################################
    ##     Audaciuos                ##
    ##################################
    ${if_running audacious}
    ${voffset -70}${font DroidSans:bold:size=8}${color4}Audacious${offset 8}${color6}${voffset -2}${hr 2}$font$
    ${voffset -3}${font DroidSans:bold:size=8}${color6}${audacious_title 250}
    ${color4}${audacious_bar 10,250 }${color6}
    ${audacious_position}/${audacious_length}  Sample Rate${alignc} ${audacious_frequency} Hz ${alignr}${audacious_status}${endif}
    Last edited by Cavsfan; October 21st, 2013 at 06:40 PM.
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Ubuntu 12.04 | 14.04 | 14.10 | 14.10 Mate | Mint 13 | Mint 17 | Windows 7 | All 64 bit

  6. #22356
    Join Date
    Oct 2012
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    here my first one. its conky lua rings modified to my liking. it was my first time ever playing around with scripts so i think it turned out nice.

    # Conky settings #
    background no
    update_interval 1

    cpu_avg_samples 2
    net_avg_samples 2

    override_utf8_locale yes

    double_buffer yes
    no_buffers yes

    text_buffer_size 2048
    #imlib_cache_size 0

    temperature_unit fahrenheit

    # Window specifications #

    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

    border_inner_margin 0
    border_outer_margin 0

    minimum_size 200 250
    maximum_width 200

    alignment tr
    gap_x 35
    gap_y 55

    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no

    # Text settings #
    use_xft yes
    xftfont caviar dreams:size=8
    xftalpha 0.5

    uppercase no

    temperature_unit fahrenheit


    default_color FFFFFF

    # Lua Load #
    lua_load ~/.lua/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings

    TEXT
    ${voffset 8}${color 000099}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color 9b1c0f}${font caviar dreams:size=38}${time %e}${font}
    ${color 9b1c0f}${voffset -30}${color 000099}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color 9b1c0f}${font caviar dreams:size=20}${time %Y}${font}${color 000099}${hr}
    ${image ~/.conky/fedora-logo.png -p 58,115 -s 80x35}














    ${color 8b0000}${goto 0}${voffset 10}${cpu cpu0}%
    ${color 000099}${goto 0}CPU
    ${color 8b0000}${goto 86}${voffset -15}${memperc}%
    ${color 000099}${goto 86}RAM
    ${color 8b0000}${goto 30}${voffset 30}${fs_used_perc /}%
    ${color 0000ff}${goto 30}Disk
    ${color 8b0000}${goto 49}${voffset 149}${downspeed wlan0}
    ${color 8b0000}${goto 49}${upspeed wlan0}

    had to modify the other file also


    --[[
    Clock Rings by Linux Mint (2011) reEdited by despot77

    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 on line 145 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.lua
    lua_draw_hook_pre clock_rings

    Changelog:
    + v1.0 -- Original release (30.09.2009)
    v1.1p -- Jpope edit londonali1010 (05.10.2009)
    *v 2011mint -- reEdit despot77 (18.02.2011)
    ]]

    settings_table = {
    {
    -- Edit this table to customise your rings.
    -- You can create more rings simply by adding more elements to settings_table.
    -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
    name='time',
    -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
    arg='%I.%M',
    -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
    max=12,
    -- "bg_colour" is the colour of the base ring.
    bg_colour=0x000099,
    -- "bg_alpha" is the alpha value of the base ring.
    bg_alpha=0.1,
    -- "fg_colour" is the colour of the indicator part of the ring.
    fg_colour=0x000099,
    -- "fg_alpha" is the alpha value of the indicator part of the ring.
    fg_alpha=1.0,
    -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
    x=100, y=150,
    -- "radius" is the radius of the ring.
    radius=50,
    -- "thickness" is the thickness of the ring, centred around the radius.
    thickness=5,
    -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    start_angle=0,
    -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
    end_angle=360
    },
    {
    name='time',
    arg='%M.%S',
    max=60,
    bg_colour=0x000099,
    bg_alpha=0.1,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=150,
    radius=56,
    thickness=5,
    start_angle=0,
    end_angle=360
    },
    {
    name='time',
    arg='%S',
    max=60,
    bg_colour=0x000099,
    bg_alpha=0.1,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=150,
    radius=62,
    thickness=5,
    start_angle=0,
    end_angle=360
    },
    {
    name='time',
    arg='%d',
    max=31,
    bg_colour=0x000099,
    bg_alpha=0.1,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=150,
    radius=70,
    thickness=5,
    start_angle=-90,
    end_angle=90
    },
    {
    name='time',
    arg='%m',
    max=12,
    bg_colour=0x000099,
    bg_alpha=0.1,
    fg_colour=0x000099,
    fg_alpha=1,
    x=100, y=150,
    radius=76,
    thickness=5,
    start_angle=-90,
    end_angle=90
    },
    {
    name='cpu',
    arg='cpu0',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=300,
    radius=70,
    thickness=10,
    start_angle=-90,
    end_angle=180
    },
    {
    name='cpu',
    arg='cpu1',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=300,
    radius=60,
    thickness=9,
    start_angle=-90,
    end_angle=180
    },
    {
    name='cpu',
    arg='cpu2',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=300,
    radius=50,
    thickness=9,
    start_angle=-90,
    end_angle=180
    },
    {
    name='cpu',
    arg='cpu3',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=300,
    radius=40,
    thickness=9,
    start_angle=-90,
    end_angle=180
    },
    {
    name='memperc',
    arg='',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=300,
    radius=25,
    thickness=5,
    start_angle=-90,
    end_angle=180
    },
    {
    name='fs_used_perc',
    arg='/',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=65, y=335,
    radius=25,
    thickness=5,
    start_angle=-90,
    end_angle=180
    },
    {
    name='downspeedf',
    arg='eth0',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=465,
    radius=70,
    thickness=10,
    start_angle=-90,
    end_angle=180
    },
    {
    name='upspeedf',
    arg='eth0',
    max=100,
    bg_colour=0x000099,
    bg_alpha=0.2,
    fg_colour=0x000099,
    fg_alpha=1.0,
    x=100, y=465,
    radius=59,
    thickness=9,
    start_angle=-90,
    end_angle=180
    },
    }

    -- Use these settings to define the origin and extent of your clock.

    clock_r=65

    -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

    clock_x=100
    clock_y=150

    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.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*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,255,0,0,1)
    cairo_stroke(cr)

    -- Draw minute hand

    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-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+clock_r*math.sin(secs_arc)
    ys=yc-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)
    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
    Attached Images Attached Images

  7. #22357
    Join Date
    Aug 2013
    Location
    Sweden
    Beans
    13

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bhattabhishek View Post
    Looks great Cyb3 ! Mind sharing that wall.
    Thanks!

  8. #22358
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Anyone else having problems with the conky window in Saucy(13.10) with compiz?
    Quite often conkys positioned near the top panel will be pushed towards the bottom
    of the screen and/or the window will be an odd size, sometimes barely visible

    Related to this I use cairo-clock on the desktop and even though it is
    configured for a size of 200x200(x,y) it is drawing an elliptical shape of 200x222.
    I checked this by starting cairo-clock with it's config open showing 200x200.
    It loaded looking slightly elliptical.
    235.jpg


    When you right click on cairo-clock and choose quit the current settings are written to the ~/.cairo-clock config.
    The config now shows 200x222.
    236.jpg
    If I repeat the process it will add another 22 to draw to a size of 200x244 and so on.
    No matter what size I specify cairo-clock is drawn with an extra 22 added to the y axis.
    Doesn't happen in flashback with metacity.
    Last edited by stinkeye; October 28th, 2013 at 07:35 AM.

  9. #22359
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    Anyone else having problems with the conky window in Saucy(13.10) with compiz?
    One of the pitfalls of using Debian SID here - can't help an old friend. Good luck

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

    Re: Post your .conkyrc files w/ screenshots

    1. A touch of Teo to get the weather forecast out of Hong Kong.
    2. A touch of Habitual to get the world map;
      1. cron job updates the map every 30 minutes with a bash script
      2. night shadow moved across the screen.
      3. the clouds are updated every three hours
    3. Conky ${tztime} gets the city date and time and compares 'date' with NZ to change colours as they pass midnight to a new day


    «--»

    From Buenos Aires:
    18:32 - last night - on the left it's running alone with just one other conky: a CPU usage checker - obviously between cycles.
    11:14 - today - on the right - night shadow moved nicely ... cloud change very noticeable as well.

    Took a long time the clouds kept getting in the way, final tweaks at night where the clear sky allowed the + to be moved over the city lights.

    Thank you guys, interesting conky indeed. Tokyo just changed date!

Page 2236 of 2294 FirstFirst ... 123617362136218622262234223522362237223822462286 ... 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
  •