Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Conky Builder

Source code I have written openly published for your viewing pleasure.


Conky Builder

Postby TheeMahn » Fri Sep 23, 2011 3:17 am

I have been working on a new conky-builder script, I have debianized it, but do not feel it is 100% at this point. I would like to share the code with you. Feel free to report issues: <EDIT First public deb has been dropped below please report errors in this thread.
Dual.png
Dual monitors (multi-monitor app) has caused extra work, also 4K monitor support.

pithos.png
Added Pithos, Cllementine support.

EDIT: 11/19/16:
ultimate-edition-conky-builder-1.26_all.deb
# 1.23 Added support for 1920X2280 Dual monitor vertical orientation.
# Ran code through bash script maker. Now has help and version system.

# 1.24 Added support for 1920X2400 Dual monitor vertical orientation.
# Added better WiFi support (multiple adapters simotaneously supported).
# Added full Ultimate Player detection.
# Ran software through code-cleanup package.
# Added eyecandy functions.
# Adjusted dependancies conky-all | conky-std, lm-sensors now recomended
#
# 1.25 Added initial support for 4K monitors.
#
# 1.26 Added support for Pithos (Pandora Client)
# Added support for Clementine Media Player
# Set recomends in control to recomend media | players
# Cleaned up code.
#
# =============== End Change-log ===================== #
(142.15 KiB) Downloaded 56 times

Changelog:
# This script was auto generated using the code-cleanup package viewtopic.php?f=23&t=9480
# ==============================================================================
# title :conky-builder
# description :Builds a Conky skeleton based on hardware detected.
# author :theemahn <theemahn@ultimateedition.info>
# date :11/07/2016
# version :1.26
# usage :conky-builder --help
# manual :man conky-builder
# notes :See change-log below for further information.
# ==============================================================================
# Change-log:

# 1.0 initial public release

# 1.1 internal release

# 1.2 internal release

# 1.3 internal release

# 1.4 Added distribution detection, added resolution detection
# to set fonts and sizes.

# 1.05 Added version compliance for deb based releases
# Added better networking detection / wireless support.
# Added memory output to compare against pae based kernels.
# Added 800 X 600 support, how did I miss this resolution?
# Added initial support for Ultimate Player (dynamically)
# Added support for all network interface detection / Active.
# Never have I seen this implementation. I try to think outside of
# the box please report issues.
# Added support for Ultimate Edition 2.6.4 and 3.1 detection
# Added dynamic Wireless support.
# Added CPU Temp / Fan speeds also dynamic.

# 1.06 Added Radio tray to the mix
# Initiated the anti-cron job mode of thinking, execi can be executed
# w/o the need for a cron job. Let's base this on the end users CPU.
# Added no Internet means do not propagate - includes wireless.
# The same across the board when I am done and hopefully will not
# require a cron job.64bit

# 1.07 Initiated real-time information, across issues I have set forth.
# Set CPU Temp to display info real-time based on end users processor. A
# single core CPU will not be updated as fast as a quad for example
# please see timeslices in my code.
# Set fan speed accordingly as above.

# 1.08 Split the Conky builder for Ultimate Player info
# May integrate the info as a function later.
# Added progress bar for current playing track.
# All info for Ultimate Player is now real-time.

# 1.09 First initial deb based release

# 1.10 Internal release for Ultimate Edition 3.01
# Fixed improper spacing when closing Ultimate Player.

# 1.11 Fixed improper CPU detection on some Intel based processors.
# Began writing weather location / detection via users IP address.
# the above will be a fairly difficult procedure. Query to a API driven
# Geo-positioning map to obtain location based on zip code, once obtained
# a query to another API driven site noaa.gov. Will require no user
# interaction.

# 1.12 Added support for 12.04 precise (Ultimate Edition 3.4 & 3.5) based releases.

# 1.13 Corrected colors to be only 1 color for now, easier reading on most wallpapers.
# Will eventually write it to detect theme and set colors appropriately.

# 1.14 Added GPU and Main-board temp detection routines.
# Added initial dual monitor detection / setup routine.
# Added ppp0 network detection to the mix, thanks Seedo Eldho Paul
# Added Hard-disk temperature detection, this was a rough one to sift
# though and match with the drives.

# 1.15 Internal release to Ultimate Edition 3.5
# Fixed Garbling of GPU / CPU Temp
# Adjusted Colors to coincide with Ultimate Edition 3.5 Theme
# Removed Lua usage. Thanks Mr. Breeg and Goliath for testing

# 1.16 Set colors in CLI so errors etc. Stand out.
# Added additional distribution detection routines (debugging currently)
# No sense in having to re-write conky builder every-time I build a new OS.
# Display album art if Ultimate Player is Jamming.
# Major code clean up, I am a slob ;)
# Updated distribution logo
# Mass updates to resolution detection routine. Simple once again becomes
# complex thanks to addition of the artwork from Ultimate Player.

# 1.17 Adjusted output of information to comply with screen width.
# Detection of USB drives - no output of temperature.
# Detection of NAS drives - no output of temperature.
# Added 1280 X 800 resolution; thanks, tanmay.01
# Adjusted Temp detection routines let's not waste space.
# Dual monitors now displayed @0 pixels from the top.
# Took debugging into my own hands on temps.
# Smartly built displaying of temp info into columns.
# If no Swap. No Swap info reported in Conky. Save precious screen resources.
# Reduced top processes to 3.
# Adjusted diskio activity and network activity bars to coincide in length.

# 1.18 Added NFS based Network Attached Storage detection.

# 1.19 Ran code-clean and bashdepends on this script, dependencies adjusted.

# 1.20 Added Video card detection
# Changed colors to coincide with colors of Ultimate Edition 3.4 series
# Added Raid array detection

# 1.21 Point to point protocol issue gone? Thanks again Seedo
# Implemented enhanced color / bar graphs.
# Added 1366 X 768 resolution, thanks again Seedo

# 1.22 Check for install of hddtemp. Set as recommended in deb not required
# Fixed errors spitting out when checking temp of USB / NAS drives.
# Adjusted colors for Ultimate Edition 4.0
# Adjusted mountpoints to strip username if applicable (12.10+ changed this)
# Added check for SUID for hddtemp
# Added Hard drive size detection & total filesystem capacity output info
# Added Detecttion of root filesystem

# 1.23 Added support for 1920X2280 Dual monitor vertical orientation.
# Ran code through bash script maker. Now has help and version system.

# 1.24 Added support for 1920X2400 Dual monitor vertical orientation.
# Added better WiFi support (multiple adapters simotaneously supported).
# Added full Ultimate Player detection.
# Ran software through code-cleanup package.
# Added eyecandy functions.
# Adjusted dependancies conky-all | conky-std, lm-sensors now recomended
#
# 1.25 Added initial support for 4K monitors.
#
# 1.26 Added support for Pithos (Pandora Client)
# Added support for Clementine Media Player
# Set recomends in control to recomend media | players
# Cleaned up code.
#
# =============== End Change-log ===================== #

Thanks multi-monitor for making me extra work ;)
EDIT: 12/06/12 Code in works:
Conky Builder.png
Conky Builder 1.16, note it has not detected my USB drives or NAS drives - Code is coming for that as well.

conky-builder-1.16_all.deb
Conky builder 1.16
(132.91 KiB) Downloaded 519 times

temp.png
1.05 Added temp / fanspeed among other info.

conky.png
Not a misprint it is Ultimate Edition 3.1 - unfinished currently.


Lets make it into Ultimate Edition 3.0 and change the screen resolution:
to30.png
Scrapping kubuntu desktop which it looks for to see if it is an even or odd release.


Enuff already, give me the code:
Code: Select all
#!/bin/bash
# This script was auto generated using the code-cleanup package http://forumubuntusoftware.info/viewtopic.php?f=23&t=9480
# Do a search and replace for ultimateedition.info followed by a search and replace conky-builder with the name of your program & delete this line.

# ==============================================================================
# title         :conky-builder
# description      :Builds a Conky skeleton based on hardware detected.
# author      :theemahn <theemahn@ultimateedition.info>
# date         :03/07/2014
# version      :1.23
# usage         :conky-builder --help
# manual      :man conky-builder
# notes         :See change-log below for further information.
# ==============================================================================
# Change-log:

# 1.0   initial public release

# 1.1   internal release

# 1.2   internal release

# 1.3   internal release

# 1.4   Added distribution detection, added resolution detection
#   to set fonts and sizes.

# 1.05   Added version compliance for deb based releases
#   Added better networking detection / wireless support.
#   Added memory output to compare against pae based kernels.
#   Added 800 X 600 support, how did I miss this resolution?
#   Added initial support for Ultimate Player (dynamically)
#   Added support for all network interface detection / Active.
#   Never have I seen this implementation.  I try to think outside of
#   the box please report issues.
#   Added support for Ultimate Edition 2.6.4 and 3.1 detection
#   Added dynamic Wireless support.
#   Added CPU Temp / Fan speeds also dynamic.

# 1.06   Added Radio tray to the mix
#   Initiated the anti-cron job mode of thinking, execi can be executed
#   w/o the need for a cron job.  Let's base this on the end users CPU.
#   Added no Internet means do not propagate - includes wireless.
#   The same across the board when I am done and hopefully will not
#   require a cron job.

