danieldg / rwaybar Goto Github PK
View Code? Open in Web Editor NEWA taskbar for wayland compositors.
License: MIT License
A taskbar for wayland compositors.
License: MIT License
This would replace:
git clone https://github.com/danieldg/rwaybar
cd rwaybar
cargo build --release
cp target/release/rwaybar <somewhere>
cp doc/rwaybar.toml ~/.config/
$EDITOR ~/.config/rwaybar.toml
with:
cargo install rwaybar
rwaybar # generates example config if it does not find a config
$EDITOR ~/.config/rwaybar.toml
const CONFIG: &str = include_str!(doc/rwaybar.toml)
combined with a fs::write_all(config_path, CONFIG.as_bytes())
when the config is not found should do the trick.----------------------- Edit ----------------------
I just realize I can also use cargo install --git https://github.com/danieldg/rwaybar
. However I still think it would still be nice to have this on crates.io.
As of Pop-os 22.04 is using Pipewire instead of Pulseaudio. While pipewire should be backwards compatible rwaybar no longer shows the volume as of Pop-os 22.04. Most distros plant upgrade to upgrade to pipewire sometime in the future.
As a first step I think rwaybar would need a clear API for the audio back-end. Then the first implementation could use a compile time feature to switch between implementation. Later it could be auto detected.
An alternative would be figuring out why the volume is not shown on Pipewire even though it should be backward compatible.
Hi!
Would you consider publishing pulse_tokio
module on crates.io? Or maybe it would be possible to upstream it?
Thanks!
Hi, I am trying to learn how to produce graphics through wayland/wlroots.
I want to get started on how do I like produce graphics on wayland, like what should I do, can I please be given the bare minimal to start on?
Hi there, first of all thanks for building a fast zero dependency Wayland compatible bar with excellent documentation in the wiki.
When I started using rwaybar I copied the default config however I then got greeted by less then ideal errors (mostly Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
). By eliminating most of the config I quickly found out it was due to incorrect font paths.
I think rwaybar could be made easier with better error handling. In the source I saw you bubble errors up using Box<dyn Error>
. I have found color_eyre a wonderfull (drop in!) replacement for that. It would make it easy to add context to an error such as the one above.
For example the font not found line:
Line 27 in a8425f4
could become:
use color_eyre::{Result, eyre::WrapErr};
pub fn new(name: String, path: PathBuf) -> Result<Self> {
let file = File::open(&path)
.wrap_err_with(|| format!("Could not open font {name} at given path {path:?}"))?
I stumbled upon this project through GitHub and am very happy to see a bar that doesn't depend on gtk. The name, to me, just doesn't roll of the tongue well. I have some suggested names wraybar, raybar, or rubar. This is just a suggestion and not a really productive one. (I don't know rust)
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.