diff options
| author | benj <benj@rse8.com> | 2021-06-19 16:40:00 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2021-06-19 16:40:00 -0700 |
| commit | 727eb3208ceac2f80559f166f3b34e41d40c958e (patch) | |
| tree | 9cb6a4d7ea61fd955cb1fe2f3060eb516ae8a60a /des/i3/i3blocks/scripts/genfan | |
| parent | 05b44b0acbc88b5fc5a8c48a7a8b80825088772b (diff) | |
| download | setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar.gz setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar.bz2 setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar.lz setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar.xz setup-727eb3208ceac2f80559f166f3b34e41d40c958e.tar.zst setup-727eb3208ceac2f80559f166f3b34e41d40c958e.zip | |
i3config for laptop; likely going to need to split this up -- otherwise it's a headache
Diffstat (limited to '')
| -rwxr-xr-x | des/i3/i3blocks/scripts/genfan | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/des/i3/i3blocks/scripts/genfan b/des/i3/i3blocks/scripts/genfan index 7a52e8b..b14c730 100755 --- a/des/i3/i3blocks/scripts/genfan +++ b/des/i3/i3blocks/scripts/genfan @@ -6,9 +6,8 @@ ICON_FAN="" IFS=$'\n' for i in $(sensors | grep RPM); do RPM=$(echo $i | awk '{print $2}') - if [ "$RPM" -ne "0" ]; then - FAN_RPMS+="$ICON_FAN $RPM " - fi + FAN_RPMS+="$ICON_FAN $RPM " done -echo "${FAN_RPMS[@]}" +# trim trailing whitespace +echo "${FAN_RPMS[@]}" | awk '{$1=$1;print}' |
