clean up scripts
This commit is contained in:
10
.config/polybar/scripts/system-cpu-frequency.sh
Normal file
10
.config/polybar/scripts/system-cpu-frequency.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
c=0;t=0
|
||||
|
||||
awk '/MHz/ {print $4}' < /proc/cpuinfo | (while read -r i
|
||||
do
|
||||
t=$( echo "$t + $i" | bc )
|
||||
c=$((c+1))
|
||||
done
|
||||
echo "scale=2; $t / $c / 1000" | bc | awk '{print $1" GHz"}')
|
||||
Reference in New Issue
Block a user