# 1.07   Initiated real-time information, across issues I have set forth.
#   Set CPU Temp to display info real-time based on end users processor. A
#   single core CPU will not be updated as fast as a quad for example
#   please see timeslices in my code.
#   Set fan speed accordingly as above.

# 1.08   Split the Conky builder for Ultimate Player info
#   May integrate the info as a function later.
#   Added progress bar for current playing track.
#   All info for Ultimate Player is now real-time.

# 1.09   First initial deb based release

# 1.10   Internal release for Ultimate Edition 3.01
#   Fixed improper spacing when closing Ultimate Player.

# 1.11   Fixed improper CPU detection on some Intel based processors.
#   Began writing weather location / detection via users IP address.
#   the above will be a fairly difficult procedure. Query to a API driven
#   Geo-positioning map to obtain location based on zip code, once obtained
#   a query to another API   driven site noaa.gov.  Will require no user
#   interaction.

# 1.12   Added support for 12.04 precise (Ultimate Edition 3.4 & 3.5) based releases.

# 1.13   Corrected colors to be only 1 color for now, easier reading on most wallpapers.
#   Will eventually write it to detect theme and set colors appropriately.

# 1.14   Added GPU and Main-board temp detection routines.
#   Added initial dual monitor detection / setup routine.
#   Added ppp0 network detection to the mix, thanks Seedo Eldho Paul
#   Added Hard-disk temperature detection, this was a rough one to sift
#   though and match with the drives.

# 1.15   Internal release to Ultimate Edition 3.5
#   Fixed Garbling of GPU / CPU Temp
#   Adjusted Colors to coincide with Ultimate Edition 3.5 Theme
#   Removed Lua usage. Thanks Mr. Breeg and Goliath for testing

# 1.16   Set colors in CLI so errors etc. Stand out.
#   Added additional distribution detection routines (debugging currently)
#   No sense in having to re-write conky builder every-time I build a new OS.
#   Display album art if Ultimate Player is Jamming.
#   Major code clean up, I am a slob ;)
#   Updated distribution logo
#   Mass updates to resolution detection routine. Simple once again becomes
#   complex thanks to addition of the artwork from Ultimate Player.

# 1.17   Adjusted output of information to comply with screen width.
#   Detection of USB drives - no output of temperature.
#   Detection of NAS drives - no output of temperature.
#   Added 1280 X 800 resolution; thanks, tanmay.01
#   Adjusted Temp detection routines let's not waste space.
#   Dual monitors now displayed @0 pixels from the top.
#   Took debugging into my own hands on temps.
#   Smartly built displaying of temp info into columns.
#   If no Swap. No Swap info reported in Conky. Save precious screen resources.
#   Reduced top processes to 3.
#   Adjusted diskio activity and network activity bars to coincide in length.

# 1.18   Added NFS based Network Attached Storage detection.

# 1.19   Ran code-clean and bashdepends on this script, dependencies adjusted.

# 1.20   Added Video card detection
#   Changed colors to coincide with colors of Ultimate Edition 3.4 series
#   Added Raid array detection

# 1.21   Point to point protocol issue gone?  Thanks again Seedo
#    Implemented enhanced color / bar graphs.
#   Added 1366 X 768 resolution, thanks again Seedo

# 1.22   Check for install of hddtemp. Set as recommended in deb not required
#   Fixed errors spitting out when checking temp of USB / NAS drives.
#   Adjusted colors for Ultimate Edition 4.0
#   Adjusted mountpoints to strip username if applicable (12.10+ changed this)
#   Added check for SUID for hddtemp
#   Added Hard drive size detection & total filesystem capacity output info
#   Added Detecttion of root filesystem

# 1.23   Added support for 1920X2280 Dual monitor vertical orientation.
#   Ran code through bash script maker. Now has help and version system.

# =============== End Change-log ===================== #

# Modify the below information to correlate with the software you are designing.
PROGNAME="conky-builder"
PROGRAMMER="theemahn"
BUILDDATE="03/07/2014"
VERSION="1.23"
WEBSITE="ultimateedition.info"
EMAIL="theemahn@$WEBSITE"


# Info for determining current user to possibly compare against later
IUSER=${SUDO_USER:-$USER}
IHOME=/home/$IUSER

# set colors so errors etc. stand out.
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White
bakblk='\e[40m'   # Black - Background
bakred='\e[41m'   # Red
badgrn='\e[42m'   # Green
bakylw='\e[43m'   # Yellow
bakblu='\e[44m'   # Blue
bakpur='\e[45m'   # Purple
bakcyn='\e[46m'   # Cyan
bakwht='\e[47m'   # White
txtrst='\e[0m'    # Text Reset

# Begin programming here.
GRAPHWIDTH=180
FONTSIZE=6
#BASE='${color #ffffff}${font Liberation:style=normal:pixelsize='$FONTSIZE'}'
#HILIGHT='${color #ffffff}${font Liberation:style=normal:pixelsize='$FONTSIZE'}'
#HEADER='${color ffffff}${font Liberation:style=Bold:pixelsize='$FONTSIZE'}'
#BAR='${color #ffffff}'

############### You Should not have to edit anything below #############

VERSION='1.23'
UPSCRIPT='~.config/Ultimate-Player/UP.sh'
declare -i Dual

# Set ASCII Esc sequences so terminal colors stand out
txtblk='\e[0;30m'   # Black - Regular
txtred='\e[0;31m'   # Red
txtgrn='\e[0;32m'   # Green
txtylw='\e[0;33m'   # Yellow
txtblu='\e[0;34m'   # Blue
txtpur='\e[0;35m'   # Purple
txtcyn='\e[0;36m'   # Cyan
txtwht='\e[0;37m'   # White
bldblk='\e[1;30m'   # Black - Bold
bldred='\e[1;31m'   # Red
bldgrn='\e[1;32m'   # Green
bldylw='\e[1;33m'   # Yellow
bldblu='\e[1;34m'   # Blue
bldpur='\e[1;35m'   # Purple
bldcyn='\e[1;36m'   # Cyan
bldwht='\e[1;37m'   # White
unkblk='\e[4;30m'   # Black - Underline
undred='\e[4;31m'   # Red
undgrn='\e[4;32m'   # Green
undylw='\e[4;33m'   # Yellow
undblu='\e[4;34m'   # Blue
undpur='\e[4;35m'   # Purple
undcyn='\e[4;36m'   # Cyan
undwht='\e[4;37m'   # White
bakblk='\e[40m'      # Black - Background
bakred='\e[41m'      # Red
badgrn='\e[42m'      # Green
bakylw='\e[43m'      # Yellow
bakblu='\e[44m'      # Blue
bakpur='\e[45m'      # Purple
bakcyn='\e[46m'      # Cyan
bakwht='\e[47m'      # White
txtrst='\e[0m'      # Text Reset

