CPU (due to multicore not quite straight forward):
ncpu=$(sysctl -n hw.logicalcpu)
total=$(ps -Ao %cpu= | paste -sd+ - | bc)
usage=$(echo "scale = 2; $total / $ncpu" | bc)
printf "%0.1f%%\n" "$usage"
Total Memory: sysctl hw.memsize
Used: top -l 1 -s 0 | grep PhysMem
1 Like
Got things looking not totally broken!
CJK
August 7, 2019, 7:07am
33
The battery information could also be retrieved using Objective-C methods.
@GoldenChaos - could you make it so that clicking the memory button will clean the memory? Just like 3rd party apps can?
I don't think those "free up memory" tools are doing something I can invoke with a simple terminal command - but I can look into it!
Thanks for responding! I appreciate it!
Free up memory tools just fill up the memory until the system cleans it. There is no use in them (just placebo). The system will automatically free up memory if necessary.
2 Likes
ahhh... thanks for informing me!
Also, @Andreas_Hegenburg , could you check my bug report? Sadly no one has actually responded to my bug report
Here is some evidence from me playing Minecraft. If you watch the video, you can clearly see that despite the lag, there is a screen freeze that happens when I rapidly left click and move my mouse. I belive that this is related to the computer...
To add to the responses above. The following available in the link below:
Battery Percent Left
Battery Time Left
Battery Temperature
CPU Percentage
Memory Free/Inactive/Active/etc.
Network Download & Upload Throughput
A few weeks ago I posted in the forums Tocco , which is a Python utility that is able to grab a good amount of OSX system info. In hopes of speeding things up, I began researching OSX commands that give partial system info and wrote a few bash scripts that some folks in here might find useful.
Do note that the multiline commands can be simply put into one line -- my intention wasn't to make things look obscure. I do not believe there is a feasible way to grab the following out-of-the-box from OS…
1 Like
Good find. I added battery temperature information to thread I linked in here earlier.
It's coming along! Icons are just placeholder while I figure out the optimal layout...
That's weird. Are you getting the negative download throughput naturally?
Yep. Was wondering about that...
Hi ! Thank you for your great work!
I unchecked "Show Percentage" and "Remaining Time" But it still shows remaining time.
is there any way to fix ?
I just bought this app yesterday !
1 Like
That option only affects the menu bar widget - the long-press stats group doesn't have any configurable settings!
Radu
May 29, 2020, 10:32am
47
Hi everyone,
does anyone know if it's possible to have the battery icon on top and the time remaining underneath? Somethine like this:
Very nice development here!
My MacBook just hard-restarted, I think because it got too hot (was on a pillow), so I was wondering if there was any way to display the CPU (or other temperature) on the Touchbar.
It sounds like this is not simple to do, and not included or planned to be added to this neat widget.
What do you think?
Hi there,
I'm trying to do the same thing but only with the icon and the percentage underneath it.
I can't for the life go me get it to work!
@GoldenChaos is it even possible?
BTW thanks for your amazing work! Love it !