Page 7 of 2348 FirstFirst ... 5678917571075071007 ... LastLast
Results 61 to 70 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #61
    Join Date
    Jan 2006
    Beans
    17
    Distro
    Ubuntu Breezy 5.10

    Re: Post you're .conkyrc files w/ screenshots

    I went a bit over the top with external scripts and such, but they allow me to highlight stuff.

    I looked at using xft, but then the cpugraph looks out of place and conky eats up a whole 2% if my cpu (I wouldn't normally care, but conky shows itself eating up so much )

    ~/.conkyrc
    Code:
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_spacer yes
    use_xft no
    update_interval 1.0
    draw_shades no 
    draw_borders no 
    draw_graph_borders no
    draw_outline no
    uppercase no
    stippled_borders 3
    border_margin 9
    border_width 10
    default_color 676f9d
    default_shade_color grey
    alignment top_left
    #gap_y 25 
    use_spacer no
    TEXT
    $nodename	       	${time %Y-%m-%e %r}
    $color$stippled_hr
    ${color #C2C3F3}Load: $color${loadavg}
    ${color #C2C3F3}CPU: $color${freq}MHz ${color #C2C3F3}Temp: $color${acpitemp}
    ${color #C2C3F3}Battery: $color${battery}
    $cpubar
    ${cpugraph ffffff 676f9d}
    $color$stippled_hr
    Processes:$color $processes  Running: $running_processes
    
    Name              PID     CPU%   MEM%
    ${color #C2C3F3}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    $color${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    
    Mem usage
    ${color #C2C3F3}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    $color${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    
    ${color #C2C3F3}RAM:   $color$memperc% ${membar 6}
    ${color #C2C3F3}Swap:  $color$swapperc% ${swapbar 6}
    
    ${color #C2C3F3}RAM: $color$mem ${color #C2C3F3}Swap: $color$swap
    $color$stippled_hr
    ${color #C2C3F3}hda1:  $color${fs_free_perc /media/hda1}%   ${fs_bar 6 /media/hda1}$color
    $color$stippled_hr
    eth1
      ${color #C2C3F3}ip: $color${addr eth1}
      ${color #C2C3F3}essid: $color${exec iwconfig eth1 | sed 's/  /\n/g' | grep ESSID | sed 's/ESSID:"//'| sed 's/"//'}
      ${color #C2C3F3}link status: $color${exec iwconfig eth1 | sed 's/  /\n/g' | grep Quality | sed 's/Link Quality://' | sed 's/Link Quality=//' | sed 's/ //g' } ${color #C2C3F3}s: $color${exec iwconfig eth1 | sed 's/  /\n/g' | grep Signal | sed 's/Signal level=//' | sed 's/Signal level://' } 
    $color$stippled_hr
    ${texeci 500 pymetar CYUL > /tmp/.weather}${color #C2C3F3}Temperature:$color${exec grep Temp /tmp/.weather | sed 's/Temperature://'| sed 's/.0 C/ C/'}  ${color #C2C3F3}Wind:$color${exec grep speed /tmp/.weather | sed 's/Wind speed://' }
    ${color #C2C3F3}Weather: $color${exec grep Weather /tmp/.weather | sed s/'Weather: //' | sed 1d | ~/dev/wordwrap -w 30 | tr [:upper:] [:lower:]}
    $color$stippled_hr
    ${texeci 60 python ~/.gmail.py | ~/dev/conkyhelper.rb}${color #C2C3F3}Mail Messages: $color${if_existing /tmp/.gmailnew}${color #FF2222}$endif${exec cat /tmp/.gmailcount}
    ${texeci 60 ~/dev/conkyblog}${color #C2C3F3}Bloglines: $color${if_existing /tmp/.blognew}${color #FF2222}$endif${exec cat /tmp/.blogcount}
    $color$stippled_hr
    ${texeci 5 cat ~/todo | ~/dev/wordwrap -w 40}
    $color$stippled_hr
    ${texeci 120 curl http://brohan.ca/random.php|sed 's/<br>/\n/g'|sed 's/&lt;/</g'|sed 's/&gt;/>/g'|~/dev/wordwrap -w 40 > /tmp/.quote;cat /tmp/.quote}
    ~/dev/wordwrap
    Code:
    ##########################################################################
    # Shellscript:	wordwrap - wrap lines on word boundaries
    # Author     :	Heiner Steven <heiner.steven@odn.de>
    # Date       :	2001-12-10
    # Requires   :	
    # Category   :	Text Utilities
    # SCCS-Id.   :	@(#) wordwrap	1.4 04/09/24
    ##########################################################################
    # Description
    #	A very simple text formatting program. The input is read
    #	word by word.  All words are joined using a space (ASCII
    #	32) character. If "-j" was specified, each line is
    #	filled up to the maximum line length, or the next empty
    #	line before it is printed. Each continued line can be
    #	offset by a number of blanks.
    #
    # Note
    #    o	Leading whitespace is ignored
    #    o	An AWK program actually formats the input. It is written in
    #	a way to be portable to a wide range of AWK dialects.
    #    o  thanks for Samus-Aran for suggesting the "-l" option
    #
    # Caveats
    #    o	Should have an option for keeping whitespace inbetween words
    ##########################################################################
    
    PN=`basename "$0"`			# Program name
    VER='1.4'
    
    # Uncomment the following line to disable the search for the fastest AWK
    #: ${AWK:=awk}
    
    DEFWIDTH=72				# Default line length
    DEFOFFSET=0				# Default continued line offset
    DEFMARGIN=0				# Default left margin
    
    Usage () {
        echo >&2 "$PN - wrap lines on word boundaries, $VER
    usage: $PN [-j] [-w width] [-o offset] [-l margin] [file ...]
        -j  join multiple lines up to the maximum line length
        -l  left margin (default $DEFMARGIN)
        -o  offset of continued lines (default $DEFOFFSET)
        -w  max. line width (default is $DEFWIDTH characters)"
        exit 1
    }
    
    Msg () {
        for MsgLine
        do echo "$PN: $MsgLine" >&2
        done
    }
    
    Fatal () { Msg "$@"; exit 1; }
    
    ##########################################################################
    # searchprog - search program using search PATH
    # usage: searchprog program
    ##########################################################################
    
    searchprog () {
        _search=$1; shift
    
        for _dir in `echo "$PATH" | sed "s/^:/.:/;s/:\$/:./;s/::/:.:/g;s/:/ /g"`
        do
            [ -x "$_dir/$_search" ] || continue
            echo "$_dir/$_search"
            return 0
        done
    
        return 1
    }
    
    # isint - is argument a valid integer number?
    isint () {
        case "$1" in
        	*[!0-9]*)   return 1;;
    	*)	    return 0;;
        esac
    }
    
    set -- `getopt :hjl:o:w: "$@"` || Usage
    [ $# -lt 1 ] && Usage			# "getopt" detected an error
    
    # Search for an AWK implementation, prefer the fastest one
    : ${AWK:=`searchprog mawk || searchprog gawk || searchprog nawk || echo awk`}
    
    LineWidth=
    JoinLines=false
    LeftMargin=
    while [ $# -gt 0 ]
    do
        case "$1" in
    	-j)	JoinLines=true;;
    	-l)	isint "$2" || Fatal "invalid margin: $2"
    		LeftMargin=$2; shift;;
    	-o)	isint "$2" || Fatal "invalid offset: $2"
    		LineOffset=$2; shift;;
    	-w)	isint "$2" || Fatal "invalid line width: $2"
    		LineWidth=$2; shift;;
    	--)	shift; break;;
    	-h)	Usage;;
    	-*)	Usage;;
    	*)	break;;			# First file name
        esac
        shift
    done
    
    : ${LineWidth:=$DEFWIDTH}
    : ${LineOffset:=$DEFOFFSET}
    : ${LeftMargin:=$DEFMARGIN}
    
    $AWK '
        BEGIN {
    	WORDSEP = " "
    	WORDSEPLEN = length (WORDSEP)
    	maxwidth = '"$LineWidth"'
    	if ( "'"$JoinLines"'" == "true" ) joinlines = 1; else joinlines = 0;
    	line = ""
    	offset = '"$LineOffset"'
    	margin = '"$LeftMargin"'
    	if ( offset >= 1 ) indent = sprintf ("%*s", offset, " ")
    	if ( margin >= 1 ) leftmargin = sprintf ("%*s", margin, "")
        }
        {
        	# Special handling: preserve leading whitespace characters
    	if ( line == "" ) {
    	    for ( i=1; i<length($0); ++i ) {
    		c = substr ($0, i, 1)
    		if ( c != " " && c != "	" ) break
    	    }
    	    if ( i > 1 ) line = substr ($0, 1, i-1)
    	}
    
    	for ( i=1; i<=NF; ++i ) {
    	    newlen = length (line) + length ($i)
    	    if ( line != "" ) newlen += WORDSEPLEN
    	    if ( newlen > maxwidth ) {
    	        print leftmargin line
    		line = indent $i
    	    } else {
    		if ( line != "" ) line = line WORDSEP
    		line = line $i
    	    }
    	}
    
    	# No joining of lines: print the current line immediately
    
    	if ( !joinlines || NF == 0 ) {
    	    print leftmargin line
    	    if ( line != "" && NF == 0 ) print ""	# preserve empty line
    	    line = ""
    	}
        }
        END {
    	if ( line != "" ) {
    	    print leftmargin line
    	}
        }
    ' "$@"
    gmail.py
    Code:
    import feedparser
    from sys import stdout
    d=feedparser.parse("https://username:password@gmail.google.com/gmail/feed/atom")
    stdout.write(str(len(d['entries'])))
    ~/dev/conkyhelper.rb
    Code:
    #!/usr/bin/ruby
    require 'fileutils'
    num = STDIN.read.to_i
    if num > 0
    	outfile = File.new("/tmp/.gmailnew", "w")
    	outfile.puts(num)
    	outfile.close
    else
    	FileUtils.rm_f('/tmp/.gmailnew')
    end
    countfile = File.new("/tmp/.gmailcount", "w")
    countfile.puts(num)
    countfile.close
    ~/dev/conkyblog
    Code:
    #!/bin/bash
    curl 'http://rpc.bloglines.com/update?user=EMAIL_ADDRESS&ver=1' | sed 's/|//g' | ~/dev/conkybloglines.rb
    ~/dev/conkybloglines.rb
    Code:
    #!/usr/bin/ruby
    require 'fileutils'
    num = STDIN.read.to_i
    if num > 0
            outfile = File.new("/tmp/.blognew", "w")
            outfile.puts(num)
            outfile.close
    else
            FileUtils.rm_f('/tmp/.blognew')
    end
    countfile = File.new("/tmp/.blogcount", "w")
    countfile.puts(num)
    countfile.close
    Attached Images Attached Images

  2. #62
    Join Date
    Aug 2005
    Location
    Ohio
    Beans
    60
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Post you're .conkyrc files w/ screenshots

    Here's mine. I patched it together from a few I've read and tweaked the temps to get the sensors to display right:

    Code:
    # conky configuration
    
    # 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
    #xftfont Terminus:size=8
    xftfont Arial:size=9
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # 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
    own_window_hints undecorated,below,skip_taskbar,sticky
    #own_window_hints undecorated,below,sticky
    background yes
    own_window_colour blue
    own_window_transparent yes
    #own_window_type desktop
    
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 50 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 3
    
    # border margins
    border_margin 9
    
    # border width
    border_width 10
    
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 10
    gap_y 35
    
    # 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 yes
    #Note: doesn't work in conky 1.2 =(
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    
    # Possible variables to be used:
    #
    #      Variable         Arguments                  Description                
    
    # 	addr              (interface)   IP address for an interface
    # 	acpiacadapter                   ACPI ac adapter state.                   
    # 	acpifan                         ACPI fan state                           
    # 	acpitemp                        ACPI temperature.                        
    # 	adt746xcpu                      CPU temperature from therm_adt746x       
    # 	adt746xfan                      Fan speed from therm_adt746x             
    # 	alignr            (num)         Right-justify text, with space of N
    # 	alignc                          Align text to centre
    # 	battery           (num)         Remaining capasity in ACPI or APM        
    # 					battery. ACPI battery number can be      
    # 					given as argument (default is BAT0).     
    # 	buffers                         Amount of memory buffered                
    # 	cached                          Amount of memory cached                  
    # 	color             (color)       Change drawing color to color            
    # 	cpu                             CPU usage in percents                    
    # 	cpubar            (height)      Bar that shows CPU usage, height is      
    # 					bar's height in pixels                 
    # 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
    # 					CPU usage graph, with optional colours in hex,
    # 					minus the #.
    # 	downspeed         net           Download speed in kilobytes              
    # 	downspeedf        net           Download speed in kilobytes with one     
    # 					decimal                                  
    # 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
    # 					Download speed graph, colours defined in
    # 					hex, minus the #.
    # 	exec              shell command Executes a shell command and displays    
    # 					the output in conky. warning: this      
    # 					takes a lot more resources than other    
    # 					variables. I'd recommend coding wanted   
    # 					behaviour in C and posting a patch :-).  
    # 	execbar           shell command Same as exec, except if the first value
    # 					return is a value between 0-100, it
    # 					will use that number for a bar.
    # 					The size for the bar is currently fixed,
    # 					but that may change in the future.
    # 	execgraph         shell command Same as execbar, but graphs values
    # 	execi             interval, shell command
    #  					Same as exec but with specific interval. 
    # 					Interval can't be less than              
    # 					update_interval in configuration.        
    #	font		  font		Specify a different font.  Only applies
    #					to one line.
    # 	fs_bar            (height), (fs)Bar that shows how much space is used on 
    # 					a file system. height is the height in   
    # 					pixels. fs is any file on that file      
    # 					system.                                  
    # 	fs_free           (fs)          Free space on a file system available    
    # 					for users.                               
    # 	fs_free_perc      (fs)          Free percentage of space on a file       
    # 					system available for users.              
    # 	fs_size           (fs)          File system size                         
    # 	fs_used           (fs)          File system used space                   
    # 	hr                (height)      Horizontal line, height is the height in 
    # 					pixels                                   
    # 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
    # 					may be omitted if you have only one I2C  
    # 					device. type is either in (or vol)       
    # 					meaning voltage, fan meaning fan or
    # 					temp/tempf (first in C, second in F)
    # 					meaning temperature. n is number of the  
    # 					sensor. See /sys/bus/i2c/devices/ on     
    # 					your local computer.                     
    # 	if_running        (process)     if PROCESS is running, display
    # 					everything if_running and the matching $endif
    # 	if_existing       (file)        if FILE exists, display everything between
    # 					if_existing and the matching $endif
    # 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
    # 					if_mounted and the matching $endif
    # 	else                            Text to show if any of the above are not true
    # 	kernel                          Kernel version                          
    # 	linkstatus        (interface)   Get the link status for wireless connections
    # 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
    # 					minute, 2 for past 5 minutes and 3 for   
    # 					past 15 minutes.                         
    # 	machine                         Machine, i686 for example                
    # 	mails                           Mail count in mail spool. You can use    
    # 					program like fetchmail to get mails from 
    # 					some server using your favourite         
    # 					protocol. See also new_mails.            
    # 	mem                             Amount of memory in use                  
    # 	membar            (height)      Bar that shows amount of memory in use   
    # 	memmax                          Total amount of memory                   
    # 	memperc                         Percentage of memory in use
    # 	
    # 	metar_ob_time
    # 	metar_temp
    # 	metar_tempf                     Temp in F
    # 	metar_windchill
    # 	metar_dew_point                 There are a bunch of these
    # 	metar_rh                        and they are self-explanatory
    # 	metar_windspeed
    # 	metar_winddir
    # 	metar_swinddir
    # 	metar_cloud
    # 	metar_u2d_time
    # 	
    # 	ml_upload_counter               total session upload in mb
    # 	ml_download_counter             total session download in mb
    # 	ml_nshared_files                number of shared files
    # 	ml_shared_counter               total session shared in mb, buggy
    # 					in some mldonkey versions
    # 	ml_tcp_upload_rate              tcp upload rate in kb/s
    # 	ml_tcp_download_rate            tcp download rate in kb/s
    # 	ml_udp_upload_rate              udp upload rate in kb/s
    # 	ml_udp_download_rate            udp download rate in kb/s
    # 	ml_ndownloaded_files            number of completed files
    # 	ml_ndownloading_files           number of downloading files
    # 	
    # 	mpd_artist			Artist in current MPD song
    # 					(must be enabled at compile)
    # 	mpd_album			Album in current MPD song
    # 	mpd_bar           (height)      Bar of mpd's progress
    # 	mpd_bitrate                     Bitrate of current song
    # 	mpd_status                      Playing, stopped, et cetera.
    # 	mpd_title			Title of current MPD song
    # 	mpd_vol				MPD's volume
    # 	mpd_elapsed                     Song's elapsed time
    # 	mpd_length                      Song's length
    # 	mpd_percent                     Percent of song's progress
    # 	new_mails                       Unread mail count in mail spool.         
    # 	nodename                        Hostname                                 
    # 	outlinecolor      (color)       Change outline color                     
    # 	pre_exec          shell command Executes a shell command one time before 
    # 					conky displays anything and puts output 
    # 					as text.                                 
    # 	processes                       Total processes (sleeping and running)   
    # 	running_processes               Running processes (not sleeping),        
    # 					requires Linux 2.6                       
    # 	shadecolor        (color)       Change shading color                     
    # 	stippled_hr       (space),      Stippled (dashed) horizontal line        
    # 			(height)        
    # 	swapbar           (height)      Bar that shows amount of swap in use     
    # 	swap                            Amount of swap in use                    
    # 	swapmax                         Total amount of swap                     
    # 	swapperc                        Percentage of swap in use                
    # 	sysname                         System name, Linux for example           
    # 	offset            pixels        Move text over by N pixels
    # 	tail              logfile, lines (interval)
    # 					Displays last N lines of supplied text
    # 					text file.  If interval is not supplied,
    # 					Conky assumes 2x Conky's interval.
    # 					Max of 30 lines.
    # 					Max of 30 lines can be displayed.
    # 	time              (format)      Local time, see man strftime to get more 
    # 					information about format                 
    # 	totaldown         net           Total download, overflows at 4 GB on     
    # 					Linux with 32-bit arch and there doesn't 
    # 					seem to be a way to know how many times  
    # 					it has already done that before conky   
    # 					has started.                            
    # 	top               type, num     This takes arguments in the form:
    # 					top <name> <number>
    # 					Basically, processes are ranked from 
    # 					highest to lowest in terms of cpu
    # 					usage, which is what <num> represents.
    # 					The types are: "name", "pid", "cpu", and
    # 					"mem".
    # 					There can be a max of 10 processes listed.
    # 	top_mem           type, num     Same as top, except sorted by mem usage
    # 					instead of cpu
    # 	totalup           net           Total upload, this one too, may overflow 
    # 	updates                         Number of updates (for debugging)        
    # 	upspeed           net           Upload speed in kilobytes                
    # 	upspeedf          net           Upload speed in kilobytes with one       
    # 					decimal                                  
    # 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
    # 					Upload speed graph, colours defined in
    # 					hex, minus the #.
    # 	uptime                          Uptime                                   
    # 	uptime_short                    Uptime in a shorter format               
    # 	
    # 	seti_prog                       Seti@home current progress
    # 	seti_progbar      (height)      Seti@home current progress bar
    # 	seti_credit                     Seti@hoome total user credit
    
    
    # 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 }$nodename  ${hr}
    ${color #9fb6cd}${time %a, } $alignr${color }${time %e %B %G}
    ${color #9fb6cd}${time %Z,    }$alignr${color }${time %H:%M:%S}
    ${color #9fb6cd}UpTime: $alignr${color }$uptime
    ${color #9fb6cd}Kernel:$alignr${color }$kernel
    ${color #9fb6cd}ATi:${color }$alignr${execi 3600 fglrxinfo | tail -n2 | tail -c19}
    ${color #9fb6cd}CPU:${color } $alignr$cpu% ${i2c 1-002d temp 2} C 
    ${cpugraph 20,130 000000 ffffff}
    ${color #9fb6cd}Load: $alignr${color }$loadavg 
    ${color #9fb6cd}Processes: $alignr${color }$processes
    ${color #9fb6cd}Running:   $alignr${color }$running_processes
    
    ${color #9fb6cd}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 #9fb6cd}Highest MEM:
    ${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 #9fb6cd}MEM:  $alignr${color } $memperc% $mem/$memmax
    ${membar 3,100}
    ${color #9fb6cd}SWAP: $alignr${color }$swapperc% $swap/$swapmax
    ${swapbar 3,100}
    
    ${color #9fb6cd}ROOT:    $alignr${color }${fs_free /}/${fs_size /}
    ${fs_bar 3,100 /}
    ${color #9fb6cd}PHAT32:  $alignr${color }${fs_free /media/phat32}/${fs_size /media/phat32}
    ${fs_bar 3,100 /media/phat32}
    
    ${color #9fb6cd}NET (${color}${addr eth1}${color #9fb6cd}): 
    ${color}Up: ${color }$alignr${upspeed eth1} kB/s
    ${upspeedgraph eth1 20,130 000000 ffffff}
    ${color}Total: $alignr${totalup eth1}
    
    ${color}Down: ${color }$alignr${downspeed eth1}kB/s${color}
    ${downspeedgraph eth1 20,130 000000 ffffff}
    ${color}Total: $alignr${totaldown eth1}
    Attached Images Attached Images
    Main Rig: Athlon XP 2800+ (Overclocked) | 512MB Corsair DDR400 Dual Channel | Asus A7N8X Deluxe | ATi Radeon 9700 Pro
    Linux Registered User - #423753

  3. #63
    Join Date
    Aug 2005
    Beans
    462

    Re: Post you're .conkyrc files w/ screenshots

    here's mine below.



    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_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft no
    
    # Update interval in seconds
    update_interval 2.0
    
    # Minimum size of text area
    # minimum_size 250 5
    
    # Draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline yes # amplifies text if yes
    draw_borders no
    font arial
    
    
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 3
    
    # border margins
    border_margin 9
    
    # border width
    border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey
    
    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 10
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    $color
    ${color #88ECE0}SYSTEM ${hr 2}$color
     $nodename $sysname $kernel on $machine 
    ${color #88ECE0}CPU ${hr 2}$color
     ${freq}MHz   Load: ${loadavg}   Uptime: ${uptime}
     ${color}Core 1 Usage:$color ${alignc} ${cpu cpu1}% ${color}${cpubar cpu1}
     ${color}Core 2 Usage:$color ${alignc} ${cpu cpu2}% ${color}${cpubar cpu2}
     ${cpugraph 000000 DFEC88}
     NAME             PID       CPU%      MEM%
     ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
     ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
     ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
     ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    
    ${color #88ECE0}MEMORY / DISK ${hr 2}$color
     RAM:   $memperc%   ${membar 6}$color
     Swap:  $swapperc%   ${swapbar 6}$color
    
     Root:  ${fs_free_perc /}%   ${fs_bar 6 /}$color 
     Home:  ${fs_free_perc /home}%   ${fs_bar 6 /home}$color
    
     ${color}DiskI/O:${color}${diskio} 
     ${diskiograph 000000 88D5EC}
    
    ${color #88ECE0}NETWORK (${addr eth0}) ${hr 2}$color
     Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
     ${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0 
    25,140 000000 00ff00}$color
     Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
     Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
     61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    ${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
    ${color #88ECE0}WEATHER ${hr 2}$color
    ${execi 1800 /home/iceni/scripts/weather.sh UKXX0085}
    ${color #88ECE0}Newsforge ${hr 2}$color
    ${execi 300 /home/iceni/scripts/conky-rss.sh}
    ${color #88ECE0}SecurityFocus News ${hr 2}$color
    ${execi 300 /home/iceni/scripts/conky-rss2.sh}
    ${color #88ECE0}Linux-Tutorial ${hr 2}$color
    ${execi 300 /home/iceni/scripts/conky-rss3.sh}
    ${color #88ECE0}UK News ${hr 2}$color
    ${execi 300 /home/iceni/scripts/conky-rss4.sh}
    i'm going to move uptime from CPU to System conky can drive you crazy, or at least take up alot of time!
    Last edited by ice60; December 20th, 2006 at 02:38 AM.
    Thanks to the forums staff for your dedication and hard work
    (the admins changed my sig to that lol )

  4. #64
    Join Date
    Aug 2005
    Beans
    462

    Re: Post you're .conkyrc files w/ screenshots

    Quote Originally Posted by Anonii View Post
    My conkyrc:
    http://www.ubuntuforums.org/attachme...6&d=1161470797

    if you need to remember the import command, you can just 'Ctrl-r' it and start writting import to see when you've used import in the past. you can keep pressing 'Ctrl-r' to scroll through all the times you've used it.

    edit, just press tab to select it
    Last edited by ice60; December 20th, 2006 at 05:05 PM.
    Thanks to the forums staff for your dedication and hard work
    (the admins changed my sig to that lol )

  5. #65
    Join Date
    Mar 2006
    Location
    Lisbon, Portugal
    Beans
    1,909

    Re: Post you're .conkyrc files w/ screenshots



    I haven't payed much attention to the colors yet because i'm trying to figure out how to keep the text of the top functions (memory, pid etc) aligned..i posted it in a thread but still no answer here's my file

    Code:
    # maintain spacing between certain elements
    use_spacer yes
    
    # set to yes if you want tormo to be forked in the background
    #background yes
    
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Vera-7
    #xftfont Andale Mono-9
    #xftfont Clean-8
    #xftfont cubicfive10:pixelsize=8
    #xftfont squaredance10:pixelsize=14
    #xftfont swf!t_v02:pixelsize=10
    
    # Text alpha when using Xft
    xftalpha 1
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 5.0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    own_window_transparent yes
    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 260 5
    maximum_width 260
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no # amplifies text
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 3
    
    # border margins
    border_margin 9
    
    # border width
    border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey90
    default_shade_color black
    default_outline_color DarkGrey
    
    # 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 24
    gap_y 24
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    
    
    ${color #ffcb48}$nodename$color      ${color #ffcb48}$sysname $kernel on $machine$color
    ${color #ffffff}Sky is the limit                                      Uptime:$uptime$color
    ${color #ffffff}PROCESSING$color
    ${color #98c2c7}CPU:$color     $cpu% 
    ${color #98c2c7}$cpubar
    ${color #98c2c7}${cpugraph 78af78 a3a3a3}
    
    ${color #98c2c7}NAME             PID       CPU%      MEM%
    ${color #e5e5e5}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${color #c4c4c4}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${color #a3a3a3}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${color #828282}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    
    ${color #ffcb48}DATA$color
    ${color #98c2c7}RAM:$color     $memperc%         ${color #828282${membar 6}${color #828282}
    ${color #98c2c7}SWAP:$color     $swapperc%         ${color #828282${swapbar 6}${color #828282}
    
    ${color #ffcb48}FILESYSTEM
    ${color #98c2c7}root /:$color       ${fs_free_perc /}%  $fs_free  ${color #98c2c7}${fs_bar 6 /}$color
    
    ${color #98c2c7}Upload:$color  ${upspeed eth0}kb/s${color #98c2c7} 
    Download:$color  ${downspeed eth0}kb/s
    
    ${execi 60 /usr/bin/pymetar LPPT}
    Last edited by raul_; December 21st, 2006 at 12:58 AM.
    My blog | Arch User | Linux user #439142 | Ubuntu user #10974
    "God is real unless you declare it as integer"

  6. #66
    Join Date
    Sep 2006
    Location
    Edmonton, AB, Canada
    Beans
    1,043
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post you're .conkyrc files w/ screenshots

    Alrighty, I finally got it mostly the way I want; I still end up hunting for new things that I might want to add; but no big deal.

    The only thing I gotta say, is WOW is it addictive to play around with these configurations and settings, it's great! Pretty simple layout, I took the base from one of the posts in here, modified some of the stuff that I wanted displayed, colors, etc, but this works for me.

    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.
    #
    # The additions to this config require curl and xsltproc be installed
    
    # 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-*-*-*-*-*-*-*
    
    # 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 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 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 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
    
    # Max window size
    maximum_width 300
    
    # 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 0
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color white
    
    # 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 5
    
    # 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
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
    #min_port_monitors 16
    
    # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
    #min_port_monitor_connections 256
    
    # none, xmms, bmp, audacious, infopipe (default is none)
    #xmms_player none
    
    # 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
    ${color #246eb5}SYSTEM ${hr 2}$color
    ${time %e %B %G}                   ${alignr}${time %H:%M}
    ${color #246eb5}Core:$color   ${execi 1000 cat /proc/cpuinfo | grep 'model name' | cut -c 21-31} 2800+ 1.6GHz
    ${color #246eb5}Host:$color   $nodename 
    ${color #246eb5}Kernel:$color $kernel 
    ${color #246eb5}Uptime:$color $uptime
    ${color #246eb5}POWER ${hr 2}$color
    ${color #246eb5}Adapter Stat:$color  ${acpiacadapter}	${color #246eb5}${alignr}Battery Info:$color ${battery}
    ${color #246eb5}CPU ${hr 2}$color
    ${color #246eb5}Speed:$color ${freq}MHz  ${color #246eb5}Load:$color ${loadavg} ${color #246eb5}${alignr}CPU Temp:$color ${acpitemp}
    $cpubar
    ${cpugraph 000000 ffffff}
    ${color #246eb5}NAME             PID       CPU%      MEM%$color
    ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    ${color #246eb5}MEMORY / DISK ${hr 2}$color
    RAM:   $memperc%   ${membar 6}$color
           $mem of $memmax
    Swap:  $swapperc%   ${swapbar 6}$color
           $swap of $swapmax
    HDA:   ${fs_free_perc /}%   ${fs_bar 6 /}$color 
    ${color #246eb5}Total:$color ${fs_used /}   ${color #246eb5}${alignc}Free:$color ${fs_free /}   ${color #246eb5}${alignr}Used:$color ${fs_used /}
    ${color #246eb5}NETWORK (${addr ppp0}) ${hr 2}$color
    ${downspeedgraph ppp0 25,140 000000 ff0000} ${alignr}${upspeedgraph ppp0 
    25,140 000000 00ff00}$color
    Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
    61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    ${color #246eb5}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 #246eb5}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 1} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
     ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${color #246eb5}SYSTEM LOGS ${hr 2}$color
    ${color #246eb5}Messages:$color
    ${execi 10 /usr/bin/tail -n 4 /var/log/messages | cut -c 27-}
    ${color #246eb5}Security:$color
    ${execi 10 /usr/bin/tail -n 5 /var/log/auth.log | cut -c 27-}
    Attached Images Attached Images

  7. #67
    Join Date
    Jan 2005
    Location
    Windsor, CT
    Beans
    36
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Here's my first pass at setting it up...



    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 10x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Use Xft?
    use_xft no
    
    # 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 no
    
    # 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 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 280 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders yes
    
    # Draw borders around graphs
    draw_graph_borders yes
    
    # Stippled borders?
    stippled_borders 1
    
    # border margins
    border_margin 4
    
    # border width
    border_width 0
    
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    
    # 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
    #font Sans
    
    # 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
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
    #min_port_monitors 16
    
    # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
    #min_port_monitor_connections 256
    
    # none, xmms, bmp, audacious, infopipe (default is none)
    #xmms_player none
    
    # 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
    ${alignc}$nodename | $kernel
    $stippled_hr
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
    ${color lightgrey}CPU Temp:${color #ffffff} ${acpitempf}F ${color lightgrey}Usage:${color #ffffff} $cpu% ${cpubar}
    ${color white}${cpugraph ffffff ff9900}
    ${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:${alignc}${color #ff9900}${addr eth1}
    ${color lightgrey}Down: ${color #ff9900}${downspeedf eth1} ${color white}k/s ${alignr}${color lightgrey}Up: ${color #0000ff}${upspeedf eth1} ${color white}k/s
    ${color white}${downspeedgraph eth1 32,175 ffffff ff9900} ${color white}${upspeedgraph eth1 32,175 ffffff 0000ff}
    $color$stippled_hr
    ${color lightgrey}File Systems:
     / $color${fs_used /}/${fs_size /} ${fs_bar /}
    $color$stippled_hr
    ${color lightgrey}Name              PID     CPU%   MEM%
    ${color #ff9900}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    $stippled_hr
    ${color lightgrey}Mem usage
    ${color #ff9900}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${color}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
    $stippled_hr
    ${color lightgrey}Netstat
    ${color}${execi 12 netstat -e -p -t | grep --max-count=9 ESTABLISHED | cut -c45-68,80-86,102-140}

  8. #68
    Join Date
    Nov 2006
    Beans
    23

    Re: Post you're .conkyrc files w/ screenshots

    Quote Originally Posted by NeoLithium View Post
    Alrighty, I finally got it mostly the way I want; I still end up hunting for new things that I might want to add; but no big deal.

    The only thing I gotta say, is WOW is it addictive to play around with these configurations and settings, it's great! Pretty simple layout, I took the base from one of the posts in here, modified some of the stuff that I wanted displayed, colors, etc, but this works for me.

    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.
    #
    # The additions to this config require curl and xsltproc be installed
    
    # 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-*-*-*-*-*-*-*
    
    # 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 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 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 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
    
    # Max window size
    maximum_width 300
    
    # 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 0
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color white
    
    # 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 5
    
    # 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
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
    #min_port_monitors 16
    
    # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
    #min_port_monitor_connections 256
    
    # none, xmms, bmp, audacious, infopipe (default is none)
    #xmms_player none
    
    # 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
    ${color #246eb5}SYSTEM ${hr 2}$color
    ${time %e %B %G}                   ${alignr}${time %H:%M}
    ${color #246eb5}Core:$color   ${execi 1000 cat /proc/cpuinfo | grep 'model name' | cut -c 21-31} 2800+ 1.6GHz
    ${color #246eb5}Host:$color   $nodename 
    ${color #246eb5}Kernel:$color $kernel 
    ${color #246eb5}Uptime:$color $uptime
    ${color #246eb5}POWER ${hr 2}$color
    ${color #246eb5}Adapter Stat:$color  ${acpiacadapter}	${color #246eb5}${alignr}Battery Info:$color ${battery}
    ${color #246eb5}CPU ${hr 2}$color
    ${color #246eb5}Speed:$color ${freq}MHz  ${color #246eb5}Load:$color ${loadavg} ${color #246eb5}${alignr}CPU Temp:$color ${acpitemp}
    $cpubar
    ${cpugraph 000000 ffffff}
    ${color #246eb5}NAME             PID       CPU%      MEM%$color
    ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    ${color #246eb5}MEMORY / DISK ${hr 2}$color
    RAM:   $memperc%   ${membar 6}$color
           $mem of $memmax
    Swap:  $swapperc%   ${swapbar 6}$color
           $swap of $swapmax
    HDA:   ${fs_free_perc /}%   ${fs_bar 6 /}$color 
    ${color #246eb5}Total:$color ${fs_used /}   ${color #246eb5}${alignc}Free:$color ${fs_free /}   ${color #246eb5}${alignr}Used:$color ${fs_used /}
    ${color #246eb5}NETWORK (${addr ppp0}) ${hr 2}$color
    ${downspeedgraph ppp0 25,140 000000 ff0000} ${alignr}${upspeedgraph ppp0 
    25,140 000000 00ff00}$color
    Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
    61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    ${color #246eb5}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 #246eb5}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 1} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
     ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${color #246eb5}SYSTEM LOGS ${hr 2}$color
    ${color #246eb5}Messages:$color
    ${execi 10 /usr/bin/tail -n 4 /var/log/messages | cut -c 27-}
    ${color #246eb5}Security:$color
    ${execi 10 /usr/bin/tail -n 5 /var/log/auth.log | cut -c 27-}
    How can I change the output Colour from white to red ?

  9. #69
    Join Date
    Aug 2005
    Beans
    462

    Re: Post you're .conkyrc files w/ screenshots

    Quote Originally Posted by raul_ View Post


    I haven't payed much attention to the colors yet because i'm trying to figure out how to keep the text of the top functions (memory, pid etc) aligned..i posted it in a thread but still no answer here's my file

    Code:
    # maintain spacing between certain elements
    use_spacer yes
    
    # set to yes if you want tormo to be forked in the background
    #background yes
    
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Vera-7
    #xftfont Andale Mono-9
    #xftfont Clean-8
    #xftfont cubicfive10:pixelsize=8
    #xftfont squaredance10:pixelsize=14
    #xftfont swf!t_v02:pixelsize=10
    
    # Text alpha when using Xft
    xftalpha 1
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 5.0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    own_window_transparent yes
    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 260 5
    maximum_width 260
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no # amplifies text
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 3
    
    # border margins
    border_margin 9
    
    # border width
    border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey90
    default_shade_color black
    default_outline_color DarkGrey
    
    # 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 24
    gap_y 24
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    
    
    ${color #ffcb48}$nodename$color      ${color #ffcb48}$sysname $kernel on $machine$color
    ${color #ffffff}Sky is the limit                                      Uptime:$uptime$color
    ${color #ffffff}PROCESSING$color
    ${color #98c2c7}CPU:$color     $cpu% 
    ${color #98c2c7}$cpubar
    ${color #98c2c7}${cpugraph 78af78 a3a3a3}
    
    ${color #98c2c7}NAME             PID       CPU%      MEM%
    ${color #e5e5e5}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${color #c4c4c4}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${color #a3a3a3}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${color #828282}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    
    ${color #ffcb48}DATA$color
    ${color #98c2c7}RAM:$color     $memperc%         ${color #828282${membar 6}${color #828282}
    ${color #98c2c7}SWAP:$color     $swapperc%         ${color #828282${swapbar 6}${color #828282}
    
    ${color #ffcb48}FILESYSTEM
    ${color #98c2c7}root /:$color       ${fs_free_perc /}%  $fs_free  ${color #98c2c7}${fs_bar 6 /}$color
    
    ${color #98c2c7}Upload:$color  ${upspeed eth0}kb/s${color #98c2c7} 
    Download:$color  ${downspeed eth0}kb/s
    
    ${execi 60 /usr/bin/pymetar LPPT}
    use_xft yes
    xftfont Vera-7

    hi, i think it's the two lines above which cause the misalignment. it's to do with using xftfont.
    Thanks to the forums staff for your dedication and hard work
    (the admins changed my sig to that lol )

  10. #70
    Join Date
    Dec 2006
    Location
    Denmark
    Beans
    2
    Distro
    Ubuntu 6.10 Edgy

    Re: Post your .conkyrc files w/ screenshots



    Made this with some help from the original sample config, some hints from this thread, and some lookups in the conky documentation

    Code:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #own_window_hints undecorated,below,skip_taskbar
    background yes
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft yes
    
    # Update interval in seconds
    update_interval 3.0
    
    maximum_width 143 5
    minimum_size 143 5
    
    # 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 4
    
    # border margins
    border_margin 2
    
    # 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 2
    gap_y 20
    
    # stuff after 'TEXT' will be formatted on screen
    
    override_utf8_locale no
    xftfont Terminus:size=8
    xftalpha 0.8
    
    TEXT
    
    ${offset 0}${color white}uptime: ${color }$uptime
    ${offset 0}${color white}kernel: ${color }$kernel
    ${offset 0}${color white}battery:${color } ${battery}
    ${offset 0}${color white}fan: ${ibm_fan}rpm
    ${offset 0}${color white}temp:
    ${offset 0}${color white} hda: ${hddtemp /dev/hda}
    ${offset 0}${color white} c1: ${ibm_temps 1}C
    ${offset 0}${color white} c2: ${ibm_temps 2}C
    ${offset 0}${color white} gpu: ${ibm_temps 3}C
    ${offset 0}${color white} cpu: ${ibm_temps 0}C
    ${offset 0}${color white}cpu:${color } $cpu%
    ${offset 0}${cpugraph 20,130 cccccc ffffff}
    ${offset 0}${color white}load: ${color }$loadavg
    ${offset 0}${color white}processes: ${color }$processes  
    ${offset 0}${color white}running: ${color }$running_processes
    
    ${offset 0}${color white}top cpu time:
    ${offset 0}${color #ddaa00} ${top name 1}${top_mem cpu 1}
    ${offset 0}${color white} ${top name 2}${top cpu 2}
    ${offset 0}${color white} ${top name 3}${top cpu 3}
    ${offset 0}${color white} ${top name 4}${top cpu 4}
    
    ${offset 0}${color white}top mem:
    ${offset 0}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
    ${offset 0}${color white} ${top_mem name 2}${top_mem mem 2}
    ${offset 0}${color white} ${top_mem name 3}${top_mem mem 3}
    ${offset 0}${color white} ${top_mem name 4}${top_mem mem 4}
    
    ${offset 0}${color white}ram:
    ${color }$memperc% $mem/$memmax
    ${offset 0}${membar 3,100}
    ${offset 0}${color white}swap:
    ${color }$swapperc% $swap/$swapmax
    ${offset 0}${swapbar 3,100}
    ${offset 0}${color white}root:
    ${color }${fs_free /}/${fs_size /}
    ${offset 0}${fs_bar 3,100 /}
    ${offset 0}${color white}net:
    ${offset 0}${color} wlan signal: ${color }${linkstatus eth1}%
    ${offset 0}${color} ip: ${addr eth1}
    ${offset 0}${color}up: ${color }${upspeed eth1} k/s
    ${offset 0}${upspeedgraph eth1 20,130 000000 ffffff}
    ${offset 0}${color}down: ${color }${downspeed eth1}k/s${color}
    ${offset 0}${downspeedgraph eth1 20,130 000000 ffffff}
    Last edited by vertigo-; December 25th, 2006 at 08:53 PM.

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