# Set hard-coded variables
ISHDDTEMP=`which hddtemp`
ISHDDEXEC="NO"
SENSORS=`which sensors`
function Main(){
VersionDump
# Set default Operating System in case of failure
OS='Ultimate Edition'

# See if user has hddtemp installed, and more importantly has proper permissions
# to execute it via user non-root (SUID).  If not inform the user how to fix it.
# This stops: /dev/sda3: open: Permission denied errors.

if [[ $ISHDDTEMP ]]; then
   if [[ `stat -c %A $ISHDDTEMP | sed 's/...\(.\).\+/\1/'` == "s" ]]; then
      echo -e "${bldgrn}Congradulations, hddtemp is properly configured. Temperature information will be populated.${txtrst}"
      ISHDDEXEC='YES'
   fi
else
   echo -e "${bldylw}Warning: hddtemp is not installed, sudo apt-get install hddtemp${txtrst}"
fi

if [[ $ISHDDEXEC == "NO" && $ISHDDTEMP ]]; then
   echo -e "${bldred}Error: SUID for hddtemp is not set, sudo dpkg-reconfigure hddtemp${txtrst}"
fi


#Detect code-base / Distribution
OS=$(lsb_release -i | sed -n 's/^Distributor ID:[ \t]*\(.*\)/\1/p')
DISTREL=$(lsb_release -r | sed -n 's/^Release:[ \t]*\(.*\)/\1/p')
DISTDESC=$(lsb_release -d | sed -n 's/^Description:[ \t]*\(.*\)/\1/p')
CODEBASE=`cat /etc/lsb-release | grep 'DISTRIB_CODENAME=' | sed 's/DISTRIB_CODENAME=//g'`

echo "Codebase detected: "$CODEBASE

echo -e "${undgrn}Release debugging info:${txtrst}${bldred}"
echo $OS
echo $DISTREL
echo $DISTDESC
echo -e "${bldgrn}====================${txtrst}"
# detect if release is odd or even.
EVENODD=`dpkg -l | grep kubuntu-desktop`

if [[ $EVENODD != "" ]]; then
   echo "Kubuntu base: detected - odd number release"
else
   echo "Kubuntu base not detected - even number release"
fi


echo -n "Distro detected: "
#TESTING ABOVE
DISTRO=$OS" "$DISTREL
OS=$DISTRO
echo $DISTRO
#case "$CODEBASE" in
#precise)
#   if [[ $EVENODD != "" ]]; then
#  OS=$OS" 3.5"
#   else
#  OS=$OS" 3.4"
#   fi
#   echo $OS ;;
#oneiric)
#   if [[ $EVENODD != "" ]]; then
#  OS=$OS" 3.3"
#   else
#  OS=$OS" 3.2"
#   fi
#   echo $OS ;;
#natty)
#   if [[ $EVENODD != "" ]]; then
#  OS=$OS" 3.1"
#   else
#  OS=$OS" 3.01"
#   fi
#   echo $OS ;;
#maverick)
#   if [[ $EVENODD != "" ]]; then
#  OS=$OS" 2.9"
#   else
#  OS=$OS" 2.8"
#   fi
#   echo $OS ;;
#lucid)
#   if [[ $EVENODD != "" ]]; then
#  OS=$OS" 2.7"
#   else
#  OS=$OS" 2.6.6"
#   fi
#   echo $OS ;;#

#*)  echo "Unknown O/S using $CODEBASE"
#esac

# Attempt to advance the script.  No sense having the user edit this script
# if we can obtain the information without user intervention.
res=`xrandr -q | grep 'current' | cut -d"," -f2 | sed 's/current//g' | sed 's/ //g'`

# set default in case user has an unknown resolution. Better too small then too
# large
GRAPHWIDTH=320 #size of box in pixels
FONTSIZE=8 #default font size
SZE=64
DUAL=0
echo "Detected current resolution:" $res

case "$res" in
   3840x1200)
   # Tested known good
   DUAL=1
   AHW=76
   AARTY=76
   GRAPHWIDTH=440
   FONTSIZE=12
   echo "Dual monitors detected. Taking full advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   3840x1080)
   # Tested known good
   DUAL=1
   AHW=88
   AARTY=98
   GRAPHWIDTH=640
   FONTSIZE=16
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   3200x1200)
   DUAL=1
   AHW=88
   AARTY=98
   GRAPHWIDTH=640
   FONTSIZE=16
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   3200x1024)
   # Tested known good
   DUAL=1
   AHW=90
   AARTY=80
   GRAPHWIDTH=520
   FONTSIZE=14
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   3360x900)
   # Tested known good
   DUAL=1
   AHW=78
   AARTY=74
   GRAPHWIDTH=480
   FONTSIZE=12
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   3200x960)
   # Tested known good
   DUAL=1
   AHW=78
   AARTY=74
   GRAPHWIDTH=480
   FONTSIZE=12
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1920x2280)
   DUAL=1
   AHW=78
   AARTY=74
   GRAPHWIDTH=480
   FONTSIZE=12
   echo "Dual monitors detected. Taking advantage of extra screen resources."
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1920x1200)
   # Tested; known Good.
   AHW=84
   AARTY=84
   GRAPHWIDTH=600
   FONTSIZE=14
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1920x1080)
   # Tested; known Good.
   AHW=84
   AARTY=84
   GRAPHWIDTH=600
   FONTSIZE=14
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1600x1200)
   # Tested; known Good.
   AHW=84
   AARTY=84
   GRAPHWIDTH=550
   FONTSIZE=14
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1680x1050)
   # Tested; known Good.
   AHW=84
   AARTY=84
   GRAPHWIDTH=550
   FONTSIZE=14
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1440x900)
   # Tested known good
   AHW=75
   AARTY=70
   GRAPHWIDTH=420
   FONTSIZE=11
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1400x1050)
   # unknown
   AHW=75
   AARTY=70
   GRAPHWIDTH=420
   FONTSIZE=11
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1366x768)
   # Tested known good
   AHW=75
   AARTY=70
   GRAPHWIDTH=420
   FONTSIZE=11
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1280x1024)
   # Tested known good
   AHW=75
   AARTY=71
   GRAPHWIDTH=400
   FONTSIZE=11
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1280x960)
   # Tested known good
   AHW=75
   AARTY=71
   GRAPHWIDTH=400
   FONTSIZE=11
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1280x720)
   # Tested known good
   AHW=64
   AARTY=56
   GRAPHWIDTH=340
   FONTSIZE=9
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1152x864)
   # Tested known good
   AHW=64
   AARTY=56
   GRAPHWIDTH=340
   FONTSIZE=9
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   1024x768)
   # Tested known good
   AHW=64
   AARTY=56
   GRAPHWIDTH=340
   FONTSIZE=9
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   800x600)
   # Tested known good
   AHW=52
   AARTY=44
   GRAPHWIDTH=260
   FONTSIZE=7
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   832x624)
   # Tested known good
   AHW=52
   AARTY=48
   GRAPHWIDTH=300
   FONTSIZE=8
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   720x400)
   GRAPHWIDTH=180
   FONTSIZE=6
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   640x480)
   GRAPHWIDTH=180
   FONTSIZE=6
   echo "Setting font size to $FONTSIZE and graph width to $GRAPHWIDTH" ;;
   *)
   GRAPHWIDTH=320
   FONTSIZE=12
   echo -e "${bldred}Resolution not programmed defaulting, please report detected resolution\n above to <theemahn@ultimateedition.info>${txtrst}" ;;
esac

#set Base, hi-light color & header please adjust colors in hex and font to your liking
#http://simple.wikipedia.org/wiki/List_of_colors
BASE='${color #ffffff}${font Liberation:style=normal:pixelsize='$FONTSIZE'}' #Atomic Tangerine
HILIGHT='${color #ffff00}${font Liberation:style=normal:pixelsize='$FONTSIZE'}' #Yellow
HEADER='${color #00ffff}${font Liberation:style=Bold:pixelsize='$FONTSIZE'}' #Cyan
BAR='${color #ffd700}' #Gold

############### You Should not have to edit anything below #############

#Calculate v offset based on Fonts / pixelsize
VOFF=$((FONTSIZE+6))
ALEFT=$((FONTSIZE/4))
INDENT=$((FONTSIZE/2))
BARZ=$((GRAPHWIDTH/2))
BOFFSET=$((FONTSIZE/3))
TICON=$((FONTSIZE/5))
BPER=$((GRAPHWIDTH/100*75))
SBAR=$((GRAPHWIDTH/100*20))
LOGO=$((FONTSIZE*2))
SZE=$((LOGO*2))
LOGO=`expr $LOGO - 5`
BPER=`expr $BPER - 10`
AARTX=`expr $GRAPHWIDTH - $AHW`
#echo "Logo Size: $SZE"

#Get CPU model
RESONATION=`cat /proc/cpuinfo | grep 'cpu MHz' | sed -e 's/.*: //' | uniq`
PROC=`cat /proc/cpuinfo | grep -m1 'model name' | sed -e 's/.*: //' | uniq`
echo "Processor:" $PROC "resonating at $RESONATION Mhz"

#check Architecture set 32 bit default
ARCHITECTURE='32 Bit'

#
# Check for x86_64 (Test 1) - some O/S's use the -i switch
#
if [ "`uname -i|grep x86_64`" == "x86_64" ]; then
   ARCHITECTURE='64 Bit'
fi

#
# Check for x86_64 (Test 2) - some OSs (ie. Gentoo) return Processor manufacturer
#rather than architecture with "uname -i"
#
if [ "`uname -a|grep x86_64`" != "" ]; then
   ARCHITECTURE='64 Bit'
fi

# Report to user
echo $ARCHITECTURE 'O/S detected.'

# Count number of processor cores
CORES=1 #Set default
CORES=`cat /proc/cpuinfo | grep "processor" | sed '/model/d' | wc -l`

# Lets's not choke the end users CPU if they have limited resources.
TIMESLICES=`expr 12 / $CORES`

# Report findings
echo $CORES "CPU core(s) Detected."
echo 'Update interval set: '$TIMESLICES
cat /proc/meminfo | grep 'MemTotal'
SWAPTOTAL=`cat /proc/meminfo | grep "SwapTotal" | sed 's/ //g' | cut -d ':' -f2 | cut -d 'k' -f1`

#SWAPTOTAL=1024 #Set for debugging purposes
if [[ $SWAPTOTAL == "0" ]]; then
   echo "No Swap detected; not going to populate Conky."
else
   echo "Swap Total: $SWAPTOTAL"
fi

#Advance network detection to perfection scan all interfaces:
ls /sys/class/net/ > /tmp/ifaces.txt
if test -f /tmp/ifaces.txt
   then
   echo -e "${undgrn}Network interfaces detected${txtrst}"
   cat /tmp/ifaces.txt
   echo -e "${undgrn}Scanning for active${txtrst}"
   cat /tmp/ifaces.txt | while read FILE
   do
      target=$(echo "$FILE" | sed -e "s/ /_/")
      echo -n "Interface $FILE: "
      ACT=$(cat /sys/class/net/$FILE/operstate)
      echo $ACT
      if [[ $ACT == 'up' ]]; then
         ACTIVE=$FILE
         echo $FILE > /tmp/tmpo.txt
         echo -e "${undgrn}Active Network${txtrst}: "$ACTIVE
      fi
   done

   # Current Seedo work...  If the folder exists most likely it is the
   # active connection set it as such.  Point to Point Protocol evidently
   # does not do states. up / down etc.

   if [[ -d "/sys/class/net/ppp0/" && $ACTIVE == "" ]]; then
      ACTIVE="ppp0"
      echo $ACTIVE > /tmp/tmpo.txt
   fi
