Page 150 of 2274 FirstFirst ... 501001401481491501511521602002506501150 ... LastLast
Results 1,491 to 1,500 of 22732

Thread: Post your .conkyrc files w/ screenshots

  1. #1491
    Join Date
    Dec 2007
    Beans
    16
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Post your .conkyrc files w/ screenshots

    Code:
     #avoid flicker
    
    double_buffer yes
    
    
    
    #own window to run simultanious 2 or more conkys
    
    own_window  yes
    
    own_window_transparent no
    
    own_window_type normal
    
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
    
    
    
    #borders
    
    draw_borders no
    
    border_margin 1
    
    
    
    #shades
    
    draw_shades no
    
    
    
    #position
    
    gap_x 6
    
    gap_y 6
    
    alignment top_left
    
    
    
    #behaviour
    
    update_interval 1
    
    
    
    #colour
    
    default_color  9f907d
    
    
    
    #default_shade_color 000000
    
    own_window_colour 3d352a
    
    
    
    #font
    
    use_xft yes
    
    xftfont bauhaus:pixelsize=11
    
    
    
    #to prevent window from moving
    
    use_spacer no
    
    minimum_size 1262 0
    
    
    
    #mpd
    
    mpd_host localhost
    
    mpd_port 6600
    
    
    #D7D3C5
    
    TEXT
    
    ${alignc}Kernel: ${color D7D3C5}$kernel   |  ${time %d %B} ${color D7D3C5}${time  %H:%M}  |  ${color} Up: ${color D7D3C5}${uptime_short}   |   ${color}Processes: ${color D7D3C5}$processes  ${color}Running: ${color D7D3C5}$running_processes   |  ${color}Cpu: ${color D7D3C5}${cpu}%   ${color} ${color D7D3C5}|   ${color }Mem: ${color D7D3C5}$mem/$memmax - $memperc% ${color} ${color D7D3C5} |   ${color }Net: ${color D7D3C5}${font}${downspeed ath0} Kb/s ${color}  ${color D7D3C5} ${totaldown ath0} down   |   ${color D7D3C5}${upspeed ath0} Kb/s ${color} ${color D7D3C5}${totalup ath0} up |
    
    ${alignc} ${color} Home: ${color D7D3C5}${fs_free /home}  / ${fs_size /home}  - ${fs_free_perc /home}%  |  ${color}Email: ${color D7D3C5}${execi 300 python ~/scripts/gmail.py} ${color D7D3C5}   | ${color} Weather: ${color D7D3C5} ${execi 1800 weatherget -f ~/scripts/.conkyweatherrc --station-id=USVA0294 --standard }  |
    got mine from http://www.gnome-look.org/content/sh...?content=58555
    Attached Images Attached Images

  2. #1492
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,277
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Ok I've been using conky for about 14 hours...and about 4 were spent just configuring it...the rest was sleeping

    .conkyrc:

    Code:
    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    #
    # Based on conky-jc and the default .conkyrc.
    # INCLUDES:
    # - tail of /var/log/messages 
    # - netstat connections to your computer
    #
    # -- Pengo (conky@pengo.us)
    #
    
    # 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 1
    
    # Minimum size of text area
    minimum_size 200 5
    
    #maximum size
    maximum_size 150 1
    
    # 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 15
    
    # stuff after 'TEXT' will be formatted on screen
    
    override_utf8_locale no
    xftfont Terminus:size=7.5
    xftalpha 0.8
    
    #Add this for Network Up/Down graphs
    #${upspeedgraph eth1 20,130 000000 ffffff}
    #${downspeedgraph eth1 20,130 000000 ffffff}
    
    TEXT
    
    
    ${color slate grey}Date: ${color #ddaa00}${time %a, } ${color }${time %e %B %G}
    ${color slate grey}Time: ${color }${time %H:%M:%S} ${color #ddaa00}${time %Z,    }
    ${color slate grey}Up Time: ${color }$uptime
    ${color slate grey}Kernel: ${color }$kernel ${color #ddaa00}@ ${color }$nodename
    ${color slate grey}Power: ${color }${battery BAT1} $alignr ${Battery_time BAT1}          
    
    ${color slate grey}Intel(R) Core(TM)2 CPU
    T5300 @ 1.73Ghz
    
    ${color #ddaa00}Core 1: $color${freq 1} MHz
    $alignc${color slate grey}${cpubar 5, 100 cpu1}$color  ${cpu cpu1}%
    ${color #ddaa00}Core 2: $color${freq 2} MHz
    $alignc${color slate grey}${cpubar 5, 100 cpu2}$color  ${cpu cpu2}%
    
    ${color slate grey}Processes: ${color }$processes  
    ${color slate grey}Running:   ${color }$running_processes
    
    ${color slate grey}Highest CPU:
    ${color #ddaa00} ${top name 1}$alignr${top_mem cpu 1}            
    ${color lightgrey} ${top name 2}$alignr${top cpu 2}            
    ${color lightgrey} ${top name 3}$alignr${top cpu 3}            
    ${color lightgrey} ${top name 4}$alignr${top cpu 4}            
    
    ${color slate grey}Highest RAM:
    ${color #ddaa00} ${top_mem name 1}$alignr${top_mem mem 1}            
    ${color lightgrey} ${top_mem name 2}$alignr${top_mem mem 2}            
    ${color lightgrey} ${top_mem name 3}$alignr${top_mem mem 3}            
    ${color lightgrey} ${top_mem name 4}$alignr${top_mem mem 4}            
    
    ${color slate grey}RAM:  ${color } $mem/$memmax
    $alignc${membar 5,100}    $memperc%
    ${color slate grey}Swap: ${color } $swap/$swapmax
    $alignc${swapbar 5,100}    $swapperc%
    
    ${color slate grey}Root:    ${color }${fs_free /}/${fs_size /}
    $alignc${fs_bar 5,100 /}    ${fs_free_perc /}%
    ${color slate grey}Vista:  ${color }${fs_free /media/Vista}/${fs_size /media/Vista}
    $alignc${fs_bar 5,100 /media/Vista}    ${fs_free_perc /media/Vista}%
    
    ${color slate grey}Network Info: 
    $alignc${color #ddaa00}Up: ${color }${upspeed eth1} kb/s
    $alignc${color slate grey}Total Up: ${color }${totalup eth1}
    
    $alignc${color #ddaa00}Down: ${color }${downspeed eth1}kb/s${color}
    $alignc${color slate grey}Total Down: ${color }${totaldown eth1}
    
    ${color slate grey}Wireless Strength: ${color}
    $alignc${wireless_link_bar 5, 100eth1}    ${wireless_link_qual eth1}%
    ${color slate grey}Wireless SSID/Bitrate: ${color} 
    $alignc${wireless_essid eth1}    ${wireless_bitrate eth1}
    
    ${color slate grey}IP: ${color} ${addr eth1}   |   ${color slate grey}Public IP: ${color }${execi 7200 wget -O - http://whatismyip.org/ | tail}
    
    ${color slate grey}Gmail: ${color #ddaa00}${execi 300 python ~/.scripts/gmail.py} Unread Messages
    And There's a screenshot attached
    Attached Images Attached Images

  3. #1493
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Ok, I've noticed something that isn't making sense with my CPU temp readings.

    When I type "sensors" in terminal, I get a screen full of info. Among this info is the following:

    Code:
    CPU Temp (Intel):
                 +18°C  (high =   +80°C, hyst =   +75°C)   
    
    CPU Temp (AMD):
                 +25°C  (high =   +80°C, hyst =   +75°C)
    Now, I have an AMD Athlon CPU, and nothing Intel that I know of. My questions are:

    1) Why do I have an Intel temp sensor at all?

    and

    2) Why does the AMD CPU Temp reading never budge from 25C? The Intel reading changes, but the AMD never does.

    I don't get it.
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

  4. #1494
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Here it is:
    Code:
    # Conky sample configuration
    #
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Use Xft?
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=9
    
    # Text alpha when using Xft
    xftalpha 1.0
    
    # MPD host/port
    # mpd_host localhost
    # mpd_port 6600
    # mpd_password tinker_bell
    
    # Print everything to console?
    # out_to_console no
    
    # mail spool
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1.0
    
    # 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 no
    
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type override
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # If own_window_transparent is set to no, you can set the background colour here
    own_window_colour hotpink
    
    # If own_window is yes, these window manager hints may be used
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 200 5
    
    # 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
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color blue
    default_shade_color black
    default_outline_color black
    
    # dexter_client no
    # dexter_server no
    # config file for libdexter (default search path: $HOME/.dexterrc; /etc/libdexter/dexter.conf)
    # dexter_config
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 15
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer no
    
    # Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
    #max_port_monitor_connections 256
    
    # Maximum number of special things, e.g. fonts, offsets, aligns, etc.
    #max_specials 512
    
    # Maximum size of buffer for user text, i.e. below TEXT line.
    #max_user_text 16384
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen
    
    
    
    TEXT
    ${color #000000}
    
    ${alignc}-=- Belgicano -=-
    
    ${alignc}$sysname $kernel
    ${alignc}${time %d %B %Y | %I:%M:%S}
    ${if_existing /sys/class/net/eth1/operstate up}
    ${alignc}-=- Gmail -=-
    ${alignc}${execi 1200 python ~/.scripts/gmail.py}
    ${endif}${if_existing /sys/class/net/eth0/operstate up}
    ${alignc}-=- Gmail -=-
    ${alignc}${execi 1200 python ~/.scripts/gmail.py}
    ${endif}
    ${alignc}-=- System -=-
    CPU: $cpu%
    ${cpubar}
    RAM: $memperc%
    ${membar}
    Swap: $swapperc%
    ${swapbar}
    Battery: ${battery}
    ${if_existing /sys/class/net/eth1/operstate up}${alignc}-=- Wireless -=-
    IP: ${addr eth1}
    Public IP: ${execi 7200 wget -O - http://whatismyip.org/ | tail}
    ${wireless_essid eth1} @ ${wireless_bitrate eth1}
    ${wireless_link_bar eth1}
    Down: ${totaldown eth1}${offset 30}Up: ${totalup eth1}
    ${downspeedgraph eth1 25,105} ${upspeedgraph eth1 25,105}
    ${endif}${if_existing /sys/class/net/eth0/operstate up}${alignc}-=- LAN -=-
    IP: ${addr eth0}
    Public IP: ${execi 7200 wget -O - http://whatismyip.org/ | tail}
    Down: ${totaldown eth0}${offset 30}Up: ${totalup eth0}
    ${downspeedgraph eth0 25,105} ${upspeedgraph eth0 25,105}${endif}
    ${alignc}-=- File Systems -=-
    root: ${fs_used /} / ${fs_size /}
    ${fs_bar /}
    home: ${fs_used /home/} / ${fs_size /home/}
    ${fs_bar /home/}
    win1: ${fs_used /media/sda2/} / ${fs_size /media/sda2/}
    ${fs_bar /media/sda2/} 
    win2: ${fs_used /media/sda5/} / ${fs_size /media/sda5/}
    ${fs_bar /media/sda5/}
    ${alignc}-=- CPU -=-
    ${top name 1}${alignr}${top cpu 1}
    ${top name 2}${alignr}${top cpu 2}
    ${top name 3}${alignr}${top cpu 3}
    ${alignc}-=- RAM -=-
    ${top_mem name 1}${alignr}${top_mem mem 1}
    ${top_mem name 2}${alignr}${top_mem mem 2}
    ${top_mem name 3}${alignr}${top_mem mem 3}
    ${alignc}-=-           -=-
    Which threads did help me:
    http://ubuntuforums.org/showthread.php?t=631157
    http://ubuntuforums.org/showthread.php?t=644463
    Attached Images Attached Images
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  5. #1495
    Join Date
    Sep 2005
    Location
    Orlando FL
    Beans
    99
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Post your .conkyrc files w/ screenshots

    I just finish redoing my box and since I changed my conky I decided to share it.

    .startconky
    Code:
    #!/bin/bash
    sleep 20
    conky -c ~/.conkyscripts/conkymain &
    sleep 3
    conky -c ~/.conkyscripts/conkycal &
    exit
    conkymain
    Code:
    #avoid flicker
    
    double_buffer yes
    
    
    
    #own window to run simultanious 2 or more conkys
    
    own_window  yes
    
    own_window_transparent yes
    
    
    own_window_type normal
    
    own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager 
    
    
    
    #borders
    
    draw_borders no
    
    border_margin 0
    
    
    
    #shades
    
    draw_shades no
    
    
    
    #position
    
    gap_x 12
    
    gap_y 0
    
    alignment top_right
    
    
    
    #behaviour
    
    update_interval 1
    
    
    
    #colour
    
    default_color  364936
    
    
    
    #default_shade_color 000000
    
    own_window_colour 3d352a
    
    
    
    #font
    
    use_xft yes
    
    xftfont URW Gothic L Book:pixelsize=13
    
    
    
    #to prevent window from moving
    
    use_spacer no
    
    minimum_size 1000 5
    
    
    
    #mpd
    
    #mpd_host localhost
    
    #mpd_port 6600
    
    
    
    TEXT
    
    ${alignc} ${color}Cpu: ${color 485454}${cpu}% | ${color }Mem: ${color 485454}$mem/$memmax | ${alignc}${color }Net: ${color 485454}${font}${downspeed ath0} Kb/s ${color 485454} ${totaldown ath0} down | ${color 485454}${upspeed ath0} Kb/s ${color} ${color 485454}${totalup eth0} up | ${color }Root: ${color 485454}${font}${fs_free /}  / ${fs_size /} | ${color} Home: ${color 485454}${fs_free /home}  / ${fs_size /home}
    conkycal
    Code:
    #avoid flicker
    
    double_buffer yes
    
    
    
    #own window to run simultanious 2 or more conkys
    
    own_window  yes
    
    own_window_transparent yes
    
    
    own_window_type normal
    
    own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager 
    
    
    
    #borders
    
    draw_borders no
    
    border_margin 2
    
    
    
    #shades
    
    draw_shades no
    
    
    
    #position
    
    gap_x 10
    
    gap_y 50
    
    
    #alignment top_left
    #alignment top_right
    #alignment bottom_left
    alignment bottom_right
    
    
    #behaviour
    
    #update_interval 1
    
    
    
    #colour
    
    default_color  364936
    
    
    
    #default_shade_color 000000
    
    own_window_colour 3d352a
    
    
    
    #font
    
    use_xft yes
    
    #xftfont URW Gothic L Book:pixelsize=9
    
    
    
    #to prevent window from moving
    
    use_spacer no
    
    minimum_size 100 10
    
    
    
    
    
    
    
    TEXT
    ${font URW Gothic L Book:size=30}${color 485454} ${alignc}${time %I:%M}${font}
    ${color 485454}$hr
    ${font DejaVu Sans Mono :size=9}${color 485454}${execi 1800 gcal}${font}
    ${color 485454}$hr
    ${color 485454}${font DejaVu Sans Mono :size=9}${execi 1800 /home/pichin/.weather/weather.sh}${font}
    ${color 485454}$hr
    ${color}${font URW Gothic L Book:size=10}Gmail: ${color 485454} ${execi 300 python ~/.gmail/gmail.py} ${color}messages ${font}
    Attached Images Attached Images
    | Better to be a geek than an idiot! | Ubuntu user num # 15259 | Linux user # 422921 |

  6. #1496
    Join Date
    Apr 2007
    Beans
    1,110
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    Hi Folks, I'm back.

    Learned a few things here: Conky Weather Revisited, so I thought I'd show you. Still have some editing to do with the colour:

    My Conky file
    Code:
    background yes
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_spacer yes
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.5
    update_interval 1.0
    draw_shades no
    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 3
    border_margin 9
    border_width 10
    default_color white
    own_window_colour brown
    own_window_transparent yes
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    gap_x 10
    gap_y 25
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    
    #  FOR MY INFO
    # last month
    # ${font DejaVu Sans Mono :size=8}${execi 60 cal -3 | cut -c00-22}
    # this month
    # ${execi 60 cal}
    # next month
    # ${execi 60 cal -3 | cut -c45-64}$font
    # this month and next month
    # ${font DejaVu Sans Mono :size=8}${execi 60 cal -3 | cut -c23-64}$font
    
    # For international dates & times ${tztime} see: /usr/share/zoneinfo
    # Leave 3 blank lines below TEXT to clear panels
    # add this line below TEXT to test things, remove when finished.
    
    #${color cyan}Fix me: CPU Temp: ${color white}${acpitemp}C $color
    #${color red}Test Cmds Above ${hr 3} $color
    
    TEXT
    
    ${alignc}${color cyan}~~== ${color orange}GMT ${color white}${tztime GMT %H:%M:%S} ${color cyan}==~~$color
    ${alignc}${Color orange}~~== ${color cyan}Canada ${color orange}==~~$color
    ${color orange}Sis${alignr}${color cyan}Winnipeg${color cyan}: ${color white}${tztime Canada/Central %H:%M:%S}$color
    ${color orange}JBM & CDM & LilSis${alignr}${alignr}${color cyan}London${color cyan}: ${color white}${tztime Canada/Eastern %H:%M:%S}$color
    
    ${alignc}${Color orange}~~== ${color cyan}Buenos Aires ${color orange}==~~$color
    ${font :size=30}${color white}${alignc}${time %H:%M:%S}$color $font
    ${font :size=12}${color cyan}${alignc}${time %A, %d %b. %y}$color $font
    
    $hr
    ${voffset -3}$alignc 5 DAY FORECAST
    ${voffset -9}$hr
    ${voffset -5}${font weather:size=50}${alignc}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 1p}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 2p}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 3p}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 4p}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 5p}${font}
    ${alignc}${offset -15}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 1}${offset 10}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 2}${offset 10}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 3}${offset 10}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 4}${offset 10}${execi 60 ~/scripts/lvlephw2.sh ARBA0009 c 5}
    
    ${font DejaVu Sans Mono :size=8}${execi 60 cal -3 | cut -c23-64} $font
    ${color cyan}${hr 1}$color
    ${color orange}${alignc}UpTime for ${color white}${exec whoami} @ $nodename${color orange} $uptime $color
    ${color orange}${alignc}$sysname $kernel ($machine) $color
    ${color cyan}${hr 1}$color
    ${color orange}CPU: ${color white}${cpu}% ${color orange}${cpubar cpu0} $color
    ${color cyan}Freq: ${color white}$freq ${color cyan}MHz ${color cyan}     Running: ${color white}$running_processes ${color cyan}of ${color white}$processes${color cyan}processes $color
    ${color cyan}Load Avg (${color yellow}Min${color cyan}):$alignr${color yellow}1: ${color white}${loadavg 1}      ${color yellow}5: ${color white}${loadavg 2}     ${color yellow}15: ${color white}${loadavg 3} ${color orange}$color
    
    ${color orange}MEM: ${color cyan}RAM: ${color white}$memperc% ${color cyan}(${color white}${mem} ${color cyan}of ${color orange}${memmax}${color cyan}) ${color orange}$membar $color
    ${color orange}DISK: ${color cyan}Swap: ${color white}$swapperc% ${color cyan}(${color white}$swap ${color cyan}of ${color orange}${swapmax}${color cyan})${color orange} ${swapbar}$color
    ${color orange}HD Info ${hr 1} $color
    ${color cyan}Ubuntu:${alignr}${color white}${fs_free_perc /}% ${color cyan}(${color white}${fs_used /} ${color cyan}of ${color orange}${fs_size /}${color cyan})$color
    ${color cyan}BruLoo:${alignr}${color white}${fs_free_perc /media/BruLoo}% ${color cyan}(${color white}${fs_used /media/BruLoo} ${color cyan}of ${color orange}${fs_size /media/BruLoo}${color cyan})$color
    ${color cyan}W2K:${alignr}${color white}${fs_free_perc /media/sda1}% ${color cyan}(${color white}${fs_used /media/sda1} ${color cyan}of ${color orange}${fs_size /media/sda1}${color cyan})$color
    ${color orange}${hr 1} $color
    ${color orange}IP ${color cyan}(${color white}${addr eth0}${color cyan}) ${color orange}${hr 1} $color
    ${color cyan}Down: ${color white}${downspeed eth0}k/s ${alignr}${color cyan}Up: ${color white}${upspeed eth0}k/s $color
    ${color cyan}Total: ${color white}${totaldown eth0} ${alignr}${color cyan}Total: ${color white}${totalup eth0} $color
    ${color cyan}Inbound: ${color white}${tcp_portmon 1 32767 count}          ${color cyan}Outbound: ${color white}${tcp_portmon 32768 61000 count}${alignr}${color cyan}Total: ${color white}${tcp_portmon 1 65535 count} $color
    ${color orange}Connections ${color white}${tcp_portmon 32768 61000 count} ${alignr} ${color orange}Service/Port $color${color white}
    ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
    ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
    ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
    ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
    ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}$color
    And two scripts needed for this:

    1st Script: lvlephw2.sh
    Code:
    #!/bin/bash
    ~/scripts/lvlephw.sh $1 $2 $3
    That calls the 2nd script: lvlephw.sh
    Code:
    # This script was written by lvleph and inspired by the original conky weather script written by azhag (azhag@bsd.miki.eu.org)
    
    #!/bin/bash
    
    #the following commented out code is not implemented correctly yet
    #function cond_symb () { #get condition symbol and print it
    	#cnd=$(cat "$file" | grep -A10 "class=\"titles\"" | head -n"$1" | tail -n1)
    	#translate condition to symbol in weather font
    #	if echo "$cnd" | grep -E -i -q 'partly cloudy'; then
    #		echo 'c'
    #	elif echo "$cnd" | grep -E -i -q 'fair|sun|clear'; then
    #		echo 'A'
    #	elif echo "$cnd" | grep -E -i -q 'cloud'; then
    #		echo 'e'
    #	elif echo "$cnd" | grep -E -i -q 'storm|thunder|t\-'; then
    #		echo 'i'
    #	elif echo "$cnd" | grep -E -i -q 'snow'; then
    #		echo 'k'
    #	elif echo "$cnd" | grep -E -i -q 'rain'; then
    #		echo 'h'
    #	elif echo "$cnd" | grep -E -i -q 'shower'; then
    #		echo 'g'
    #	fi
    #}
    
    #function temp () { #get high and low temp and print it
    	#get high temp
    #	hilo=$(cat "$file" | grep -A6 "class=\"temps\"" | head -n"$1" | tail -n1)
    #	tmp1=$(echo "$hilo" | cut -b19-22 | awk '{ sub(/&/,"\n"); print}' | awk '{ sub(" ",""); print}' | head -n1)
    	#get low temp
    #	tmp2=$(echo "$hilo" | cut -b46-49 | awk '{ sub(/&/,"\n"); print}' | awk '{ sub(" ",""); print}' | head -n1)
    #	echo -e "$tmp1\0302\0260/$tmp2\0302\0260" #print the high and low temp
    #}
    
    code=$1 #zipcode or weather.com city code
    system=$2 #f for imperial c for metric
    file=/tmp/weather.html #temp file holding weather
    update=3600 #time in seconds to update file if set to 0 don't use file
    
    if echo "$3" | grep -E -i -q 'c'; then
    	update=0
    fi
    
    if [ $update -eq 0 ]; then
    	age=1
    else 
    	#check to see if file exists
    	if [ ! -e $file ]; then
    		touch "/tmp/weather.html"
    		age=3601
    	else
    		age=$(($(date +%s) - $(stat -c '%Y' "$file"))) #age of file in seconds
    	fi
    fi
    
    if [ $age -gt  $update ]; then #check for age of file and if option was c
    	#Check to see if server is available
    	if [ `ping -c1 216.109.126.70 | grep from | wc -l` -eq 0 ]; then
    		echo "Service not available"
    		exit
    	fi
    	
    	if [ $update -eq 0 ]; then
    		#get weather directly from site
    		file=$(wget -O - http://weather.yahoo.com/forecast/"$code"_"$system".html)
    	else
    		#get new weather file
    		wget -O - http://weather.yahoo.com/forecast/"$code"_"$system".html &> "$file"
    	fi
    fi
    
    case "$3" in
    	cp) #give me the symbol for the current condition
    		cnd=$(cat "$file" | grep -A1 "Current conditions as of" | tail -n1)
    		#cond_symb #get condition symbol and print it
    		if echo "$cnd" | grep -E -i -q 'partly cloudy'; then
    			echo 'c'
    		elif echo "$cnd" | grep -E -i -q 'fair|sun|clear'; then
    			echo 'A'
    		elif echo "$cnd" | grep -E -i -q 'cloud'; then
    			echo 'e'
    		elif echo "$cnd" | grep -E -i -q 'storm|thunder|t\-'; then
    			echo 'i'
    		elif echo "$cnd" | grep -E -i -q 'snow'; then
    			echo 'k'
    		elif echo "$cnd" | grep -E -i -q 'rain'; then
    			echo 'h'
    		elif echo "$cnd" | grep -E -i -q 'shower'; then
    			echo 'g'
    		fi
    		;;
    	c) #give me current temp
    		tmp=$(cat "$file" | grep -A1 "\"forecast\-temperature\"" | tail -n1 | cut -b5-8 | awk 'sub(/&d/,"")')
    		echo "$tmp\0302\0260"
    		;;
    	[1-5]p) #give me the symbol for the conditions
    		#get conditions
    		day=$(echo "$3" | awk 'sub(/p/,"")') #get day
    		head=$((2*$day+1)) #translate day into number of lines
    		cnd=$(cat "$file" | grep -A10 "class=\"titles\"" | head -n"$head" | tail -n1)
    		#cond_symb #get condition symbol and print it
    		if echo "$cnd" | grep -E -i -q 'partly cloudy'; then
    			echo 'c'
    		elif echo "$cnd" | grep -E -i -q 'fair|sun|clear'; then
    			echo 'A'
    		elif echo "$cnd" | grep -E -i -q 'cloud'; then
    			echo 'e'
    		elif echo "$cnd" | grep -E -i -q 'storm|thunder|t\-'; then
    			echo 'i'
    		elif echo "$cnd" | grep -E -i -q 'snow'; then
    			echo 'k'
    		elif echo "$cnd" | grep -E -i -q 'rain'; then
    			echo 'h'
    		elif echo "$cnd" | grep -E -i -q 'shower'; then
    			echo 'g'
    		fi
    		;;	
    	[1-5]) #give me today's weather
    		#get high and low
    		head=$(($3+1)) #translate day into number of lines
    		#temp $head #get high and low temp and print it
    		hilo=$(cat "$file" | grep -A6 "class=\"temps\"" | head -n"$head" | tail -n1)
    		tmp1=$(echo "$hilo" | cut -b19-22 | awk '{ sub(/&/,"\n"); print}' | awk '{ sub(" ",""); print}' | head -n1)
    		#get low temp
    		tmp2=$(echo "$hilo" | cut -b46-49 | awk '{ sub(/&/,"\n"); print}' | awk '{ sub(" ",""); print}' | head -n1)
    		echo "$tmp1°/$tmp2°" #print the high and low temp
    		;;
    	*) #didn't use correct option 
    		echo "Usage error weather.sh <citycode> <system> <option>
    	weather.sh <citycode> <system> <option>
    		<citycode> - This can be either your zipcode or weather.com city code
    		<system> - c for metric or f for imperial
    		<option> - Only one option can be entered at a time
    			cp displays current conditions
    			1p displays today's conditions
    			2p displays tomorrow's conditions
    			3p displays 3rd day's conditions
    			4p displays 4th day's conditions
    			5p displays 5th day's conditions
    			c displays current temp in chosen system
    			1 displays today's high/low temp in chosen system
    			2 displays tomorrow's high/low temp in chosen system
    			3 displays 3rd day's high/low temp in chosen system
    			4 displays 4th day's high/low temp in chosen system
    			5 displays 5th day's high/low temp in chosen system"
    		;;
    esac



    Bruce


    My favorite so far! 8) colorful

  7. #1497
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cresho View Post
    My favorite so far! 8) colorful
    Yea, stands out better in my opinion.

    There is a newer verson now. Conky Revisited V2

    The first link was a bash based script, the second is perl based and faster.

  8. #1498
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    I'm still playing with the conky weather script. I figured out how to get it to do the complete 10 day forecast, it really wasn't hard, there was a line that had a "1" in it, gee, create a "2" and try, but still can't for the life of me get colour to it or change the font. So three questions.

    Also there is one line in the "10 day forecast" part of the script that doesn't seem to do anything, so I commented it out.

    Code:
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    I am at a loss here!

    Here is my complete script and a screen shot.

    Code:
    <!-- 
    
     This XSLT is used to translate an XML response from the weather.com
     XML API. 
    
     You can format this file to your liking. Two things you may feel 
     like doing:
    
    	1) Modify the layout of the fields or static text already defined
    	2) Add other fields from the XML response file that aren't referenced in this
    	   XSLT. You can grab a full list by just doing a: 
               wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS" 
               (change $LOCID and $UNITS to suit your needs)
    -->
    
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > 
    	<xsl:output method="text" disable-output-escaping="yes"/>
    	<xsl:template match="weather">
    			<xsl:apply-templates select="loc"/>
    			<xsl:apply-templates select="cc"/>
    			<xsl:apply-templates select="dayf/day[@d='1']"/>
    			<xsl:apply-templates select="dayf/day[@d='2']"/>
    			<xsl:apply-templates select="dayf/day[@d='3']"/>
    			<xsl:apply-templates select="dayf/day[@d='4']"/>
    			<xsl:apply-templates select="dayf/day[@d='5']"/>
    			<xsl:apply-templates select="dayf/day[@d='6']"/>
    			<xsl:apply-templates select="dayf/day[@d='7']"/>
    			<xsl:apply-templates select="dayf/day[@d='8']"/>
    	</xsl:template>
    	
    			<xsl:template match="loc">
    
    <xsl:text>Live from:  </xsl:text><xsl:value-of select="dnam"/>
    <xsl:text>
    Lat: </xsl:text><xsl:value-of select="lat"/>
    <xsl:text>                  Long: </xsl:text><xsl:value-of select="lon"/>
    <xsl:text>
    SUN:  Rise: </xsl:text><xsl:value-of select="sunr"/>
    <xsl:text>     Set: </xsl:text><xsl:value-of select="suns"/>
    
    			</xsl:template>
    
    			<xsl:template match="cc">
    <xsl:text>
    
    Temp: </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
    
    <xsl:text>              Feels Like: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text>
    
    Conditions: </xsl:text><xsl:value-of select="t"/>
    <xsl:text>
    Visibility: </xsl:text><xsl:value-of select="vis"/><xsl:text> KM</xsl:text>
    <xsl:text>     Humidity: </xsl:text><xsl:value-of select="hmid"/><xsl:text>%</xsl:text>
    <xsl:text>
    Wind: </xsl:text>
    <xsl:choose>
    	<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
    	<xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
    </xsl:choose>
    <xsl:value-of select="/weather/head/us"/> 
    <xsl:choose>
    	<xsl:when test="wind/s = 'calm'"><xsl:text>(0 km/h)</xsl:text></xsl:when>
    	<xsl:otherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text> mph)</xsl:text></xsl:otherwise>
    </xsl:choose>
    <xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
    <xsl:text>)</xsl:text>
    <xsl:text>
    Gusting to: </xsl:text><xsl:value-of select="wind/gust"/>
    <xsl:text> km/h</xsl:text>
    <xsl:text>
    Barometer: </xsl:text><xsl:value-of select="bar/r"/>
    <xsl:text> mb ~ </xsl:text><xsl:value-of select="bar/d"/>
    
    <xsl:text>
    UV: </xsl:text><xsl:value-of select="uv/i"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="uv/t"/>
    <xsl:text>        Dew Point: </xsl:text><xsl:value-of select="dewp"/><xsl:text> °C</xsl:text>
    
    <xsl:text>
    
    MOON: Day: </xsl:text><xsl:value-of select="moon/icon"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="moon/t"/>
    
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='1']">
    <xsl:text>
    
    DAY 02: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='2']">
    <xsl:text>
    DAY 03: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='3']">
    <xsl:text>
    DAY 04: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='4']">
    <xsl:text>
    DAY 05: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='5']">
    <xsl:text>
    DAY 06: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='6']">
    <xsl:text>
    DAY 07: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='7']">
    <xsl:text>
    DAY 08: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    	<xsl:template match="dayf/day[@d='8']">
    <xsl:text>
    DAY 09: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
    <xsl:text> ~ </xsl:text><xsl:value-of select="part[@p='d']/t"/>
    <!-- <xsl:text>
      </xsl:text><xsl:value-of select="/weather/swa/a/t"/> -->
    	</xsl:template>
    
    </xsl:stylesheet>
    1. Does anyone know how to add colour?
    2. Can I change the font to a "mono" font?
    3. Does anyone know what that commented out line is supposed to do?

    Thanks
    Bruce

    EDIT: After spending time searching I have come to believe that Questions 1 & 2 are impossible. But #3 is still up for grabs.
    Attached Images Attached Images
    Last edited by Bruce M.; January 20th, 2008 at 04:09 PM. Reason: EDIT: momo?

  9. #1499
    Join Date
    Dec 2007
    Beans
    196

    Re: Post your .conkyrc files w/ screenshots

    I am working on adding the weather to my conky also and trying to follow the examples posted by Bruce M. above.

    Please help explain the following items to start:

    1) what does the tildy symbol " ~ " and forward slash " / " indicate is the placement of the folder called "scripts" ?

    2) Does this created folder go under my /home directory or where?


    Thanks!
    Our biggest problem is always the one we are experiencing at the moment.

  10. #1500
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,277
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    ~/ is the same as /home/username/

    so ~/.scripts is in fact the same place as /home/username/.scripts

Page 150 of 2274 FirstFirst ... 501001401481491501511521602002506501150 ... 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
  •