commit 40bb9926922591a8b021b23123542a1954cdca16 from: gonzalo date: Sat Jun 06 21:16:19 2020 UTC avoid the moving termbar by reserve 4 characters for the cpu freq. commit - 6d52e8a508611fa78f42e01cb8512f4a3befa854 commit + 40bb9926922591a8b021b23123542a1954cdca16 blob - b56e37221d2680a86ccb90cc1417c0389d685250 blob + efefee80b0589574f903918fab262ba0f0ff4123 --- termbar/termbar +++ termbar/termbar @@ -17,8 +17,8 @@ today() cpu() { - CPU_SPEED=$(sysctl hw.cpuspeed | cut -d "=" -f 2 | cut -d "." -f 1) CPU_TEMP=$(sysctl hw.sensors.cpu0.temp0 | cut -d "=" -f 2 | cut -d "." -f 1) + CPU_SPEED=$(printf "%4s" $(sysctl hw.cpuspeed | cut -d "=" -f 2 | cut -d "." -f 1)) } bat()