else
   echo 'No Active network.'
fi
if test -f /tmp/tmpo.txt
   then
   ACTIVE=$(cat /tmp/tmpo.txt)
else
   ACTIVE='No Inet'
fi
echo -en "${undgrn}Active Monitoring Connection${txtrst}: "
echo $ACTIVE
if test -f /tmp/tmpo.txt
   then
   WIRELESS=$(cat /tmp/tmpo.txt|grep 'wlan')
fi
if [[ $WIRELESS != '' ]]
   then
   wlan='up'
fi

#Clean up.
if test -f /tmp/ifaces.txt
   then
   rm /tmp/ifaces.txt
fi
if test -f /tmp/tmpo.txt
   then
   rm /tmp/tmpo.txt
fi
#Detect "Active" network and propigate Network Xfer bar
#ACTIVE=`ifconfig | grep -B 1 inet | head -1 | awk '{print $1}'`
#Wireless?
#wlan=$(cat /sys/class/net/wlan0/operstate)
#enet=$(cat /sys/class/net/eth0/operstate)

#Hardline?
#if [[ $enet == 'up' ]]; then
#$ACTIVE='eth0'
#fi

#Wireless
#if [[ $wlan == 'up' ]]; then
#ACTIVE='wlan0'
#fi

#Dual monitors?
if [[ $DUAL == 0 ]]; then
   GAPX=15
   GAPY=30
else
   GAPX=15
   GAPY=0
fi

#Create conky skelaton
echo '#Use XFT?
use_xft yes
xftfont Liberation:style=normal:pixelsize='$FONTSIZE'
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
#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 -adjust if you would like to user smaller fonts etc.
minimum_size '$GRAPHWIDTH' 0
maximum_width '$GRAPHWIDTH'
max_specials 1024
max_user_text 16384
default_bar_size '$BPER' 5

# Draw shades?
draw_shades no
default_color 0a3f6d #ffffff
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border width
border_width 1

# 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 '$GAPX'
gap_y '$GAPY'

#Default weather to fahrenheit, please change the below if you prefer celcius.
temperature_unit fahrenheit

# -- Lua Load -- # - removed in conky builder > 1.15
#lua_load ~/.draw_bg.lua
#lua_draw_hook_pre draw_bg

# -- Album art fix -- #
imlib_cache_size 0
' > ~/.conkyrc

echo 'TEXT' >> ~/.conkyrc

# Begin system info output
echo '${image /usr/share/ultimate_edition/logo.png -p '$BARZ','$LOGO' -s '$SZE'x'$SZE'}'$HEADER'SYSTEM ${hr 2 }'$BASE >> ~/.conkyrc
echo '${alignr}'$OS' - ${alignr}$kernel '$ARCHITECTURE >> ~/.conkyrc
echo '${alignr}'$USER'@$nodename' >> ~/.conkyrc
echo -n '${goto '$INDENT'}${voffset '$TICON'}${font StyleBats:pixelsize='$FONTSIZE'}k${font}${voffset -'$ALEFT'}${goto '$VOFF'}${font}Processes: '$HILIGHT'$processes' >> ~/.conkyrc
echo $BASE'${alignr}${voffset '$TICON'}${font StyleBats:pixelsize='$FONTSIZE'}q${font}Uptime: '$HILIGHT'${uptime}' >> ~/.conkyrc

# Ultimate Player running? In not; no info is populated on Conky.
echo '${if_running ultimate-player}'$HEADER'ULTIMATE PLAYER ${hr 2 }'$BASE'${image ~/.config/Ultimate-Player/Current.art -p '$AARTX','$AARTY' -s '$AHW'x'$AHW'}' >> ~/.conkyrc
echo '${voffset 2}${font Poky:pixelsize='$FONTSIZE'}k${font}${goto '$VOFF'}${voffset -'$ALEFT'}${font}Artist: '$HILIGHT'${execi '$TIMESLICES' .config/Ultimate-Player/UP.sh artist}' >> ~/.conkyrc
echo $BASE'${font}${voffset 2}${font Poky:pixelsize='$FONTSIZE'}k${font}${goto '$VOFF'}${voffset -'$ALEFT'}${font}Title: '$HILIGHT'${execi '$TIMESLICES' .config/Ultimate-Player/UP.sh title}' >> ~/.conkyrc
echo $BASE'${font}${voffset 2}${font Poky:pixelsize='$FONTSIZE'}k${font}${goto '$VOFF'}${voffset -'$ALEFT'}${font}Album: '$HILIGHT'${execi '$TIMESLICES' .config/Ultimate-Player/UP.sh album}' >> ~/.conkyrc
echo '${execibar '$TIMESLICES' .config/Ultimate-Player/UP.sh progress}${else}${endif}' >> ~/.conkyrc

# Radio Tray running? In not; no info is populated on Conky.
echo '${if_running radiotray}'$HEADER'RADIO TRAY ${hr 2 }'$BASE >> ~/.conkyrc
echo '${voffset 2}${font Poky:pixelsize='$FONTSIZE'}k${goto '$VOFF'}${voffset -'$ALEFT'}${font}Playing: '$HILIGHT '${execi '$TIMESLICES' .config/Ultimate-Player/UP.sh rplay}' >> ~/.conkyrc
echo $BASE'${font StyleBats:pixelsize='$FONTSIZE'}q${font}${voffset -'$ALEFT'}${goto '$VOFF'}${voffset -'$ALEFT'}${font}Station: '$HILIGHT '${execi '$TIMESLICES' .config/Ultimate-Player/UP.sh rstation}${else}${voffset -23}${endif}' >> ~/.conkyrc

#Core(s) info
echo $HEADER'CPU${hr 2 }'$BASE >> ~/.conkyrc
echo '${goto '$INDENT'}${voffset '$TICON'}${font Stylebats:pixelsize='$FONTSIZE'}A${font}${voffset -'$ALEFT'}${goto '$VOFF'}${font}${goto '$VOFF'}'$PROC'
${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}A${voffset -'$ALEFT'}${goto '$VOFF'}${font}CPU Usage: '$HILIGHT' ${freq}MHz X '$CORES'${alignr}${cpu cpu0}% '$BAR' ${cpubar cpu0 '$INDENT','$SBAR'}' >> ~/.conkyrc

# Hit sensors to see if temperature(s) are detected / reported.
echo -e "${bldgrn}SCANNING MOTHERBOARD FOR TEMP SENSOR(S)...${txtrst}"

if [[ $SENSORS ]]; then
echo -e "${undgrn}OBJECT\t\tDISCOVERED\t\tSENSOR${txtrst}"
   CPUTEMP=$(sensors -f | grep -m 1 "CPU Temperature" | cut -d: -f2 | sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1)
   GPUTEMP=$(sensors -f | grep -m 1 "temp1" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1)
   VIDCARD=$(glxinfo | grep -m 1 'renderer string' | sed 's/OpenGL renderer string: //g')
   MBTEMP=$(sensors -f | grep -m 1 "MB Temp" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1)
   FANSPEED=$(sensors -f | grep -m 1 "CPU Fan Speed"| cut -d: -f2 | sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1)
   EVEN=0
   echo -n $BASE >> ~/.conkyrc
   #CPUTEMP="" #set for debugging purposes
   if [[ $CPUTEMP != '' ]]
      then
      echo -n '${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}A${voffset -'$ALEFT'}${goto '$VOFF'}${font}CPU Temp: '$HILIGHT >> ~/.conkyrc
      echo -n '${execi '$TIMESLICES' sensors -f | grep -m 1 "CPU Temperature"|cut -d: -f2|sed "s/ //g"|sed "s/+//g" | cut -d"(" -f1}${alignr}' >> ~/.conkyrc
      EVEN=1
      echo -e "CPU\t\tYES\t\t\t$CPUTEMP"
   else
      echo -e "CPU\t\tNO\t\t\t${bldred} N/A${txtrst}"
      EVEN=0
   fi
   #FANSPEED="" #set for debugging purposes

   if [[ $FANSPEED != '' ]]; then
      if [[ $EVEN == "0" ]]; then
         echo -n $BASE'${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}F${voffset -'$ALEFT'}${goto '$VOFF'}${font}Fan speed: '$HILIGHT >> ~/.conkyrc
         echo -n '${execi '$TIMESLICES' sensors -f| grep -m -1 "CPU Fan Speed"|cut -d: -f2|sed "s/ //g"|sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
         echo -e "FANSPEED\tYES\t\t\t$FANSPEED"
         EVEN=1 # Set switch so next detected can be set on the same line.
      else
         echo -n $BASE'Fan Speed: '$HILIGHT >> ~/.conkyrc
         echo '${execi '$TIMESLICES' sensors -f | grep -m 1 "CPU Fan Speed"|cut -d: -f2|sed "s/ //g"|sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
         echo -e "FANSPEED\tYES\t\t\t$FANSPEED"
         EVEN=0 # End of the line doe no use the -n with echo above.
      fi
   else
      echo -e "FANSPEED\tNO\t\t\t${bldred} N/A${txtrst}"
   fi

