Ubuntu AppIndicator That Displays Bash Scripts Output On The Panel: Sysmonitor Indicator

Install Sysmonitor Indicator in Ubuntu 

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor

If you’re using an older Ubuntu version (or for Ubuntu 14.04 users who don’t want to add the PPA), grab the Sysmonitor Indicator deb file from HERE.

How to get Sysmonitor Indicator to display bash scripts output on the panel

How To Delay Startup Applications In GNOME / Unity [Quick Tip]
How To Delay Startup Applications In GNOME / Unity [Quick Tip]

 

Examples

– display the current CPU frequency for the first core:

How To Delay Startup Applications In GNOME / Unity [Quick Tip]

 

echo $(grep "cpu MHz" /proc/cpuinfo | head -1 | cut -d ' ' -f3 | cut -d '.' -f1) MHz

 

sum=$(for line in `grep "cpu MHz" /proc/cpuinfo`; do echo "$line" | sed -e '/cpu/d' -e '/MHz/d' -e '/:/d' | cut -d '.' -f1;  done | paste -sd+ - | bc)
cores=$(grep "cpu MHz" /proc/cpuinfo | wc -l)
echo $(($sum/$cores)) MHz

– display your public IP address on the panel (make sure “curl” is installed):

How To Delay Startup Applications In GNOME / Unity [Quick Tip]

 

curl ipv4.icanhazip.com
Other websites you can use to get your current public IP address as plain text (useful to get the IP via “curl”, like in the command above): ifconfig.me and ipecho.net/plain .– check if a website is up or down: display “☺” on the panel if it’s up and “☹” if it’s down (make sure “wget” is installed):

How To Delay Startup Applications In GNOME / Unity [Quick Tip]

 

if wget -O /dev/null webupd8.org > /dev/null; then echo "☺"; else echo "☹"; fi

 

– display a countdown to the Ubuntu 14.10 release:
How To Delay Startup Applications In GNOME / Unity [Quick Tip]

 

echo $(( ($(date --date="141016" +%s) - $(date +%s) )/(60*60*24) )) days