Giter VIP home page Giter VIP logo

zfxtop's Introduction

fetch top written by bubbletea enjoyer 🐬


Description 📖

Historically I don't use bars like polybar/waybar and so I have nowhere to put information about time, CPU load, RAM usage, disk usage, and other cool stuff so I decided to write a little tui utility for this purpose. Also I tried to make it as nice and nice to use as i can.

At this point zfxtop is in a very early stage of development so feel free to open an issue with your problems and suggestions.

The code is written in Go because it is blue 🥤.

Note that this is only compatible with the linux kernel and x86 cpus at this time.


Installation ☁️

with curl

curl -sSL raw.githubusercontent.com/ssleert/zfxtop/master/install.sh | sh

with wget

wget -qO- raw.githubusercontent.com/ssleert/zfxtop/master/install.sh | sh

with aur

yay -S zfxtop

Configuration ⚙️

I decided that using toml or yaml makes no sense for such small configuration files, but it increases code size, so I decided to use ini

~/.config/zfxtop/conf.ini
config file example
[tui]

# time between info update in millisecond
update = 100

# requires nerd font
icons = true

# can be rounded, sharp, double, ascii, dot
borders = rounded

# enable or disable colors
colors = true


# colors are set in the 256-color palette
[colors]
faint  = 238
mid    = 245

load0  = 27
load1  = 63
load2  = 99
load3  = 135
load4  = 171
load5  = 207

tempr0 = 49
tempr1 = 79
tempr2 = 109
tempr3 = 139
tempr4 = 169
tempr5 = 199

list0  = 109
list1  = 79
list2  = 169

Building 📦

install Go before it

git clone https://github.com/ssleert/zfxtop.git
cd zfxtop/
./scripts/build.sh

If you have a CPU with amd64 architecture you can try to build with optimizations

# v2, v3, v4 supported
GOAMD64=v3 ./scripts/build.sh

with podman/docker

podman build . -t zfxtop
podman run -it --rm --name zfxtop zfxtop

btw you can set alias with podman and use it as regular command

alias zfxtop="podman run -it --rm --name zfxtop zfxtop"

Contribute

Before contributing, please run contribute.sh script

./scripts/contribute.sh

made with 🫀 by sfome

zfxtop's People

Contributors

ferrreo avatar lucas-101 avatar mrpete13 avatar mxmvncnt avatar ssleert avatar wallentx avatar webgtx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zfxtop's Issues

Temp is 0 for AMD k10temp

As above, it's reading 0 for AMD for temps.

I can read the temp myself at: /sys/class/hwmon/hwmon6/temp1_input

I think line 292 of depend.go needs to be something like

if string(f) == "coretemp\n" || string(f) == "k10temp\n" {

Though after taking a second look I don't think the averaging code is correct as k10temp provides temps for each CCD as well as the hotspot temp so averaging them isn't correct. Should just take the hotspot (Tctl in the _label file).

image

Crashes on WSL since it cant detect any temprature sensors

On WSL (arch linux) it will complain about open /sys/class/hwmon: no such file or directory, since windows does not pass those to WSL I presume.

image

Regardless, I reckon a small check can be implemented to see if these sensors are present or not and just provide a small warning about it instead of not being able to run the program altogether.

Term size

Shows correctly in values
const (
SizeY=30
SizeX=67
)
so that var tsx has a minimum value of 68
file internal/draw/draw/draw.go
imagen

runtime error: invalid memory address or nil pointer

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x55be51826947]

After running for a 1 or 2 seconds this error shows up.
I installed zfxtop from AUR

Term size too small

when I try to run zfxtop I get an error that says that the term size is too small
Screenshot_2023-02-27-10-18-56_1920x1080

dosn't detect my swap

I have a swap partition witch is used by the system and displayed in other programmes like btop but it dosn't show up in this script

love it btw <3

No icons

Works well but drive icons not showing. Didn't compile though..

value deoesn't finded

executing zfxtop both by compiling myself and using the distributed binary result in this line and nothing else.
i added manually the conf file in the readme in case it changed anything, but it didnt

arm64 is unsupported

I tried to run the install script on arm64 macOS but got error: arm64 is unsupported. Would be nice a version for arm64 is released.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.