#Linux System Monitor

1 messages · Page 1 of 1 (latest)

winged token
autumn flume
#

we already have btop and htop

#

whats the selling point?

hexed crypt
#

procps-ng top.c is 7600 lines his is like 300

autumn flume
#

so a suckless project

#

thats nice

autumn flume
# winged token A lightweight system monitoring tool written in C for Linux distributions. Monit...

also i took a look at the repo and here are some suggestions:

  1. normally speaking you wouldn't commit the compiled binary
  2. instead of asking user to compile with gcc and installing manually, you should utilize the Makefile so user can simply make then make install
  3. instead of hardcoding paths and commands, put them in a config file. If you are going for suckless style, use a config.def.h
  4. this is more of an opinionated recommendation but: if you are going for a suckless style which you seem to be, its better to avoid reinventing wheels. which here i would suggest removing the continuous mode, and instruct user to use watch to achieve such functionality. though the project is already small enough so it doesn't matter much here.
  5. if you don't plan on expanding the project to include other functionalities, seem like everything you are doing here are better off as a shell script
  6. lastly, in the makefile, you did -O2 which is fine but suckless projects usually optimize for size over speed so -Os may be a better fit. though again considering the scale it doesnt matter that much
winged token
#

while this one gievs usage and cpu and gpu temp too same for the battery and the ahrd disk

autumn flume
#

Btop has all of them too

winged token
#

for cpu and gpu and battery

#

Features

CPU: Usage percentage and temperature
GPU: Support for NVIDIA, AMD, and Intel GPUs (usage and temperature)
Battery: Level, health, temperature, and charging status
Disk: Read/write statistics and temperature (with smartmontools)
#

here is mine

#

also i updated it and made it in a suckless style

#

i think it works perfect now

#

i hope so

thin swan
#

I think btop does this already
And yes it shows temp for cpu and gpu but i dont know if it shows temp the battery tho

winged token