#GPUTEMP="" #set for debugging purposes
#GPU TEMP?
   if [[ $GPUTEMP != '' ]]; then
      if [[ $EVEN == "0" ]]; then
         if [[ $VIDCARD == '' ]]; then
            echo -n $BASE'${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}Y${voffset -'$ALEFT'}${goto '$VOFF'}${font}GPU Temp: '$HILIGHT >> ~/.conkyrc
            echo -n '${execi '$TIMESLICES' sensors -f | grep -m 1 "temp1" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
            echo -e "GPU\t\tYES\t\t\t$GPUTEMP"
            EVEN=1
         else
            echo -n $BASE'${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}Y${voffset -'$ALEFT'}${goto '$VOFF'}${font}'$VIDCARD': '$HILIGHT >> ~/.conkyrc
            echo -n '${execi '$TIMESLICES' sensors -f | grep -m 1 "temp1" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
            echo -e "GPU\t\tYES\t\t\t$GPUTEMP"
            EVEN=1
         fi
      else
         if [[ $VIDCARD == '' ]]; then
            echo -n '${font}${alignr}GPU Temp: '$HILIGHT >> ~/.conkyrc
            echo '${execi '$TIMESLICES' sensors -f | grep -m 1 "temp1" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
            echo -e "GPU\t\tYES\t\t\t$GPUTEMP"
            EVEN=0
         else
            echo -n '${font}${alignr}'$VIDCARD': '$HILIGHT >> ~/.conkyrc
            echo '${execi '$TIMESLICES' sensors -f | grep -m 1 "temp1" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
            echo -e $VIDCARD"\t\tYES\t\t\t$GPUTEMP"
            EVEN=0
         fi

      fi
   else
      echo -e "GPU\t\tNO\t\t\t${bldred} N/A${txtrst}"
   fi

#MBTEMP="" #set for debugging purposes
#Main-board Temp?
   if [[ $MBTEMP != '' ]]
      then
      if [[ $EVEN == "0" ]]; then
         echo -n $BASE'${goto '$INDENT'}${font StyleBats:pixelsize='$FONTSIZE'}F${voffset -'$ALEFT'}${goto '$VOFF'}${font}MB Temp: '$HILIGHT >> ~/.conkyrc
         echo '${execi '$TIMESLICES' sensors -f|grep -m 1 "MB Temp" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
         echo -e "MAIN-BOARD\tYES\t\t\t$MBTEMP"
         EVEN=1
      else
         echo -n $BASE'${font}${alignr}MB Temp: '$HILIGHT >> ~/.conkyrc
         echo '${execi '$TIMESLICES' sensors -f|grep -m 1 "MB Temp" | cut -d: -f2| sed "s/ //g" | sed "s/+//g" | cut -d"(" -f1}' >> ~/.conkyrc
         echo -e "MAIN-BOARD\tYES\t\t\t$MBTEMP"
         EVEN=0
      fi
   else
      echo -e "MAIN-BOARD\tNO\t\t\t${bldred} N/A${txtrst}"
   fi

# Close out TEMPS with a line.
echo $HEADER'${hr 2}'$BASE >> ~/.conkyrc
# Sensors is NOT installed, inform enduser.
else
   echo -e "${bldred}Error: Sensors package is not installed, sudo apt-get install lm-sensors.${txtrst}"
# Closes of need / discovery of temp sensors package
fi

# Create a cpubar for each core
COUNTER=0
while [  $COUNTER != $CORES ]; do
   let COUNTER=COUNTER+1
   echo '${goto '$INDENT'}${voffset '$TICON'}${font StyleBats:pixelsize='$FONTSIZE'}A${font}${voffset -'$ALEFT'}${goto '$VOFF'}${font}Core '$COUNTER':' $HILIGHT'${cpu cpu'$COUNTER'}% '$BAR'${alignr}${cpubar cpu'$COUNTER' '$INDENT','$BPER'}'$BASE >> ~/.conkyrc
done

# Output total memory / usage.
echo $HEADER'RAM${hr 2 }'$BASE >> ~/.conkyrc
echo -n $BASE'${voffset 2}${font VariShapes Solid:pixelsize='$FONTSIZE'}N'$BASE'Useage: '$HILIGHT'$mem / $memmax ${alignr}'$HILIGHT'$memperc% '$BAR'${membar '$INDENT','$SBAR'}' >> ~/.conkyrc

