1
0
Fork 0
dotfiles/screen/cpufan

29 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
#
# Display speed of CPU fan
#
# Copyright (C) 2013 Mike Gerwitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Why? Primarily for tweaking BIOS configuration for fan speed to quiet a
# noisy fan or to see the fan speed when logging in remotely so as not to
# annoy people who may be physically present and wonder why the PC is
# preparing for takeoff.
#
# One day, fans will not exist within most home PCs.
##
sensors | grep fan1 | awk '{print "\005{+ .y}", $2, "rpm\005{-}"}'