#!/bin/env bash #=============================================================================== # # FILE: conky_fan.sh # # USAGE: ./conky_fan.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: neon # CREATED: 07/05/16 01:25 # REVISION: --- #=============================================================================== set -o nounset RPM=`cat /proc/acpi/ibm/fan | grep speed: | awk '{print $2}'` LEVEL=`cat /proc/acpi/ibm/fan | grep level: | awk '{print $2}'` echo "${RPM} RPM (${LEVEL})"