# Swap check - no sense in display the info if the user does not have any swap.
if [[ $SWAPTOTAL != "0" ]]; then
   echo '' >> ~/.conkyrc
   echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Stylebats:pixelsize='$FONTSIZE'}j${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE'Swap: '$HILIGHT'$swap/$swapmax${alignr}$swapperc% '$BAR'${swapbar '$INDENT','$SBAR'}' >> ~/.conkyrc
else
   echo '' >> ~/.conkyrc
fi

# Top Processes / Ram Hogs
echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}a${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE'${goto '$VOFF'}Highest: ${alignr}CPU     RAM
${goto '$VOFF'}${voffset -5.5}'$HILIGHT'${hr 2}
'$HILIGHT'${voffset -1}${goto '$VOFF'}${top name 1}${alignr}${top cpu 1}  ${top mem 1}
${goto '$VOFF'}${top name 2}${alignr}${top cpu 2}  ${top mem 2}
${goto '$VOFF'}${top name 3}${alignr}${top cpu 3}  ${top mem 3}' >> ~/.conkyrc

# File-system(s)
echo $HEADER'FILESYSTEM(s)${hr 2 }'$BASE >> ~/.conkyrc
echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}Y${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE'Disk I/O: '$HILIGHT'${diskio}${alignr}'$BAR'${diskiograph '$LOGO','$BPER'}'>> ~/.conkyrc

# Detect hard disks & create a bar for each mount point provide info to end user
# Step one crack out the whip on the SCSI (Sata) channel.

# HDSIZE=0 future implementation
# TSPACE=0 future implementation

#MANUALLY ADD RootFS to the mix, the only one guaranteed to be there fs ;)
   MOUNTPOINT=$(df / | awk '{print $6}' | sed '1d')
   STRIPPED="RootFS"

   line=`df | grep -w '/' | sed '/rootfs/d' | cut -d" " -f1`
   HDSIZE=$(df -H $line | sed "1d" | awk '{print $2}')
   if [[ $ISHDDTEMP &&  $ISHDDTEMP ]]; then

      # TEST 2 conditions:
      # 1. NON-EXISTANT OUTPUT IE USB HDD / Burner
      # 2. Permissions to hddtemp SUID
      # Catch erronious output, eject it to null and skip smart checks.
      TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 'Permission denied')
      if ! [[ $TSTVAR ]]; then
         TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 't have a temperature sensor.')
      fi

      # hddtemp permissions are correct and a sensor exists on current drive.
      if ! [[ $TSTVAR ]]; then
         HDTEMP=$(hddtemp $line --unit=f --numeric)
         SMART=$(echo $HDTEMP | grep -v "S.M.A.R.T. not available")
         SENSOR=$(echo $HDTEMP | grep -v "have a temperature sensor")
      fi
   fi
   #TSPACE=$(expr ${TSPACE} + ${HDSIZE})

   # If Temperature was detected populate Conky as well display info to user.
   if [[ $SMART != "" &&  $SENSOR != "" ]]; then
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${hddtemp '$HDTMP'}°F | ${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   else
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   fi

# display the information to end user in pretty columns
echo -en "${undgrn}"
printf '%-15s %-24s % 1s %s\n' \
DEVICE MOUNTPOINT HDTEMP HDSIZE
echo -en "${txtrst}"
printf '%-15s %-24s % 1s    %s\n' \
      "rootfs" "/" "$HDTEMP°F" "$HDSIZE"

awk '/dev\/sd/ {print $1}' /etc/mtab | sort | while read line
do
   MOUNTPOINT=$(df $line | awk '{print $6}' | sed '1d')
   DISPMOUNTPOINT=$(echo $MOUNTPOINT | sed "s/$USER\///g" | sed "s/\/media\///g" | sed "s/media\///g" | sed "s/\/mnt\///g")
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   echo $MOUNTPOINT >> /tmp/mpoint.txt
   if [ $STRIPPED = "/" ]; then
      STRIPPED="Root"
   fi

   HDDTMP=$(echo $line | sed 's/[0-9]*//g')
   #Future implementation?
   HDSIZE=$(df -H $line | sed "1d" | awk '{print $2}')

   #See if hddtemp is installed & SUID executable, if not don't do squat
   if [[ $ISHDDTEMP &&  $ISHDDTEMP ]]; then

      # TEST 2 conditions:
      # 1. NON-EXISTANT OUTPUT IE USB HDD / Burner
      # 2. Permissions to hddtemp SUID
      # Catch erronious output, eject it to null and skip smart checks.
      TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 'Permission denied')
      if ! [[ $TSTVAR ]]; then
         TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 't have a temperature sensor.')
      fi

      # hddtemp permissions are correct and a sensor exists on current drive.
      if ! [[ $TSTVAR ]]; then
         HDTEMP=$(hddtemp $line --unit=f --numeric)
         SMART=$(echo $HDTEMP | grep -v "S.M.A.R.T. not available")
         SENSOR=$(echo $HDTEMP | grep -v "have a temperature sensor")
      fi
   fi
   #TSPACE=$(expr ${TSPACE} + ${HDSIZE})

   # If Temperature was detected populate Conky as well display info to user.
   if [[ $SMART != "" &&  $SENSOR != "" ]]; then
      printf '%-15s %-24s % 1s    %s\n' \
      "$line" "$DISPMOUNTPOINT" "$HDTEMP°F" "$HDSIZE"
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${hddtemp '$HDTEMP'}°F | ${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   else
      printf '%-15s %-24s % 1s     %s\n' \
      "$line" "$DISPMOUNTPOINT" "N/A" "$HDSIZE"
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   fi
done;

# Hard disks continued. HDA/B Etc.?
awk '/dev\/hd/ {print $1}' /etc/mtab | sort | while read line
do
   MOUNTPOINT=$(df $line | awk '{print $6}' | sed '1d')
   DISPMOUNTPOINT=$(echo $MOUNTPOINT | sed "s/$USER\///g" | sed "s/\/media\///g" | sed "s/media\///g" | sed "s/\/mnt\///g")
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   echo $MOUNTPOINT >> /tmp/mpoint.txt

   if [[ $STRIPPED == "/" ]]; then
      STRIPPED="Root"
   fi

   # Hard Drive / USB / Partition: Set temp readings if it applies as per drive."
   HDDTMP=$(echo $line | sed 's/[0-9]*//g')
   #See if hddtemp is installed & SUID executable, if not don't do squat
   if [[ $ISHDDTEMP &&  $ISHDDTEMP ]]; then

      # TEST 2 conditions:
      # 1. NON-EXISTANT OUTPUT IE USB HDD / Burner
      # 2. Permissions to hddtemp SUID
      # Catch erronious output, eject it to null and skip smart checks.
      TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 'Permission denied')
      if ! [[ $TSTVAR ]]; then
         TSTVAR=$(hddtemp $line /dev/null 2>&1|grep 't have a temperature sensor.')
      fi

      # hddtemp permissions are correct and a sensor exists on current drive.
      if ! [[ $TSTVAR ]]; then
         HDTEMP=$(hddtemp $line --unit=f --numeric)
         SMART=$(echo $HDTEMP | grep -v "S.M.A.R.T. not available")
         SENSOR=$(echo $HDTEMP | grep -v "have a temperature sensor")
      fi
   fi

   HDSIZE=$(df -H $line | sed "1d" | awk '{print $2}')
   HDTEMP=$(hddtemp $line --unit=f --numeric)
   SMART=$(echo $HDTEMP | grep -v "S.M.A.R.T. not available")
   SENSOR=$(echo $HDTEMP | grep -v "have a temperature sensor")
   #TSPACE=$(expr ${TSPACE} + ${HDSIZE})

   # If Temperature was detected populate Conky as well display info to user.
   if [[ $SMART != "" &&  $SENSOR != "" ]]; then
      printf '%-15s %-24s % 1s    %s\n' \
      "$line" "$DISPMOUNTPOINT" "$HDTEMP°F" "$HDSIZE"
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${hddtemp '$HDDTMP'}°F | ${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   else
      printf '%-15s %-24s % 1s     %s\n' \
      "$line" "$DISPMOUNTPOINT" "N/A" "$HDSIZE"
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
   fi
done;

# Hard disks continued. RAID MD0 Etc.?
awk '/dev\/md/ {print $1}' /etc/mtab | sort | while read line
do
   MOUNTPOINT=$(df $line | awk '{print $6}' | sed '1d')
   DISPMOUNTPOINT=$(echo $MOUNTPOINT | sed "s/$USER\///g" | sed "s/\/media\///g" | sed "s/media\///g" | sed "s/\/mnt\///g")
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   echo $MOUNTPOINT >> /tmp/mpoint.txt

   if [[ $STRIPPED == "/" ]]; then
      STRIPPED="Root"
   fi

   # Hard Drive / USB / Partition: Set temp readings if it applies as per drive."
   HDDTMP=$(echo $line | sed 's/[0-9]*//g')
   HDSIZE=$(df -H $line | sed "1d" | awk '{print $2}')
   #TSPACE=$(expr ${TSPACE} + ${HDSIZE})

   # If Temperature was detected populate Conky as well display info to user.
      printf '%-15s %-24s % 1s     %s\n' \
      "$line" "$DISPMOUNTPOINT" "N/A" $HDSIZE
      echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$DISPMOUNTPOINT' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc

done;


# Step 2 NFS based NAS
# or better yet write a function & eliminate a large chunk of code.
df | awk '/:/ {print $1}' /etc/mtab | while read line
do
   MOUNTPOINT=$(df | grep $line | awk '{ print $6 }')
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   echo $MOUNTPOINT >> /tmp/mpoint.txt
   fout=$(echo $line | cut -d":" -f1)
   printf '%-15s %-24s %s\n' \
   "$fout" "$STRIPPED" "N/A"
   HDDTMP=$(echo $line | sed 's/[0-9]*//g')
   echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$STRIPPED' ('$fout'): '$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
done;


# Step 3 Burners
awk '/dev\/sr/ {print $1}' /etc/mtab | sort | while read line
do
   MOUNTPOINT=$(df $line | awk '{print $6}' | sed '1d')
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   if [ $STRIPPED = "/" ]; then
      STRIPPED="Root"
   fi
   printf '%-15s %-24s %s\n' \
   "$line" "$STRIPPED" N/A
   HDDTMP=$(echo $line | sed 's/[0-9]*//g')
   echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$STRIPPED' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
done;

# Step 4 - Why stop there snatch up NAS(s) drives.
awk '/\/\// {print $2}' /etc/mtab | sort | while read line
do
   MOUNTPOINT=$(df $line | awk '{print $8}' | sed '1d')
   STRIPPED=$(echo $MOUNTPOINT | sed 's/\/media\///g')
   if [ $STRIPPED = "/" ]; then
      STRIPPED="Root"
   fi
   printf '%-15s %-24s %s\n' \
   "$line" "$STRIPPED" N/A
   # No temp detection via network do not populate TEMP.
   echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}H${font}${voffset -'$ALEFT'}${goto '$VOFF'}'$BASE$STRIPPED' ('$line'):${tab}'$HILIGHT'${fs_free '$MOUNTPOINT'} / ${fs_size '$MOUNTPOINT'}${alignr}${fs_used_perc '$MOUNTPOINT'}% '$BAR'${fs_bar '$INDENT','$SBAR' '$MOUNTPOINT'}'$BASE >> ~/.conkyrc
done;

df -H --total | grep 'total'
# Network re-visit...
if [[ $ACTIVE != 'No Inet' ]];then
   echo $HEADER'ACTIVE NETWORK: '$ACTIVE'${hr 2 }'$BASE >> ~/.conkyrc >> ~/.conkyrc

   # Propagate networking information based on active connection
   echo '${voffset 2}${font VariShapes Solid:pixelsize='$FONTSIZE'}q${goto '$VOFF'}${voffset -'$ALEFT'}'$BASE'Up: '$HILIGHT'${upspeed '$ACTIVE'} '$BAR'${alignr}${upspeedgraph '$ACTIVE' '$LOGO','$BPER' ${font} '$BAR' }' >> ~/.conkyrc
   #${voffset -24}${goto '$VOFF'}Total: ${totalup '$ACTIVE'}
   echo $BASE'${voffset -'$LOGO'}${goto '$VOFF'}'$BASE'Total: '$HILIGHT'${totalup '$ACTIVE'}' >> ~/.conkyrc
   echo $BASE'${voffset -'$ALEFT'}${font VariShapes Solid:pixelsize='$FONTSIZE'}Q${goto '$VOFF'}${voffset -'$ALEFT'}'$BASE'Down: '$HILIGHT'${downspeed '$ACTIVE'} '$BAR'${alignr}${downspeedgraph '$ACTIVE' '$LOGO','$BPER' ${font} '$BAR'}' >> ~/.conkyrc
   echo $BASE'${font}${voffset -'$LOGO'}${goto '$VOFF'}Total: '$HILIGHT'${totaldown '$ACTIVE'}'$BASE >> ~/.conkyrc

   # Provide wireless info if user is using wireless actively.
   if [[ $wlan == 'up' ]]; then

      #Wireless header
      echo $HEADER'Wireless: '$ACTIVE'${hr 2 }' >> ~/.conkyrc

      # ACCESS POINT
      echo '${voffset 2}${font VariShapes Solid:pixelsize='$FONTSIZE'}-${goto '$VOFF'}${voffset -'$ALEFT'}${font}Wireless Access Point: '$HILIGHT'${alignr}${wireless_essid '$ACTIVE'}' >> ~/.conkyrc

      # Connection strength / signal
      echo '${font}${voffset 2}${font Stylebats:pixelsize='$FONTSIZE'}Z${goto '$VOFF'}${voffset -'$ALEFT'}${font}Connection strength: '$HILIGHT'${alignr}${wireless_link_qual_perc '$ACTIVE'}%' >> ~/.conkyrc

      # Connection speed
      echo '${font}${voffset 2}${font Stylebats:pixelsize='$FONTSIZE'}C${goto '$VOFF'}${voffset -'$ALEFT'}${font}Connection max throughput: '$HILIGHT'${alignr}${wireless_bitrate '$ACTIVE'}' >> ~/.conkyrc
   fi

   # echo $HEADER'${voffset -'$ALEFT'}${hr 2}' >> ~/.conkyrc

   # Provide general connection info
   echo -n '${font}${voffset -'$ALEFT'}${font Poky:pixelsize='$FONTSIZE'}w${goto '$VOFF'}${voffset -'$ALEFT'}${font}Local IP: '$HILIGHT'${addr '$ACTIVE'}${alignr}' >> ~/.conkyrc
   echo $BASE'${font}${voffset 2}${font Stylebats:pixelsize='$FONTSIZE'}M${font}TCP Connections: '$HILIGHT'${tcp_portmon 1 65535 count}' >> ~/.conkyrc
