Coder Social home page Coder Social logo

rsblocks's People

Contributors

adashoelace avatar begbaj avatar mustafasalih1993 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

Watchers

 avatar  avatar

rsblocks's Issues

Enabling Volume block raises cpu usage

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

Char limit for spotify.rs

If spotify tack name is long, it will hide rest of all blocks, image explains.
image
Suggested solution
May adding chars limit would solve it.

When MPD is enabled rsblocks fails to run

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.

Battery issue?

My battery name is BAT0 as I edited in the config file, but I'm still getting "check your battery source name"!

Better error handling

Issue
At the moment there is more or less no error handling in rsblocks. The program will crash if any error arise due to usage of unwrap() and expect().

Suggested solution
Abstract and propagate error to be handled at the right level using a more ergonomic library than std, eg. fehler or snafu.

Icons

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

What font?

Hey nice project! Would you mind telling me what font you are using in the given screenshots?

Programmatically get data

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.

Bar not appearing after changing display manager

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

rsblocks panicked

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

Multi threading!

maybe I need to add multi threads to update each item in the bar in a different delay

Failed to parse config

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?

Restructure/refactor

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.

extrabar support?

Congratulations for this amazing piece of software!
Is it possible to add support for a second bar like the one from the extrabar patch?

NetSpeed panicking

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

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.