mustafasalih1993 / rsblocks Goto Github PK
View Code? Open in Web Editor NEWA fast status-bar for dwm window manager written in Rust ๐ฆ
License: MIT License
A fast status-bar for dwm window manager written in Rust ๐ฆ
License: MIT License
for now rsblocks works only on linux, need to make it work on bsd too.
tracked the resources usage of rsblocks with htop
when volume block disabled, the max cpu% usage is 0.7
but when volume block enabled, cpu% usage goes from 5.0 to 7.0
It would be cool if there is a brightness widget for laptops devices
When the MPD block is enabled rsblocks fails to run with the following error"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Server(ServerError { code: System, pos: 0, command: "setvol", detail: "problems setting volume" })', src/lib.rs:773:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Host and port are matching in MPD and rsblocks.yml.
My battery name is BAT0 as I edited in the config file, but I'm still getting "check your battery source name"!
Hello and thanks for the nice statusbar!!
I am having trouble with icons. Only the memory icon is showing. What font do I need?
womp
Hey nice project! Would you mind telling me what font you are using in the given screenshots?
config.yml
will be added in the next patch, the user will only use this file to customize instead of editing the source code directly.
Issue
Currently rsblocks spawns subprocesses by Command::new("...")
in several places. This approach presumes the user have the called utility installed on their system. Eg xsetroot
. This can also lead to zombie processes which is less than ideal.
Suggested solution
Retrieve the data programmatically by utilizing the system APIs.
Update the gui via an X11 library eg. breadx.
I have started to implement the suggested solution and hope to have a pull request ready in the coming days.
I made this issue mostly to make you aware about both the problem and that I am working on it.
I changed the display manager from ly to SDDM and the bar is not loading.
Error message on the console:
thread 'main' panicked at 'Failed to create x11 connection: FailedToConnect', /home/zexu/.cargo/registry/src/github.com-1ecc6299db9ec823/rsblocks-0.1.20/src/blockmanager.rs:12:48
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I've updated rsblocks but when I tried to execute from terminal this message is showed:
thread 'main' panicked at 'Failed to create x11 connection: FailedToConnect', src/types.rs:151:48
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
i suck at writing documentations :(
maybe I need to add multi threads to update each item in the bar in a different delay
what font should i install for a normal icon size?
Dear MustafaSalih. I've followed the steps you indicate to install rsblocks, but when I execute rsblocks in st terminal this is shown:
~ (base) rsblocks
thread 'main' panicked at 'Failed to parse config: Message("duplicate field `netspeed`", Some(Pos { marker: Marker { index: 151, line: 4, col: 9 }, path: "." }))', src/config/mod.rs:47:45
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Any clue to resolve it? ... maybe is because I've got activated systray?
Issue
Having the entire project reside in one file is bad for a myriad of reasons, encapsulation, readability etc. Also is the project intended to be used as a library AND a binary?
Solution
Restructure the project into neatly organized modules.
If applicable, delete lib.rs
after restructuring of the project.
Congratulations for this amazing piece of software!
Is it possible to add support for a second bar like the one from the extrabar patch?
What:
netspeed::get_netspeed
panics.
Why:
Paths are not uniform over different distros.
Path in netspeed::get_netspeed
: /sys/class/net/{tx/rx}_bytes/statistics/{interface}
My path /sys/class/net/{interface}/statistics/{tx/rx}_bytes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.