fi
echo $HEADER'${voffset -'$ALEFT'}${hr 2}' >> ~/.conkyrc
# Close out with a thin line at the bottom & the Date / Time
echo $BASE'${goto '$INDENT'}${voffset '$TICON'}${font Poky:pixelsize='$FONTSIZE'}d${voffset -'$ALEFT'}${goto '$VOFF'}'$HEADER'${goto '$VOFF'}${alignc}${time %H:%M}, ${time %A %d %B}' >> ~/.conkyrc
echo $HEADER'${voffset -'$ALEFT'}${hr 2}' >> ~/.conkyrc
#echo $HEADER'${voffset -'$ALEFT'}${hr 2}' >> ~/.conkyrc
exit 0 # make sure we exit graciously, we want to add to boot-up with && to allow
# other processes to continue.  No sense in being a hog and slowing boot time.
}

# Help system - I have re-wrote this section to work with code-cleanup.
function Help() {

   if [[ $2 == "" ]]; then
      VersionDump
      PRAM="ALL"
   else
      if ! [[ $3 ]]; then
         VersionDump
         PRAM=$2
      else
         PRAM=$2
      fi
   fi

   case $PRAM in
      ALL)
      echo -e "${bldgrn}Usage: $PROGNAME -<-COMMAND> [OPTION]${txtrst}"
      echo -e "Mandatory arguments to long options are identical for short options."
      echo -e "  possible commands..."
      echo -e ""
      echo -e "  -h   --help      this help message"
      echo -e "  -v   --version   dump version info and exit"
      echo -e ""
      echo -e "${bldgrn}$PROGNAME --help [COMMAND] for further information.${txtrst}";;
      ALL|v|version)
      echo -e ""
      echo -e "${bldwht}Usage version;${txtrst}"
      echo -e "${txtgrn}$PROGNAME -v${txtrst}"
      echo -e "Displays $PROGNAME version number and exits.";;
      ALL|h|help|\?)
      echo -e ""
      echo -e "${bldwht}Useage Help [COMMAND];${txtrst}"
      echo -e "${txtgrn}$PROGNAME -h [COMMAND]${txtrst}"
      echo "Displays this message. For futher information $PROGNAME help [COMMAND]"
      echo -e "or refer to the manpages."
      echo -e ""
      echo -e "man $PROGNAME"
      echo -e "${txtgrn}"
      echo -e "Example: $PROGNAME -h version"
      echo -e "${txtwht}Will display help about the command version${txtrst}"
   esac
   exit 0
}

# Dump Version information
function VersionDump {
   echo -e "${undwht}$PROGNAME $VERSION, $BUILDDATE${txtrst}"
   echo -e "GNU $PROGNAME home page: <http://$WEBSITE/>."
   echo -e "E-mail bug reports to: <theemahn@$WEBSITE>."
   echo -e "Be sure to include the word $PROGNAME somewhere in the Subject: field.${txtrst}"
}

# Command line pre-processor - this section of code is where your functions are called.

    case "$1" in
      -h|--help|-\?) Help $*; exit 0;;
      -v|--version) VersionDump; exit 0;;
      *) Main; exit 0;;
    esac


put the tar in your home folder & open a terminal and execute:
Code: Select all
tar xfv conky-builder.tar.gz
sudo chmod 755 conky-builder.sh
./conky-builder.sh
conky


Tested in Ultimate Edition 2.6.3, Ultimate Edition 2.6.4 Ultimate Edition 3.0 & Ultimate Edition 3.1.
03/07/14: Should work in any Debian / Ubuntu based O/S.

Changelog:
  • 1.0 - initial public release
  • 1.1 - internal release
  • 1.2 - internal release
  • 1.3 - internal release
  • 1.4 - Added distro detection, added resolution detection to set fonts and sizes.
  • 1.05 - Added version compliance for deb based releases
    Added better networking detection / wireless support.
    Added memory output to compare against pae based kernels.
    Added 800 X 600 support, how did I miss this res?
    Added initial support for Ultimate Player (dynamically)
    Added support for all network interface detection / Active.
    Added support for Ultimate Edition 2.6.4 and 3.1 detection
    Added dynamic Wireless support.
    Added CPU Temp / Fan speeds also dynamic.
  • 1.06- Added Radio tray to the mix
    Initiated the anti-cron job mode of thinking, execi can be executed
    w/o the need for a cron job. Let's base this on the end users CPU.
    Added no inet means do not propigate - includes wireless.
    The same across the board when I am done and hopefully will not
    require a cron job.
  • 1.07 - Initiated realtime information, across issues I have set forth.
    Set CPU Temp to display info realtime based on end users processor. A
    single core cpu will not be updated as fast as a quad for example
    please see timeslices in my code.
    Set fan speed accordingly as above.
  • 1.08 Split the conky builder for Ultimate Player info
    May integrate the info as a funtion later.
    Added progress bar for current playing track.
    All info for Ultimate Player is now realtime.
  • 1.09 First inital deb
  • 1.10 Internal release for Ultimate Edition 3.01
    Fixed improper spacing when closing Ultimate Player.
  • 1.11 First public deb release
    Added chroot detection to deb to allow other users to build their custom distro.
    Fixed improper cpu detection on some Intel based processors.
    Began writing weather location / detection via users IP address."
    the above will be a faily difficult procedure... A querry to a API driven
    Geo-positioning map to obtain location based on zip code, once obtained
    a querry to another API driven site noaa.gov. Will require no user
    interaction.
    Fixed improper CPU detection on some Intel based processors.
  • 1.12 Added support for 12.04 precise (Ultimate Edition 3.4 & 3.5) based releases.
  • 1.13 Corrected colors to be only 1 color for now, easier reading on most wallpapers.
    Will eventually write it to detect theme and set colors appropriately.
  • 1.14 Added GPU and Main-board temp detection routines.
    Added initial dual monitor detection / setup routine.
    Added ppp0 network detection to the mix, thanks Seedo Eldho Paul
    Added Hard-disk temperature detection, this was a rough one to sift
    though and match with the drives.
  • 1.15 Internal release to Ultimate Edition 3.5
    Fixed Garbling of GPU / CPU Temp
    Adjusted Colors to coincide with Ultimate Edition 3.5 Theme
    Removed Lua usage. Thanks Mr. Breeg and Goliath for testing
  • 1.16 Set colors in CLI so errors etc. Stand out.
    Added additional distribution detection routines (debugging currently)
    No sense in having to re-write conky builder every-time I build a new OS.
    Display album art if Ultimate Player is Jamming.
    Major code clean up, I am a slob ;)
    Updated distribution logo
    Mass updates to resolution detection routine. Simple once again becomes complex.
  • 1.17 Adjusted output of information to comply with screen width.
    Detection of USB drives - no output of temperature.
    Detection of NAS drives - no output of temperature.
    Added 1280 X 800 resolution; thanks, tanmay.01
    Adjusted Temp detection routines let's not waste space.
    Dual monitors now displayed @0 pixels from the top.
    Took debugging into my own hands on temps.
    Smartly built displaying of temp info into columns.
    If no Swap. No Swap info reported in Conky. Save precious screen resources.
    Reduced top processes to 3.
    Adjusted diskio activity and network activity bars to coincide in length.
  • 1.18 Added NFS based Network Attached Storage detection.
  • 1.19 Ran code-clean and bashdepends on this script, dependencies adjusted.
  • 1.20 Added Video card detection
    Changed colors to coincide with colors of Ultimate Edition 3.4 series
    Added Raid array detection
  • 1.21 Point to point protocol issue gone? Thanks again Seedo
    Implemented enhanced color / bar graphs.
    Added 1366 X 768 resolution, thanks again Seedo
  • 1.22 Check for install of hddtemp. Set as recommended in deb not required
    Fixed errors spitting out when checking temp of USB / NAS drives.
    Adjusted colors for Ultimate Edition 4.0
    Adjusted mountpoints to strip username if applicable (12.10+ changed this)
    Added check for SUID for hddtemp
    Added Hard drive size detection & total filesystem capacity output info
    Added Detecttion of root filesystem
  • 1.23 Added support for 1920X2280 Dual monitor vertical orientation.
    Ran code through bash script maker. Now has help and version system.
