Page 170 of 2348 FirstFirst ... 701201601681691701711721802202706701170 ... LastLast
Results 1,691 to 1,700 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #1691
    Join Date
    Jun 2007
    Location
    Durian Central
    Beans
    502
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Post your .conkyrc files w/ screenshots

    Code:
    background yes
    use_xft yes
    xftfont HandelGotD:size=9
    xftalpha 0.5
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 5
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 12
    gap_y 48
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    
    TEXT
    $sysname $kernel on $machine
    
    Uptime $alignr $uptime
    Load $alignr $loadavg
    
    Hostname $alignr $nodename
    eth0 $alignr ${addr eth0}
    Mobo CPU Temp $alignr ${hwmon temp 1}C ${hwmon temp 2}C
    HDDlinux $alignr /dev/hdb ${execi 300 nc localhost 7634 | cut -c53-54 ;}C
    HDDwindows $alignr /dev/hda ${execi 300 nc localhost 7634 | cut -c27-28 ;}C
    
    CPU $alignr ${cpu cpu0}%
    ${cpubar cpu0}
    
    MEM $alignc $mem / $memmax $alignr $memperc%
    $membar
    
    /root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
    ${fs_bar /}
    
    /disk $alignc ${fs_used /media/disk} / ${fs_size /media/disk} $alignr ${fs_free_perc /media/disk}%
    ${fs_bar /media/disk}
    
    swap $alignc $swap / $swapmax $alignr $swapperc%
    ${swapbar}
    
    $processes processes ($running_processes running)
    
    ${color white}Highest CPU:
    ${color de0b0b}${top name 1}${top_mem cpu 1}
    ${color white}${top name 2}${top cpu 2}
    ${top name 3}${top cpu 3}
    ${top name 4}${top cpu 4}
    ${top name 5}${top cpu 5}
    
    ${color white}Highest MEM:
    ${color de0b0b}${top_mem name 1}${top_mem mem 1}
    ${color white}${top_mem name 2}${top_mem mem 2}
    ${top_mem name 3}${top_mem mem 3}
    ${top_mem name 4}${top_mem mem 4}
    ${top_mem name 5}${top_mem mem 5}
    
    ${color}Networking:
    Down:${color} $alignr ${downspeed eth0} k/s${color} ${offset 80}
    $alignc ${downspeedgraph eth0 32,150 de0b0b de0b0b}
    Up:${color} $alignr ${upspeed eth0} k/s ${offset 80}
    $alignc ${upspeedgraph eth0 32,150 de0b0b de0b0b}
    FINALLY! I found the key word "hwmon", added it and now works great! Thanks for all your help guys!
    [AMD AthlonX2 4000,Emaxx MCP61S-AVL,2GB Geil,7300GT 512MB,160GB]
    [Toshiba Satellite A505-S6965,Core2 P7350 2.0GHz,4GB RAM,200GB HDD]
    [Sony Vaio VGN-CR35G,Core2 T8100 2.10GHz,2GB RAM,200GB HDD]

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

    Re: Post your .conkyrc files w/ screenshots

    Hmm, I think my CPU temp isn't working, or my CPU fan works so well that the temp never changes. It always says 25C, even when I first boot up.

    Plus, I have an Intel CPU temp in addition to my AMD temp, even though I have no Intel anything on this board.

    Here's my "sensors" output:

    Code:
    Adapter: SMBus nForce2 adapter at 5500
    VCore 1:   +1.70 V  (min =  +1.31 V, max =  +1.97 V)       
    +3.3V:     +3.38 V  (min =  +2.96 V, max =  +3.63 V)       
    +5V:       +5.05 V  (min =  +4.49 V, max =  +5.51 V)       
    +12V:     +11.73 V  (min =  +9.55 V, max = +14.41 V)       
    -12V (reserved):
              -12.20 V  (min =  -0.00 V, max =  -0.00 V)       
    -5V (reserved):
               -5.12 V  (min =  -0.00 V, max =  -0.00 V)       
    CPU Fan:  7417 RPM  (min = 675000 RPM, div = 2)              
    Chassis Fan:
              3426 RPM  (min = 42187 RPM, div = 2)              
    Power Fan:   0 RPM  (min = 337500 RPM, div = 2)              
    M/B Temp:    +34°C  (high =   +80°C, hyst =   +75°C)   
    CPU Temp (Intel):
                 +17°C  (high =   +80°C, hyst =   +75°C)   
    Power Temp:
                  -0°C  (high =   +80°C, hyst =   +75°C)   
    CPU Temp (AMD):
                 +25°C  (high =   +80°C, hyst =   +75°C)   
    vid:      +1.650 V  (VRM Version 9.0)
    alarms:   
    
    w83l785ts-i2c-1-2e
    Adapter: SMBus nForce2 adapter at 5500
    temp:        +44°C  (high =  +110°C)
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

  3. #1693
    Join Date
    Aug 2006
    Location
    Marion, Ohio
    Beans
    208
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    Here's my conkyrc file. I'm running a K8 board and can't seem to get the CPU temperature right. I get this weird "A" symbol after the temp reading. haven't been able to get rid of it. Any suggestions?

    HTML Code:
    # Conky 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=8
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Print everything to stdout?
    # out_to_console no
    
    # 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 yes
    
    
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type normal
    
    # 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 black
    
    # 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
    
    #Maximum width
    maximum_width 305
    
    # Minimum size of text area
    minimum_size 280 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 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 8
    
    # Default colors and also border colors
    default_color white
    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 12
    gap_y 30
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # none, xmms, bmp, audacious, infopipe (default is none)
    none
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    
    freq_dyn
    
    # 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
    $nodename - $sysname $kernel on $machine
    $stippled_hr
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
    ${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar}
    ${color lightgrey}CPU Temperature: ${color lightgrey}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}°C
    ${color lightgrey}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${freq_dyn}Mhz
    ${color red}${cpugraph 0000ff 00ff00}
    ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
    ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
    ${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
    $color$stippled_hr
    ${color lightgrey}Networking:
     Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s
    ${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
    ${color lightgrey}Hard Disks:
    ${color lightgrey} Root ${color lightgrey}${fs_used /}/${fs_size /}${alignr}${color #cc2222}${fs_bar 5,120 /}
    ${color lightgrey} Music ${color lightgrey}${fs_used /media/Music}/${fs_size /media/Music}${alignr}${color #cc2222}${fs_bar 5,120 /media/Music}
    ${color lightgrey} Photos ${color lightgrey}${fs_used /media/Photos}/${fs_size /media/Photos}${alignr}${color #cc2222}${fs_bar 5,120 /media/Photos}
    
    ${color}Name                PID     CPU%   MEM%
    ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${tail /var/log/Xorg.0.log 3 30}
    $stippled_hr
    ${color #ddaa00}Port(s)${alignr}#Connections   
    $color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
    ${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
     ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
     ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
     ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
     ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
     ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
     ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
    ${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color
     ${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}
    Attached Images Attached Images

  4. #1694
    Join Date
    Aug 2006
    Location
    Marion, Ohio
    Beans
    208
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    Solved my problem with the weird "A" character. Turned out it was the "degree" symbol I was using. I deleted it and everything is now wonderful.

    Original line

    ${color lightgrey}CPU Temperature: ${color lightgrey}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}°C

    Modified line

    ${color lightgrey}CPU Temperature: ${color lightgrey}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}C
    Attached Images Attached Images

  5. #1695
    Join Date
    Jan 2008
    Location
    Philadelphia
    Beans
    63
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Post your .conkyrc files w/ screenshots

    I have a question.

    All of the scripts you guys write to go along with conky...where did you learn how to write them? What would i need to do if i wanted to learn to script? Any useful tutorials for linux newbies? And what languages can be used for these scripts? any?

    Thanks for the help

    -Bananas

  6. #1696
    Join Date
    Jul 2006
    Beans
    809
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    [b]@DerSpankster:[b] The A symbol is a result of the font you are using.

    @Bananas: There are online tutorials for all sorts of programming languages.

  7. #1697
    Join Date
    Aug 2007
    Beans
    29

    Re: Post your .conkyrc files w/ screenshots

    @Bananas: It helps to look at sample configs like the ones you see here, that's how I started out. The man page (link) is also very useful. Good luck!

  8. #1698
    Join Date
    Jul 2006
    Location
    Arizona
    Beans
    374
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Post your .conkyrc files w/ screenshots

    Code:
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # Use Xft?
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Trebuchet MS:size=9
    
    # Text alpha when using Xft
    xftalpha 0.9
    
    # 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 yes
    
    # If own_window is yes, you may use type normal, desktop or override
    own_window_type normal
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # 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 185 5
    
    # Maximum width
    maximum_width 185
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Draw borders around graphs
    draw_graph_borders no
    
    # Stippled borders?
    # stippled_borders 8
    
    # border margins
    # border_margin 2
    
    # border width
    # border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color red
    default_outline_color green
    
    # 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 12
    gap_y 12
    
    # 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
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    # variable is given either in format $variable or in ${variable}
    
    # stuff after 'TEXT' will be formatted on screen
    
    
    TEXT
    ${color #88ECE0}SYSTEM ${hr 2}$color
     $nodename   $sysname 
     $kernel  on $machine 
    ${color #88ECE0}CPU ${hr 2}$color
     Current Speed:   ${freq}MHz   
     Load:${alignr}${loadavg}
     Uptime:${alignr}${uptime}
     ${color}Core 1 Usage:$color ${alignc} ${cpu cpu1}% ${color #EEEEEE}${cpubar cpu1}
     ${color}Core 2 Usage:$color ${alignc} ${cpu cpu2}% ${color #EEEEEE}${cpubar cpu2}
     ${cpugraph 000000 FFFF00}
     CPU                ${alignr}CPU%     MEM%
     ${top name 1}${alignr}${top cpu 1}    ${top mem 1}
     ${top name 2}${alignr}${top cpu 2}    ${top mem 2}
     ${top name 3}${alignr}${top cpu 3}    ${top mem 3}
     
     MEM              ${alignr}CPU%     MEM%
     ${top_mem name 1}${alignr}${top_mem cpu 1}    ${top_mem mem 1}
     ${top_mem name 2}${alignr}${top_mem cpu 2}    ${top_mem mem 2}
     ${top_mem name 3}${alignr}${top_mem cpu 3}    ${top_mem mem 3}
    
    ${color #88ECE0}MEMORY / DISK ${hr 2}$color
     RAM:   $mem/$memmax - ${alignr}$memperc%
     ${color #EEEEEE}${membar 6}$color
     ROOT:  ${fs_used /}/${fs_size /}${alignr} -   ${fs_used_perc /}%   
     ${color #EEEEEE}${fs_bar 6 /}$color 
     ${color}DiskI/O:${color}${diskio} 
     ${diskiograph 000000 FFCC33}
    ${color #88ECE0}NETWORK ${hr 2}$color
     Wireless ip:$alignr${addr eth1}
     Signal Strength:$alignr${linkstatus  eth1}
     Speed:${alignr}${execi 20 /home/john/conky/.conkyrc_eth1} Mbits/sec
     Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed eth1} k/s
     ${downspeedgraph eth1 25,93 000000 ff0000} ${alignr}${upspeedgraph eth1 
    25,92 000000 00ff00}$color
     Total: ${totaldown eth1} ${alignr}Total: ${totalup eth1}
     Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
     61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    
    ${color #88ECE0}LOCAL WEATHER: ${hr 2}
    ${color}${execi 1800 /home/john/conky/weather/weather.sh 85008}
    Attached Images Attached Images
    sudo: The original Jedi mind trick...

  9. #1699
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Derspankster View Post
    Here's my conkyrc file. I'm running a K8 board and can't seem to get the CPU temperature right. I get this weird "A" symbol after the temp reading. haven't been able to get rid of it. Any suggestions?
    Change:
    Code:
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    to:
    Code:
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    Try that and see.

  10. #1700
    Join Date
    Oct 2005
    Location
    Scotland
    Beans
    40
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Post your .conkyrc files w/ screenshots

    My current conky config.

    (most of this was adapted from this page - http://howto.wikia.com/wiki/Howto_ad..._feed_to_Conky )

    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 desktop
    
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
    
    
    
    #borders
    
    draw_borders no
    
    border_margin 1
    
    
    
    #shades
    
    draw_shades no
    
    
    
    #position
    
    gap_x 20
    
    gap_y 50
    
    alignment top_right
    
    
    
    #behaviour
    
    update_interval 1
    
    
    
    #colour
    
    default_color  8f8f8f
    
    #default_shade_color 000000
    
    own_window_colour 262626
    
    
    
    #font
    
    use_xft yes
    
    xftfont bauhaus:pixelsize=10
    
    
    
    #to prevent window from moving
    
    
    
    
    
    TEXT
    ${color orange}Boing Boing ${hr 2}$color 
    ${color 000000}${execi 300 ~/.scripts/boingboing.pl}${color}
    
    ${color orange}Ars Technica ${hr 2}$color 
    ${color 000000}${execi 300 ~/.scripts/arstech.pl}${color}
    
    ${color orange}Slashdot ${hr 2}$color 
    ${color 000000}${execi 300 ~/.scripts/slashdot.pl}${color}
    
    ${color orange}Lifehacker ${hr 2}$color 
    ${color 000000}${execi 300 ~/.scripts/lifehacker.pl}${color}
    
    ${color orange}The Daily WTF ${hr 2}$color 
    ${color 000000}${execi 300 ~/.scripts/wtf.pl}${color}
    
    ${color orange}Status${hr 2}$color
    ${color 000000}Cpu: ${color}${color red}${font}${cpu}% ${color}
    ${color 000000}Mem: ${color}${color red}${font}${mem} ${color}
    ${color 000000}Up: ${color}${color red}${font}${uptime_short}${color}
    ${color 000000}Net Down: ${color} ${color red}${font}${downspeed eth0} Kb/s ${color}${color 000000} ${totaldown eth0} downloaded${color}
    ${color 000000}Net Up: ${color}${color red}${upspeed eth0} Kb/s ${color}${color 000000} ${totalup eth0} uploaded${color}
    ${color 000000}Root: ${color}${color red}${font}${fs_free /}${color}
    ${color 000000}Gmail: ${color}${color red}${execi 1 ~/.config/gmail.sh} New Messages${color}
    It uses different perl files for each rss feed. the only change in each file is the URI for each feed.

    Code:
    #!/usr/bin/perl -w
    
    ############################
    # Creator: Jeff Israel
    #
    # Script:	./simple-rss-reader-v3.pl
    # Version: 	3.001
    #
    # Coded for for Wikihowto http://howto.wikia.com
    #
    # Description: 	This code downloads an RSS feed, 
    # 		extracts the <title> lines,
    # 		cleans them up lines,
    # 		prints the pretty lines
    # 		exits on max-lines
    # Usage:
    # .conkyrc: ${execi [time] /path/to/script/simple-rss-reader-v3.pl}
    #
    # Usage Example
    # ${execi 300 /path/to/script/simple-rss-reader-v3.pl}
    #
    
    use LWP::Simple;
    
    
    ############################
    # Configs
    #
    
    #$rssPage = "http://tvrss.net/feed/combined/";
    $rssPage = "http://feeds.boingboing.net/boingboing/iBag";
    $numLines = 10;
    $maxTitleLenght = 50;
    
    ###########################
    # Code
    #
    
    # Downloading RSS feed
    my $pageCont = get($rssPage);
    
    # Spliting the page to lines
    @pageLines = split(/\n/,$pageCont);
    
    # Parse each line, strip no-fun data, exit on max-lines
    $numLines--; #correcting count for loop
    $x = 0;
    foreach $line (@pageLines) {
    	if($line =~ /\<title\>/){ # Is a good line?
    		#print "- $line\n";
    		$lineCat = $line;
    		$lineCat =~ s/.*\<title\>//;
    		$lineCat =~ s/\<\/title\>.*//;
    		$lineCat =~ s/\[.{4,25}\]$//; # strip no-fun data ( [from blaaa] )
    		$lineCat = substr($lineCat, 0, $maxTitleLenght);
    		print "- $lineCat \n";
    		$x++;
    	}
    	if($x > $numLines) {
    		last; #exit on max-lines
    	}
    	
    }
    
    #print $page;
    #print "\nBy Bye\n";


    (click for fullsize)

Page 170 of 2348 FirstFirst ... 701201601681691701711721802202706701170 ... 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
  •