Page 81 of 2298 FirstFirst ... 31717980818283911311815811081 ... LastLast
Results 801 to 810 of 22971

Thread: Post your .conkyrc files w/ screenshots

  1. #801
    Join Date
    May 2007
    Location
    Washington
    Beans
    909

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by PrimoTurbo View Post
    Can you please post your weather script, including the xml formating file and everything? Thanks...
    I just edited the one in here. All it is is the current weather. I bolded anything you need to change. Put both in your .local folder so you have less to change. You may have to install curl. (sudo apt-get install curl)
    Weather.xslt
    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:template><xsl:template match="loc"></xsl:template><xsl:template match="cc">
    		<!-- <xsl:text>City: </xsl:text><xsl:value-of select="obst"/> --> <xsl:text></xsl:text><xsl:text></xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/><xsl:if test="tmp != flik">
    <xsl:text> (FL: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/><xsl:text>)</xsl:text></xsl:if><xsl:text>, </xsl:text><xsl:value-of select="t"/></xsl:template><xsl:template match="dayf/day[@d='1']">
    	</xsl:template>
    </xsl:stylesheet>
    Weather.sh
    Code:
    #!/bin/sh
    
    #
    # Grab weather data from weather.com and format it according to the given XSLT
    # Script written by boojit
    # Modified by Hellf[i]re
    # The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz
    
    # Usage:
    # ${execi 1800 /path/to/weather/weather.sh location}
    # Usage Example:
    # ${execi 1800 /home/user/weather/weather.sh 03833}
    
    # your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it 
    # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
    LOCID=$1
    
    # s=standard units, m=metric units
    UNITS=s
    
    # where this script and the XSLT lives
    RUNDIR=/home/shawn/.local 
    
    # there's probably other stuff besides CURL that will work for this, but i haven't 
    # tried any others. 
    # you can get curl at http://curl.haxx.se/
    CURLCMD=/usr/bin/curl
    
    # get it at http://xmlsoft.org/XSLT/
    XSLTCMD=/usr/bin/xsltproc
    
    # you probably don't need to modify anything below this point....
    
    # CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
    CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"
    
    # The XSLT to use when translating the response from weather.com
    # You can modify this xslt to your liking 
    XSLT=$RUNDIR/weather.xslt 
    
    #filter (if you want to convert stuff to lower-case or upper case or something)
    #FILTER="|gawk '{print(tolower(\$0));}'"
    
    
    #####
    eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"

  2. #802
    Join Date
    Apr 2007
    Location
    Small patch of reality
    Beans
    57
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Code:
    # conky config
    # edited by fobnicat
    
    # 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
    
    # 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
    
    # 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_winlour 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 130 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 5
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # 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 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
    
    # 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 slate grey}$nodename - $freq_dyn_g ghz
    ${color slate grey}linux $kernel
    
    ${color slate grey}uptime: ${color }$uptime
    
    ${color slate grey}cpu:${color } $cpu% 
    ${cpugraph 20,130 000000 ffffff}
    ${color slate grey}proc: ${color } $running_processes ${color slate grey}/${color }$processes
    ${color slate grey}load: ${color }$loadavg
    ${color slate grey}mem: ${color } $mem/$memmax 
    ${membar 3,100} $memperc%
    
    ${color slate grey}hdd:${color}${fs_used}/${fs_size}
    ${fs_bar 3,100}
     
    ${color slate grey}net: 
    ${color slate grey}down: ${color }${downspeedf eth0}k/s${color}
    ${downspeedgraph eth0 20,130 000000 ffffff}
    ${color slate grey}up: ${color }${upspeedf eth0} k/s
    ${upspeedgraph eth0 20,130 000000 ffffff}
    Attached Images Attached Images

  3. #803
    Join Date
    Jun 2007
    Beans
    638
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by PrimoTurbo View Post
    Can someone hook me up with a nice weather script, I used the regular one before but I couldn't format it correctly to display only 1 line of info, it would always display a bunch of crap at the bottom.
    Here's a simple weather script for conky:

    Code:
    #!/bin/sh
    #AccuWeather (r) RSS weather tool for conky
    #
    #USAGE: weather.sh <locationcode>
    #
    
    METRIC=1 #Should be 0 or 1; 0 for F, 1 for C
    
    if [ -z $1 ]; then
        echo
        echo "USAGE: weather.sh <locationcode>"
        echo
        exit 0;
    fi
    
    curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
    You'd need perl & curl. The output's like this:

    Partly Cloudy: 27C

    Hope this suffices. Cheers.
    Ubuntu User # 17490
    Currently: Fisheye 2, Diana F+, Viv UWS
    Lomografix

  4. #804
    Join Date
    Jul 2005
    Beans
    193

    Re: Post your .conkyrc files w/ screenshots

    Thanks for the scripts guys much appreciated
    Ubuntu Corner - My personal Ubuntu based blog.

  5. #805
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,148
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    I am trying to fix my conky so that both my cores of my cpu show up, can anyone help me?

    I have attached both the code and the pic.

    code: http://www.pastebin.org/5136

    http://img88.imageshack.us/img88/197...othcpuslu4.png
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  6. #806
    Join Date
    Feb 2007
    Location
    Brampton, Ontario
    Beans
    883

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dannyboy79 View Post
    I am trying to fix my conky so that both my cores of my cpu show up, can anyone help me?

    I have attached both the code and the pic.

    code: http://www.pastebin.org/5136

    http://img88.imageshack.us/img88/197...othcpuslu4.png
    Try having two CPU commands for each one you want, but call cpu0 and cpu1, that should show both cores, works for me. "cpu" itself I believe is an average of both cores if one has dual core or more.
    "For those who believe, no explanation is necessary. For those who do not, none will suffice." - Joseph Dunninger

  7. #807
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,148
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    well that doesn't work. Here is what I tried:

    ${color red}CPU ${hr 1}$color
    ${color green}Load: ${color white}${loadavg} ${color green}Temp: ${color white}${acpitempf}F ${color green}
    ${color green}Processes: ${color white}$processes ${color green}Running: ${color white}$running_processes
    ${color green}CPU0 Load: ${color white}${cpu0}%
    ${cpugraph 00ff00 ffffff}
    ${color green}CPU1 Load: ${color white}${cpu1}%
    ${cpugraph 00ff00 ffffff}

    and this is what it looks like: http://img132.imageshack.us/img132/3...eenshotpv6.png

    Any other suggestions? Or am I just not coding it correctly? Thats why I asked for help. I am new to conky
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  8. #808
    Join Date
    Feb 2007
    Location
    Brampton, Ontario
    Beans
    883

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dannyboy79 View Post
    well that doesn't work. Here is what I tried:

    ${color red}CPU ${hr 1}$color
    ${color green}Load: ${color white}${loadavg} ${color green}Temp: ${color white}${acpitempf}F ${color green}
    ${color green}Processes: ${color white}$processes ${color green}Running: ${color white}$running_processes
    ${color green}CPU0 Load: ${color white}${cpu0}%
    ${cpugraph 00ff00 ffffff}
    ${color green}CPU1 Load: ${color white}${cpu1}%
    ${cpugraph 00ff00 ffffff}

    and this is what it looks like: http://img132.imageshack.us/img132/3...eenshotpv6.png

    Any other suggestions? Or am I just not coding it correctly? Thats why I asked for help. I am new to conky

    Woopsie, you have to make it like this:

    Code:
    ${cpu cpu1}
    and same with cpu2. That has to work.
    "For those who believe, no explanation is necessary. For those who do not, none will suffice." - Joseph Dunninger

  9. #809
    Join Date
    Aug 2007
    Location
    Castle Rock, Colorado
    Beans
    26
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by herbster View Post
    Try having two CPU commands for each one you want, but call cpu0 and cpu1, that should show both cores, works for me. "cpu" itself I believe is an average of both cores if one has dual core or more.
    You'll want it to actually be cpu1 and cpu2 ... not cpu0.
    So the code for displaying the cpu usage as a percent for both cores would be ${cpu cpu1} and ${cpu cpu2}

  10. #810
    Join Date
    Apr 2006
    Location
    Upstate NY
    Beans
    796
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Post your .conkyrc files w/ screenshots

    hi folks. i'd like to try and display my wifi signal (wlan0). i have a script that's supposed to fetch the info, but i get:

    Code:
    sh: /home/n3tfury/.conky_wifi: Permission denied
    here's my conkyrc:

    Code:
    own_window no 
    own_window_type normal 
    own_window_transparent yes 
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
    double_buffer yes 
    use_xft yes 
    update_interval 0.5 
    draw_shades no 
    draw_borders no 
    xftfont bauhausixelsize=7
    border_margin 1 
    default_color CCCCCC 
    gap_x 02 
    gap_y 02 
    TEXT
    CPU: ${cpugraph cpu0 8,25 CCCCCC CCCCCC} | RAM: $mem/$memmax - $memperc% ${color #CCCCCC}${membar 5,110} | Proc: ${color CCCCCC}$running_processes Running; $processes Total${color} | HDD: ${color CCCCCC}${fs_free_perc} % | wlan0: ${addr wlan0} | Signal:${execi 1 /home/n3tfury/.conky_wifi}
    and here is my wifi code that i borrowed from this thread (.conky_wifi):

    Code:
    #!/bin/sh
     /sbin/iwconfig wlan0|grep Rate|cut -d"M" -f1|cut -b20-24
    any help appreciated as always

Page 81 of 2298 FirstFirst ... 31717980818283911311815811081 ... 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
  •