conky-builder-1.23_all.deb
Long awaited update, many changes.
(143.69 KiB) Downloaded 445 times
Attachments
conky-builder.tar.gz
conky builder 1.04
(4.06 KiB) Downloaded 499 times
conky-fonts-0.0.1_all.deb
Conky fonts
(428.25 KiB) Downloaded 527 times
conky-builder.sh
1.07
(19.46 KiB) Downloaded 440 times
conky-builder-1.11_all.deb
(12.77 KiB) Downloaded 542 times
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Sabertooth 990FX TUF (The Ultimate Force) R2.0
CPU: AMD FX 8150 Bulldozer Eight Core Black Edition
Ram: 16 GB GSkill Ripjaws Dual Channel DDR3 2133
Video: 2 X ATI 7770HD GHZ Edition 1GB PCI 3.0 Crossfire (main cards) various others for testing
Hard Disks: Over 30 TB Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 10 sata / e-sata ports, HighPoint RocketRAID 640 PCI-Express 2.0 x4 SATA III (6.0Gb/s)
custom software mirrored - tmbackup
Monitors: 4K Samsung 28", HannsG HH281, Various others
730 Watt modular PSU
700 Watt Amp & 4 X 600 Watt speakers
User avatar
TheeMahn
Site Admin
 
Posts: 4193
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 46
Operating System: Ultimate Edition Developer



Re: Conky script

Postby Ttech » Sat Sep 24, 2011 11:08 am

Outstanding, thank you so much. :D
User avatar
Ttech
U.E. Newbie
U.E. Newbie
 
Posts: 6
Joined: Fri Jul 29, 2011 3:36 pm
Operating System: Ultimate Edition 3.1 64 BIT



Re: Conky script

Postby N92 » Sun Sep 25, 2011 1:57 am

cool can't wait to try it.
Computer specs:
Linux Regal
ASUS M4A79XTD EVO / AMD Phenom II X4 955 3.5GHz / Xigmatek LOKI CPU cooler
16GB G.SKILL DDR3 RAM 1600 / Corsair GS800
HIS ATI Radeon HD 5770 1GB DDR5
Seagate Barracuda 500GB 32MB Cache 7,200 RPM

Seagate Barracuda 1TB 32MB Cache 7,200 RPM
Pioneer DVD-RW DVR-2RD / Pioneer DVD-RW DVR-2RD
User avatar
N92
U.E. Graduate
U.E. Graduate
 
Posts: 50
Joined: Fri Mar 12, 2010 5:39 pm
Location: USA, California
Age: 24
Operating System: Ubuntu Dapper Drake



Re: Conky script

Postby TheeMahn » Tue Jan 03, 2012 12:07 am

Am I talking to myself?
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Sabertooth 990FX TUF (The Ultimate Force) R2.0
CPU: AMD FX 8150 Bulldozer Eight Core Black Edition
Ram: 16 GB GSkill Ripjaws Dual Channel DDR3 2133
Video: 2 X ATI 7770HD GHZ Edition 1GB PCI 3.0 Crossfire (main cards) various others for testing
Hard Disks: Over 30 TB Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 10 sata / e-sata ports, HighPoint RocketRAID 640 PCI-Express 2.0 x4 SATA III (6.0Gb/s)
custom software mirrored - tmbackup
Monitors: 4K Samsung 28", HannsG HH281, Various others
730 Watt modular PSU
700 Watt Amp & 4 X 600 Watt speakers
User avatar
TheeMahn
Site Admin
 
Posts: 4193
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 46
Operating System: Ultimate Edition Developer



Re: Conky script

Postby N92 » Tue Jan 03, 2012 1:35 pm

Looks great! thanks
Computer specs:
Linux Regal
ASUS M4A79XTD EVO / AMD Phenom II X4 955 3.5GHz / Xigmatek LOKI CPU cooler
16GB G.SKILL DDR3 RAM 1600 / Corsair GS800
HIS ATI Radeon HD 5770 1GB DDR5
Seagate Barracuda 500GB 32MB Cache 7,200 RPM

Seagate Barracuda 1TB 32MB Cache 7,200 RPM
Pioneer DVD-RW DVR-2RD / Pioneer DVD-RW DVR-2RD
User avatar
N92
U.E. Graduate
U.E. Graduate
 
Posts: 50
Joined: Fri Mar 12, 2010 5:39 pm
Location: USA, California
Age: 24
Operating System: Ubuntu Dapper Drake



Re: Conky script

Postby aL1 » Tue Jan 03, 2012 4:44 pm

The boards' been quiet last few days...

Nice script, thanks!
Gigabyte EP45-UD3P
E8400 @4.22GHz
GSkill PC2-8800 @1192MHz
TRUE120
Xonar D1
M4 64GB
WDCBlack 1T
2 Velociraptors 150GB@
HD4870
Dragon Lord K62
Antec 750W
Asus VH238H LED
User avatar
aL1
U.E. Graduate
U.E. Graduate
 
Posts: 70
Joined: Sun Sep 19, 2010 5:47 pm
Operating System: Ultimate Edition 2.6 64 BIT



Re: Conky script

Postby TheeMahn » Sun Apr 15, 2012 2:29 pm

1.11 I feel is production worthy, I found a few errors in CPU detection. Intel likes to call hyperthreading a processor, sed strips it hopefully will report properly. If you would like to assist in this procedure open a terminal and drop the following and report the output:
Code: Select all
#Count number of processor cores
CORES=1
CORES=`cat /proc/cpuinfo | grep "processor" | sed '/model/d' | wc -l`
echo $CORES "Cpu core(s) Detected."


If it inaccurately reports 2 processor cores and you have only one for example. please also report the output of the following:
Code: Select all
cat /proc/cpuinfo


FOr that matter if you see any error using the deb above please report.
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Sabertooth 990FX TUF (The Ultimate Force) R2.0
CPU: AMD FX 8150 Bulldozer Eight Core Black Edition
Ram: 16 GB GSkill Ripjaws Dual Channel DDR3 2133
Video: 2 X ATI 7770HD GHZ Edition 1GB PCI 3.0 Crossfire (main cards) various others for testing
Hard Disks: Over 30 TB Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 10 sata / e-sata ports, HighPoint RocketRAID 640 PCI-Express 2.0 x4 SATA III (6.0Gb/s)
custom software mirrored - tmbackup
Monitors: 4K Samsung 28", HannsG HH281, Various others
730 Watt modular PSU
700 Watt Amp & 4 X 600 Watt speakers
User avatar
TheeMahn
Site Admin
 
Posts: 4193
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 46
Operating System: Ultimate Edition Developer



Re: Conky script

Postby JOHNNYG » Sun Apr 15, 2012 7:31 pm

Works fine for me !! :D <BREW>
JOHNNYG
Image
Ultimate Eddiction<
Ultimate Edition STUDIO
Ultimate-E
Onyx 64
Pentium 4 processor
2x512 Kingston DDR memory
Maxtor Diamondmax 500 gig
Maxtor Maxline 80 gig, Split for testing only !
Maxtor Diamondmax 500 gig, Storage
Booting 8 OS's, No MS !
ATI 9600 series (RV350 AQ)graphics card
Sony DVD/CD Rewritable Drive DOUBLE LAYER DRU-820A/Sony DRU-800A CD DVD±RW Dual DVD Recorder
Team Leader at
http://www.ultimateeditionoz.com/
Image
Image
Image
User avatar
JOHNNYG
Site Admin
 
Posts: 1456
Joined: Mon Apr 13, 2009 12:02 am
Location: U.S.A. Illinois
Operating System: Ultimate Edition 3.2 32 BIT



Re: Conky script

Postby TheeMahn » Sun Apr 15, 2012 7:59 pm

JOHNNYG wrote:Works fine for me !! :D <BREW>

Thanks, brother... Sorry for the delay in debbing it, but I had a laptop over here this Friday & found flaws. I am a stickler and an error!!! Not on my watch ;) While most ppl do not care this is a script that fires up on bootup sure if it fails exits graciously. Let's say this script hangs as does when using an intel 1.5 ghz single core processor & firing up conky. Something as what may seem simple improperly detecting it as a dual core deter-mental & caused it to hang. My end user experience working on that laptop was nothing short of enjoyment. Resolving issues on a large scale #1 point of interest.

Brother I have missed chewing the fat with you, I believe last time I tried to call you could not get ahold of u.
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Sabertooth 990FX TUF (The Ultimate Force) R2.0
CPU: AMD FX 8150 Bulldozer Eight Core Black Edition
Ram: 16 GB GSkill Ripjaws Dual Channel DDR3 2133
Video: 2 X ATI 7770HD GHZ Edition 1GB PCI 3.0 Crossfire (main cards) various others for testing
Hard Disks: Over 30 TB Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 10 sata / e-sata ports, HighPoint RocketRAID 640 PCI-Express 2.0 x4 SATA III (6.0Gb/s)
custom software mirrored - tmbackup
Monitors: 4K Samsung 28", HannsG HH281, Various others
730 Watt modular PSU
700 Watt Amp & 4 X 600 Watt speakers
User avatar
TheeMahn
Site Admin
 
Posts: 4193
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 46
Operating System: Ultimate Edition Developer



Re: Conky script

Postby onosendai58 » Tue Apr 17, 2012 5:54 am

Doing fine and lookin` great, brother! No temp or fanspeed readouts, but on this Presario CQ60 32-bit, single-core lappy, that`s always been a problem. I have to use CoreTemp in Windows 7 to even know what the temp is and I`m not sure I even have a fan. :lol:
I love Ultimate Edition & Oz Unity
User avatar
onosendai58
U.E. Master
U.E. Master
 
Posts: 417
Joined: Wed Feb 02, 2011 12:43 pm
Location: Dallas, TX.
Operating System: Microsoft Windows

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest