mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 17:31:40 -05:00
baraction: Shuffle functions around
Keep the order of definition in sync with the order of usage.
This commit is contained in:
parent
beef2db2ca
commit
e8f7e415f0
1 changed files with 5 additions and 5 deletions
10
baraction.sh
10
baraction.sh
|
@ -36,6 +36,11 @@ print_cpu() {
|
|||
_print_cpu $OUT
|
||||
}
|
||||
|
||||
print_cpuspeed() {
|
||||
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
|
||||
printf "CPU speed: %4d MHz " $CPU_SPEED
|
||||
}
|
||||
|
||||
print_bat() {
|
||||
BAT_STATUS=$1
|
||||
BAT_LEVEL=$2
|
||||
|
@ -76,11 +81,6 @@ print_bat() {
|
|||
fi
|
||||
}
|
||||
|
||||
print_cpuspeed() {
|
||||
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
|
||||
printf "CPU speed: %4d MHz " $CPU_SPEED
|
||||
}
|
||||
|
||||
while :; do
|
||||
# instead of sleeping, use iostat as the update timer.
|
||||
# cache the output of apm(8), no need to call that every second.
|
||||
|
|
Loading…
Add table
Reference in a new issue