Page 1621 of 2348 FirstFirst ... 6211121152115711611161916201621162216231631167117212121 ... LastLast
Results 16,201 to 16,210 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #16201
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    I found VinDSL's day box a bit unruly and stubborn. So, I'm seeing if the lua calendar can replace it. I've got a huge chunk of it done though!
    I'm just trying to work inside the system...

    Yes, a Lua calendar is the way to go, as long as it isn't designed for long extinct Central-America Indian tribes.

    A little of that circular stuff goes a long ways, you know?

    I think in Base-64. If I had my way, I'd design a calendar in cuneiform, but I'm sure it wouldn't make many ppl happy.

    Really, it seems obvious to me that Conky is headed in the direction of Lua.

    That is, the crappy Conky code we're using now, will be as obsolete as Mayan Calendars, in short order.

    Read up on Conky 2. It will use Lua syntax, not the present ghetto constructs.


    Conky Complete Redesign 2.0 (again)

    Conky 2 development has officially began. See below for a TODO list, and update it as you see fit (if you are going to take on a particular task, please note it below).

    Main user-facing features for Conky 2

    • Network transparency, i.e., remote monitoring via simple protobuf message based protocol
    • Enhanced security through TLS
    • Lua based syntax

    Anyway, if you can come up with a conventional looking western civilization-style calendar in Lua, I think that would be great!
    Last edited by VinDSL; February 24th, 2011 at 08:25 AM.
    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. #16202
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by VinDSL View Post
    I'm just trying to work inside the system...
    Oh I like your system just fine. I just don't like the limitation of how much effort it takes to keep it all lined up right. That's not your fault, all you did was discover that the combination there looked good. And it does. But, I think using the lua script to have more control over it will make it work a bit better in the long run. It is still your original idea to couple those commands with a calendar next to it. Just... now the design element is getting turned lua. Or, it will when I figure out how.

    *EDIT* Very close. Going to try again when I wake up tomorrow. For now, I need sleep.
    Last edited by 42dorian; February 24th, 2011 at 10:14 AM.

  3. #16203
    Join Date
    Feb 2009
    Beans
    433

    Re: Post your .conkyrc files w/ screenshots

    Yes. Go to my last conky dump post (here) and go through my wind speed section(in .conkyrc.main) around the 10th section down in weather. I have it in kilometres. Steal at will.
    well I went there and I copied doriens code accross, but everything but the wind direction is showing up?

    in the photo the top part is my old non dorien related code, and after =====test===== is the copied text, so any suggestions

    my conky code
    Code:
    ##################################
    ## VinDSL | rev. 11-02-17 01:46 ##
    ##################################
    ##   Screen res: 1280x1024x24   ##
    ##################################
    
    ####
    ## Prerequisites (required).
    ## conky-all 1.8.0 or 1.8.1
    ## conkyForecast 2.16
    ## weather.com XML Data Feed (XOAP)
    #
    
    ####
    ## Use XFT? Required to Force UTF8 (see below).
    #
    use_xft yes
    xftfont DroidSans:size=8.75
    xftalpha 0.1
    text_buffer_size 2048
    
    ####
    ## Force UTF8? Requires XFT (see above).
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## This is the number of times Conky will update before quitting.
    ## Set to zero to run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop (required in nautilus)?
    #
    own_window yes
    own_window_type override
    own_window_transparent yes
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders yes
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment bottom_right
    
    ####
    ## Minimum size of text area.
    #
    minimum_size 340 798
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 8
    gap_y 205
    
    ####
    ## 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
    color1 Ivory
    color2 Ivory2
    color3 Ivory3
    color4 Tan1
    color5 Tan2
    color6 Gray
    color7 AntiqueWhite4
    color8 DarkSlateGray
    color9 Black
    
    
    ####
    ## Load Lua for bargraphs (required).
    ## Set the path to your script here.
    #
    lua_draw_hook_post main_bars
    
    ####
    ## Installed fonts (required).
    #
    # ConkyWeather (Stanko Metodiev)
    # ConkyWindNESW (Stanko Metodiev)
    # Cut Outs for 3D FX (Fonts & Things)
    # Droid Font Family (Google Android SDK)
    # Moon Phases (Curtis Clark)
    # OpenLogos (Icoma)
    # PizzaDude Bullets (Jakob Fischer)
    # Radio Space (Iconian Fonts)
    # StyleBats (Vinterstille)
    # Ubuntu (Canonical Ltd)
    # Ubuntu Title Bold (Paulo Silva)
    # Weather (Jonathan Macagba)
    
    TEXT
    ##################
    ##    SYSTEM    ##
    ##################
    ${voffset 20}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${color brown} Updates Available: ${execi 1800 aptitude search "~U" | wc -l | tail}
    ${font DroidSans:size=8.65}${offset 5}Ubuntu Version: ${pre_exec lsb_release -r -s}
    ${font DroidSans:size=8.65}${offset 5}Uptime: $uptime
      Kernel: $kernel
      Conky Build Date: $conky_build_date
      Conky Version: $conky_version
    ##################
    ##    TRAFFIC    ##
    ##################
    ${voffset 20}${font DroidSans:bold:size=8.25}${color4}INTERNET TRAFFIC${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${color green}NETWORK IP: ${addr eth1}
    
    DOWN:  ${downspeed eth1}/s                   UP:  ${upspeed eth1}/s  
    Today:${goto 65}${execi 300 vnstat -i eth1 | grep "today" | awk '{print $2 $3}'}${goto 150} Today:${goto 210}${execi 300 vnstat -i eth1 | grep "today" | awk '{print $5 $6}'}
    Week:${goto 65}${execi 300 vnstat -i eth1 -w | grep "current week" | awk '{print $3 $4}'}${goto 150} Week:${goto 210}${execi 300 vnstat -i eth1 -w | grep "current week" | awk '{print $6 $7}'} 
    Month:${goto 65}${execi 300 vnstat -i eth1 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 150} Month:${goto 210}${execi 300 vnstat -i eth1 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
    Maximum: 100GB                  Maximum:  100GB
    Down: ${downspeedgraph eth1 555753 eeeeec}
    Up : ${upspeedgraph eth1 555753 eeeeec}
    ##################
    ##   WEATHER    ##
    ##################
    ${voffset 6}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 0}${goto 59}${font Weather:size=38}${color2}y${font}${voffset -33}${offset 14}${font RadioSpace:size=32}${color3}${execi 1800 conkyForecast -d HT -u}C${font}
    ${voffset 0}${font Ubuntu:size=24}${color4}${alignc}${execi 1800 conkyForecast -d CT}${font}
    ${voffset 10}${goto 20}${font ConkyWindNESW:size=41}${color3}${execi 1800 conkyForecast -d BS}${font}${voffset -40}${goto 98}${font ConkyWeather:size=45}${execi 1800 conkyForecast -d WF}${font}${voffset -39}${goto 188}${font MoonPhases:size=32}${execi 1800 conkyForecast -d MF}${font}
    ${voffset 6}${goto 28}${font DroidSansFallback:bold:size=8.45}${color4}${execpi 1800 conkyForecast -d WS -i| sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 88}Feels like ${execi 1800 conkyForecast -d LT -u}${execpi 1800 conkyForecast -d MP| sed -e 's/First.*'/'\$\{goto 182}First Qtr/g' -e 's/Last.*'/'\$\{goto 184}Last Qtr/g' -e 's/New.*'/'\$\{goto 195}New/g' -e 's/Full.*'/'\$\{goto 195}Full/g' -e 's/Waning.*'/'\$\{goto 187}Waning/g' -e 's/Waxing.*'/'\$\{goto 187}Waxing/g'}${font}
    ${voffset 9}${goto 36}${font DroidSansMono:bold:size=8.35}${color3}${execi 1800 conkyForecast -d DW -s 1 -w}${goto 89}${execi 1800 conkyForecast -d DW -s 2 -w}${goto 143}${execi 1800 conkyForecast -d DW -s 3 -w}${goto 197}${execi 1800 conkyForecast -d DW -s 4 -w}${font}
    ${voffset 2}${goto 25}${font ConkyWeather:size=32}${color2}${execi 1800 conkyForecast -d WF -s 1 -e 4 -S 1}${font}
    ${voffset 0}${goto 25}${font DroidSans:bold:size=8.5}${color4}${execi 1800 conkyForecast -d HT -s 1 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 1 -u}${goto 79}${execi 1800 conkyForecast -d HT -s 2 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 2 -u}${goto 133}${execi 1800 conkyForecast -d HT -s 3 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 3 -u}${goto 187}${execi 1800 conkyForecast -d HT -s 4 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 4 -u}${font}
    
    ${font Ubuntu:size=10}${color4}Today's Sunrise: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=SR --}${alignr}${color4} Today's Sunset: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=SS --}
    ${font Ubuntu:size=10}${color4}Tomorrow's Sunrise: ${color #E6E8FA}${execi 600 conkyForecast --location=ASXX0016 --startday=1 --datatype=SR --}${alignr}${color4} Tomorrow's Sunset: ${color1}${execi 600 conkyForecast --location=ASXX0016 --startday=1 --datatype=SS --}
    ${color4}${font Ubuntu:size=10}Station: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=OB}${alignr}${color4}${font Ubuntu:size=10}Last Update: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=LU}${font}
    and doriens which I added at the very bottom is
    Code:
    ${image ~/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000002"}${image ~/Conky/Icons/NUMLEDW.png -p 100,57 -s 20x20}${else}${image ~/Conky/Icons/NUMLEDY.png -p 100,57 -s 20x20}${endif}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000003"}${image ~/Conky/Icons/CAPSLEDW.png -p 120,57 -s 20x20}${else}${image ~/Conky/Icons/CAPSLEDY.png -p 120,57 -s 20x20}${endif}
    ${color2}WEATHER: ${execi 3600 conkyForecast -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -d DW -w -s 3}
    #-----High Temp:
    H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${font}
    #-----Low Temp:
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${font}
    #-----Weather Conditions:
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF}${goto 75}${execi 3600 conkyForecast -d WF -s 2}${goto 135}${execi 3600 conkyForecast -d WF -s 3}${goto 195}${execi 3600 conkyForecast -d WF -s 4}${color2}${font}
    ${goto 100}Night Values:#-----Night Values:High Temp
    ${voffset 25}${goto 5}H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4 -n}°C${font}
    #-----Low Temp:Night
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4 -n}°C
    #-----Weather Conditions:Night 
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF -n}${goto 75}${execi 3600 conkyForecast -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -d BF}${goto 75}${execi 3600 conkyForecast -d BF -s 2}${goto 135}${execi 3600 conkyForecast -d BF -s 3}${goto 195}${execi 3600 conkyForecast -d BF -s 4}${font}
    #-----Wind Speed(With spacing edit by VinDSL)
    ${execi 3600 conkyForecast -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}
    #-----Sunrise/Sunset
    ${voffset -285}${goto 255}Tomorrow:
    ${goto 255}Sunrise:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SR -s 2}${color2}
    ${goto 255}Sunset:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SS -s 2}${color2}
    #-----Moon Phase
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -40}${goto 310}${font MoonPhases:size=25}${execi 3600 conkyForecast -d MF}${font}
    ${goto 255}${execi 3600 conkyForecast -d MP}
    weather conky code is by far the most complicated and hardest a newb like me has tried to work with.
    Attached Images Attached Images

  4. #16204
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Arminius View Post
    well I went there and I copied doriens code accross, but everything but the wind direction is showing up?

    in the photo the top part is my old non dorien related code, and after =====test===== is the copied text, so any suggestions

    my conky code
    Code:
    ##################################
    ## VinDSL | rev. 11-02-17 01:46 ##
    ##################################
    ##   Screen res: 1280x1024x24   ##
    ##################################
    
    ####
    ## Prerequisites (required).
    ## conky-all 1.8.0 or 1.8.1
    ## conkyForecast 2.16
    ## weather.com XML Data Feed (XOAP)
    #
    
    ####
    ## Use XFT? Required to Force UTF8 (see below).
    #
    use_xft yes
    xftfont DroidSans:size=8.75
    xftalpha 0.1
    text_buffer_size 2048
    
    ####
    ## Force UTF8? Requires XFT (see above).
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## This is the number of times Conky will update before quitting.
    ## Set to zero to run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop (required in nautilus)?
    #
    own_window yes
    own_window_type override
    own_window_transparent yes
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders yes
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment bottom_right
    
    ####
    ## Minimum size of text area.
    #
    minimum_size 340 798
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 8
    gap_y 205
    
    ####
    ## 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
    color1 Ivory
    color2 Ivory2
    color3 Ivory3
    color4 Tan1
    color5 Tan2
    color6 Gray
    color7 AntiqueWhite4
    color8 DarkSlateGray
    color9 Black
    
    
    ####
    ## Load Lua for bargraphs (required).
    ## Set the path to your script here.
    #
    lua_draw_hook_post main_bars
    
    ####
    ## Installed fonts (required).
    #
    # ConkyWeather (Stanko Metodiev)
    # ConkyWindNESW (Stanko Metodiev)
    # Cut Outs for 3D FX (Fonts & Things)
    # Droid Font Family (Google Android SDK)
    # Moon Phases (Curtis Clark)
    # OpenLogos (Icoma)
    # PizzaDude Bullets (Jakob Fischer)
    # Radio Space (Iconian Fonts)
    # StyleBats (Vinterstille)
    # Ubuntu (Canonical Ltd)
    # Ubuntu Title Bold (Paulo Silva)
    # Weather (Jonathan Macagba)
    
    TEXT
    ##################
    ##    SYSTEM    ##
    ##################
    ${voffset 20}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${color brown} Updates Available: ${execi 1800 aptitude search "~U" | wc -l | tail}
    ${font DroidSans:size=8.65}${offset 5}Ubuntu Version: ${pre_exec lsb_release -r -s}
    ${font DroidSans:size=8.65}${offset 5}Uptime: $uptime
      Kernel: $kernel
      Conky Build Date: $conky_build_date
      Conky Version: $conky_version
    ##################
    ##    TRAFFIC    ##
    ##################
    ${voffset 20}${font DroidSans:bold:size=8.25}${color4}INTERNET TRAFFIC${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${color green}NETWORK IP: ${addr eth1}
    
    DOWN:  ${downspeed eth1}/s                   UP:  ${upspeed eth1}/s  
    Today:${goto 65}${execi 300 vnstat -i eth1 | grep "today" | awk '{print $2 $3}'}${goto 150} Today:${goto 210}${execi 300 vnstat -i eth1 | grep "today" | awk '{print $5 $6}'}
    Week:${goto 65}${execi 300 vnstat -i eth1 -w | grep "current week" | awk '{print $3 $4}'}${goto 150} Week:${goto 210}${execi 300 vnstat -i eth1 -w | grep "current week" | awk '{print $6 $7}'} 
    Month:${goto 65}${execi 300 vnstat -i eth1 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 150} Month:${goto 210}${execi 300 vnstat -i eth1 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
    Maximum: 100GB                  Maximum:  100GB
    Down: ${downspeedgraph eth1 555753 eeeeec}
    Up : ${upspeedgraph eth1 555753 eeeeec}
    ##################
    ##   WEATHER    ##
    ##################
    ${voffset 6}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 0}${goto 59}${font Weather:size=38}${color2}y${font}${voffset -33}${offset 14}${font RadioSpace:size=32}${color3}${execi 1800 conkyForecast -d HT -u}C${font}
    ${voffset 0}${font Ubuntu:size=24}${color4}${alignc}${execi 1800 conkyForecast -d CT}${font}
    ${voffset 10}${goto 20}${font ConkyWindNESW:size=41}${color3}${execi 1800 conkyForecast -d BS}${font}${voffset -40}${goto 98}${font ConkyWeather:size=45}${execi 1800 conkyForecast -d WF}${font}${voffset -39}${goto 188}${font MoonPhases:size=32}${execi 1800 conkyForecast -d MF}${font}
    ${voffset 6}${goto 28}${font DroidSansFallback:bold:size=8.45}${color4}${execpi 1800 conkyForecast -d WS -i| sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 88}Feels like ${execi 1800 conkyForecast -d LT -u}${execpi 1800 conkyForecast -d MP| sed -e 's/First.*'/'\$\{goto 182}First Qtr/g' -e 's/Last.*'/'\$\{goto 184}Last Qtr/g' -e 's/New.*'/'\$\{goto 195}New/g' -e 's/Full.*'/'\$\{goto 195}Full/g' -e 's/Waning.*'/'\$\{goto 187}Waning/g' -e 's/Waxing.*'/'\$\{goto 187}Waxing/g'}${font}
    ${voffset 9}${goto 36}${font DroidSansMono:bold:size=8.35}${color3}${execi 1800 conkyForecast -d DW -s 1 -w}${goto 89}${execi 1800 conkyForecast -d DW -s 2 -w}${goto 143}${execi 1800 conkyForecast -d DW -s 3 -w}${goto 197}${execi 1800 conkyForecast -d DW -s 4 -w}${font}
    ${voffset 2}${goto 25}${font ConkyWeather:size=32}${color2}${execi 1800 conkyForecast -d WF -s 1 -e 4 -S 1}${font}
    ${voffset 0}${goto 25}${font DroidSans:bold:size=8.5}${color4}${execi 1800 conkyForecast -d HT -s 1 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 1 -u}${goto 79}${execi 1800 conkyForecast -d HT -s 2 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 2 -u}${goto 133}${execi 1800 conkyForecast -d HT -s 3 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 3 -u}${goto 187}${execi 1800 conkyForecast -d HT -s 4 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 4 -u}${font}
    
    ${font Ubuntu:size=10}${color4}Today's Sunrise: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=SR --}${alignr}${color4} Today's Sunset: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=SS --}
    ${font Ubuntu:size=10}${color4}Tomorrow's Sunrise: ${color #E6E8FA}${execi 600 conkyForecast --location=ASXX0016 --startday=1 --datatype=SR --}${alignr}${color4} Tomorrow's Sunset: ${color1}${execi 600 conkyForecast --location=ASXX0016 --startday=1 --datatype=SS --}
    ${color4}${font Ubuntu:size=10}Station: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=OB}${alignr}${color4}${font Ubuntu:size=10}Last Update: ${color1}${execi 600 conkyForecast --location=ASXX0016 --datatype=LU}${font}
    and doriens which I added at the very bottom is
    Code:
    ${image ~/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000002"}${image ~/Conky/Icons/NUMLEDW.png -p 100,57 -s 20x20}${else}${image ~/Conky/Icons/NUMLEDY.png -p 100,57 -s 20x20}${endif}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000003"}${image ~/Conky/Icons/CAPSLEDW.png -p 120,57 -s 20x20}${else}${image ~/Conky/Icons/CAPSLEDY.png -p 120,57 -s 20x20}${endif}
    ${color2}WEATHER: ${execi 3600 conkyForecast -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -d DW -w -s 3}
    #-----High Temp:
    H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${font}
    #-----Low Temp:
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${font}
    #-----Weather Conditions:
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF}${goto 75}${execi 3600 conkyForecast -d WF -s 2}${goto 135}${execi 3600 conkyForecast -d WF -s 3}${goto 195}${execi 3600 conkyForecast -d WF -s 4}${color2}${font}
    ${goto 100}Night Values:#-----Night Values:High Temp
    ${voffset 25}${goto 5}H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4 -n}°C${font}
    #-----Low Temp:Night
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4 -n}°C
    #-----Weather Conditions:Night 
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF -n}${goto 75}${execi 3600 conkyForecast -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -d BF}${goto 75}${execi 3600 conkyForecast -d BF -s 2}${goto 135}${execi 3600 conkyForecast -d BF -s 3}${goto 195}${execi 3600 conkyForecast -d BF -s 4}${font}
    #-----Wind Speed(With spacing edit by VinDSL)
    ${execi 3600 conkyForecast -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}
    #-----Sunrise/Sunset
    ${voffset -285}${goto 255}Tomorrow:
    ${goto 255}Sunrise:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SR -s 2}${color2}
    ${goto 255}Sunset:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SS -s 2}${color2}
    #-----Moon Phase
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -40}${goto 310}${font MoonPhases:size=25}${execi 3600 conkyForecast -d MF}${font}
    ${goto 255}${execi 3600 conkyForecast -d MP}
    weather conky code is by far the most complicated and hardest a newb like me has tried to work with.
    I don't use the weather script myself, but doesn't the -i I marked in your script stand for "imperial"? See line 8 from the bottom. (I don't know if that is the pice that gets the wind speed though.)

  5. #16205
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Hi All,

    I'm pulling a picture from a webcam and putting it in the conky.

    I'm using the following:
    Code:
    ${texeci 60 ls -l /home/john/tetonwebcam.gif |gawk 'END{print $6,$7,"CES time"; gsub(/-/," ",$6); gsub(/:/," ",$7); print strftime("%a %b %d, %H: %M",mktime($6" "$7" 0")-(8*60*60)),"MST time"}'
    to display the time the photo was downloaded both in MST (where the photo was taken) and CES (Swedish time).

    Does anyone know how I can get the time the photo was downloaded, local time to show up as %a %b %d, %H: %M
    Thank you,
    GG -----------

  6. #16206
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    Deal! how did you know I was a coffaholic?
    You use Linux!

  7. #16207
    Join Date
    Jan 2009
    Beans
    4

    Re: Post your .conkyrc files w/ screenshots

    Code:
    background yes
    use_xft yes
    xftfont snap:size=8
    xftalpha 0.5
    update_interval 1.0
    total_run_times 0
    temperature_unit celsius
    double_buffer yes
    no_buffers yes
    text_buffer_size 2048
    own_window yes
    own_window_transparent yes
    own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
    own_window_type desktop
    minimum_size 1280 24
    maximum_width 1280
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color dfdfdf
    default_shade_color black
    default_outline_color white
    alignment top_left
    gap_x 0
    gap_y 0
    cpu_avg_samples 2
    net_avg_samples 2
    uppercase no
    override_utf8_locale yes
    imlib_cache_flush_interval 3600
    color1 00fb00
    color2 777777
    color3 fbf900
    color4 fb0000
    TEXT
    ${image  /home/dany/.dockbarx/themes/panel-24.png   -p 0,0  -s 1280x24}${offset 5}${voffset 2}${color}CPU ${offset 2}${color2}${if_match ${cpu} >0}${color1}${endif}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >10}${color1}${endif}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >20}${color1}${endif}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >30}${color1}${endif}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >40}${color1}${endif}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >50}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >60}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >70}${color3}${endif}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >80}${color4}${endif}l${color2}${if_match ${cpu} >90}${color4}${endif}l
    ${color}${offset 5}RAM ${color2}${if_match ${memperc} >0}${color1}${endif}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >10}${color1}${endif}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >20}${color1}${endif}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >30}${color1}${endif}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >40}${color1}${endif}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >50}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >60}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >70}${color3}${endif}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >80}${color4}${endif}l${color2}${if_match ${memperc} >90}${color4}${endif}l ${voffset -10}${color}${hwmon 0 temp 1} C
    ${offset 55}${color}  /home ${color2}${if_match ${fs_used_perc /home} >0}${color1}${endif}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >10}${color1}${endif}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >20}${color1}${endif}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >30}${color1}${endif}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >40}${color1}${endif}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >50}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >60}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >70}${color3}${endif}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /home} >90}${color4}${endif}l ${voffset -10}${offset -51}${color} / ${color2}${if_match ${fs_used_perc /} >0}${color1}${endif}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >10}${color1}${endif}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >20}${color1}${endif}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >30}${color1}${endif}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >40}${color1}${endif}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >50}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >60}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >70}${color3}${endif}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >80}${color4}${endif}l${color2}${if_match ${fs_used_perc /} >90}${color4}${endif}l ${color} D${color2} ${if_match ${downspeedf} >0}${color1}${endif}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >6}${color1}${endif}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >13}${color1}${endif}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >19}${color1}${endif}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >26}${color1}${endif}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >32}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >38}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >44}${color3}${endif}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >50}${color4}${endif}l${color2}${if_match ${downspeedf} >57}${color4}${endif}l
    ${offset 141}${color} U ${color2}${if_match ${upspeedf} >0}${color1}${endif}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >3}${color1}${endif}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >6}${color1}${endif}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >9}${color1}${endif}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >13}${color1}${endif}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >16}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >19}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >22}${color3}${endif}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >25}${color4}${endif}l${color2}${if_match ${upspeedf} >29}${color4}${endif}l
    I use here conky to draw background for tint2 panel,but I have one problem. Although I put position to be 0,0 ,it won't start to draw image from 0,0(see the picture).
    Attached Images Attached Images
    Last edited by na12; February 24th, 2011 at 05:50 PM.

  8. #16208
    Join Date
    Feb 2008
    Beans
    145
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Was there someone on here (or the other thread) that was looking for an analog lua clock that could do other time zones?

    Well look no more...

    Code:
    --Time Zone Clock by Neon612 (2011)
    require 'cairo'
    
    local clock_settings = {
    	{
    		time_zone = 0,			-- The time zone of the clock, (default: 0 = GMT)
    		clock_r = 25,			-- Radius of clock face (not including border) in pixels (required)
    		xc = 50,			-- X coordinates, relative to top left corner, in pixels (required)
    		yc = 50,			-- Y coordinates, relative to top left corner, in pixels (required)
    		face_color = {0xFFFFFF, 1},	-- Color of the clock face, and alpha (default: white with 100% alpha)
    		hands_color = {0x000000, 0.5},	-- Color of hands, and alpha (default: black with 50% alpha)
    		show_seconds = true,		-- Show second hand, use a Conky update_interval > 1s (default: false)
    		font = "Droid Sans Mono",	-- Font to display time and time zone (default: Droid Sans Mono)
    		font_size = 18,			-- Font size (default: 18)
    		font_color = {0xFFFFFF, 1},	-- Font color (default: white)
    		show_time = true,		-- Show the time below the clock face (default: false)
    		show_zone = true,		-- Show the time zone (default: false)
    	},
    	{
    		time_zone = -0100,
    		clock_r = 25,
    		xc = 150,
    		yc = 50,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0200,
    		clock_r = 25,
    		xc = 250,
    		yc = 50,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0300,
    		clock_r = 25,
    		xc = 350,
    		yc = 50,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0400,
    		clock_r = 25,
    		xc = 450,
    		yc = 50,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0500,
    		clock_r = 25,
    		xc = 50,
    		yc = 150,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0600,
    		clock_r = 25,
    		xc = 150,
    		yc = 150,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0700,
    		clock_r = 25,
    		xc = 250,
    		yc = 150,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0800,
    		clock_r = 25,
    		xc = 350,
    		yc = 150,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -0900,
    		clock_r = 25,
    		xc = 450,
    		yc = 150,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -1000,
    		clock_r = 25,
    		xc = 50,
    		yc = 250,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -1100,
    		clock_r = 25,
    		xc = 150,
    		yc = 250,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = -1200,
    		clock_r = 25,
    		xc = 250,
    		yc = 250,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0100,
    		clock_r = 25,
    		xc = 350,
    		yc = 250,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0200,
    		clock_r = 25,
    		xc = 450,
    		yc = 250,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0300,
    		clock_r = 25,
    		xc = 50,
    		yc = 350,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0400,
    		clock_r = 25,
    		xc = 150,
    		yc = 350,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0500,
    		clock_r = 25,
    		xc = 250,
    		yc = 350,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0600,
    		clock_r = 25,
    		xc = 350,
    		yc = 350,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0700,
    		clock_r = 25,
    		xc = 450,
    		yc = 350,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0800,
    		clock_r = 25,
    		xc = 50,
    		yc = 450,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 0900,
    		clock_r = 25,
    		xc = 150,
    		yc = 450,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 1000,
    		clock_r = 25,
    		xc = 250,
    		yc = 450,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 1100,
    		clock_r = 25,
    		xc = 350,
    		yc = 450,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    	{
    		time_zone = 1200,
    		clock_r = 25,
    		xc = 450,
    		yc = 450,
    		show_seconds = true,
    		show_time = true,
    		show_zone = true,
    	},
    }
    
    function conky_draw_clock()
    	if conky_window == nil then return end
    	local w = conky_window.width
    	local h = conky_window.height
    	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    	cr = cairo_create(cs)
    	
    	local updates = tonumber(conky_parse('${updates}'))
    	if updates > 5 then
    		for i in pairs(clock_settings) do
    			draw_clock(clock_settings[i])
    		end
    	end
    end
    
    function draw_clock(t)
    	local time_zone = t.time_zone
    	local clock_r = t.clock_r
    	local xc = t.xc
    	local yc = t.yc
    	local face_color = t.face_color
    	local hands_color = t.hands_color
    	local show_seconds = t.show_seconds
    	local font = t.font
    	local font_size = t.font_sie
    	local font_color = t.font_color
    	local show_time = t.show_time
    	local show_zone = t.show_zone
    	
    	--set defaults
    	if time_zone == nil then time_zone = 0 end
    	if face_color == nil then face_color = {0xFFFFFF, 1} end
    	if hands_color == nil then hands_color = {0x000000, 0.5} end
    	if show_seconds == nil then show_seconds = false end
    	if font == nil then font = "Droid Sans Mono" end
    	if font_size == nil then font_size = 18 end
    	if font_color == nil then font_color = {0xFFFFFF, 1} end
    	if show_time == nil then show_time = false end
    	if show_zone == nil then show_zone = false end
    	
    	--draw face
    	cairo_arc(cr, xc, yc, clock_r, 0, 2 * math.pi)
    	cairo_set_source_rgba(cr, rgb_to_r_g_b(face_color))
    	cairo_fill_preserve(cr)
    	cairo_stroke(cr)
    	
    	-- Grab time
    	local hours = os.date("!%I")
    	local mins = os.date("!%M")
    	local secs = os.date("!%S")
    
    	local hr_shift = tonumber(time_zone) / 100
    	local min_shift = tonumber(time_zone) % 100
    	
    --	local time_diff = os.difftime(tonumber(hours), tonumber(hours) + hr_shift)
    --	print(time_diff)
    	
    	local hours = tonumber(hours) + math.floor(hr_shift)
    	local mins = tonumber(mins) + min_shift
    	
    	if hours < 0 then
    		hours = 12 + hours
    	elseif hours > 12 then
    		hours = hours - 12
    	elseif hours == 0 then
    		hours = 12
    	end
    	
    	if mins < 10 then
    		mins = "0" .. mins
    	end
    	
    	secs_arc = (2 * math.pi / 60) * secs
    	mins_arc = (2 * math.pi / 60) * mins
    	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, rgb_to_r_g_b(hands_color))
    	cairo_stroke(cr)
    	
    	-- Draw minute hand
    	xm = xc + 0.9 * clock_r * math.sin(mins_arc)
    	ym = yc - 0.9 * 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 + 0.9 * clock_r * math.sin(secs_arc)
    		ys = yc - 0.9 * 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
    	
    	--setup font, font size, and font color
    	cairo_set_source_rgba(cr, rgb_to_r_g_b(font_color))
    	cairo_select_font_face(cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
    	cairo_set_font_size(cr, font_size)
    	
    	--print time below clock
    	if show_time then
    		cairo_move_to(cr, xc - clock_r, yc + clock_r + 20)
    		cairo_show_text(cr, hours .. ":" .. mins .. ":" .. secs)
    		cairo_stroke(cr)
    	end
    	
    	if show_zone then
    		if time_zone > 0 and (time_zone/100) < 10 then
    			time_zone = "+0" .. time_zone
    		elseif (time_zone/100) >= 10 then
    			time_zone = "+" .. time_zone
    		elseif time_zone < 0 and (time_zone/100) > -10 then
    			time_zone = "-0" .. math.abs(time_zone)
    		end
    		
    		cairo_move_to(cr, xc - clock_r, yc + clock_r + 40)
    		cairo_show_text(cr, time_zone)
    		cairo_stroke(cr)
    	end
    end
    
    function rgb_to_r_g_b(col_a)
    	return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
    end
    If you have used any of wlourf's scripts you should know how the settings table works. The only things required are clock radius, and x and y coordinates for the center. Everything else has a default setting.

    Default time zone is set to GMT. To change just set the time zone variable to the offset time. Something like -0600 for CST, -0800 for PST. For positive offsets just use a regular number, 0100 for CES, 0800 for Western AUS.

    The hour is the only shift that works correctly. The zones that are 30 mins or 15 mins off still need some bugs ironed out. And if you want AM/PM beside the time, its in the works.

    Enjoy, and let me know if something doesn't work or something that needs added.
    Attached Images Attached Images

  9. #16209
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    I don't use the weather script myself, but doesn't the -i I marked in your script stand for "imperial"? See line 8 from the bottom. (I don't know if that is the pice that gets the wind speed though.)
    That's correct, the -i assigns imperial units, otherwise the units will be metric - for wind speed or temps. Wind can also be reported in beaufort units.

    In a terminal:

    Code:
    conkyForecast --help
    will give all the options for units.
    The mark of an honest man ... is that he means what he says and knows what he means.
    A.R.

  10. #16210
    Join Date
    Nov 2007
    Location
    Germany
    Beans
    3

    Re: Post your .conkyrc files w/ screenshots

    my conky script

    wallpaper can download here
    http://hunch.se/stuff/world-map-wallpaper.png
    Attached Images Attached Images
    Attached Files Attached Files

Page 1621 of 2348 FirstFirst ... 6211121152115711611161916201621162216231631167117212121 ... 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
  •