You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo install rwaybar
rwaybar # generates example config if it does not find a config
$EDITOR ~/.config/rwaybar.toml
To support cargo install rwaybar needs to be published on crates.io
Since we do not clone the repo anymore rwaybar needs to generate the config. A simple 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.
The text was updated successfully, but these errors were encountered:
This would replace:
with:
const CONFIG: &str = include_str!(doc/rwaybar.toml)
combined with afs::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.The text was updated successfully, but these errors were encountered: