aboutsummaryrefslogtreecommitdiffstats
path: root/modules/fanspeed
diff options
context:
space:
mode:
Diffstat (limited to 'modules/fanspeed')
-rwxr-xr-xmodules/fanspeed13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/fanspeed b/modules/fanspeed
new file mode 100755
index 0000000..ea6063a
--- /dev/null
+++ b/modules/fanspeed
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Prints the fan RPM
+# Depends on lm_sensors
+
+PREFIX='🌬️ '
+
+get_fan_speed()
+{
+ echo "$PREFIX$(sensors | grep fan1 | awk 'NR==1{print $2}') RPM"
+}
+
+get_fan_speed