diff --git a/README.md b/README.md new file mode 100644 index 000000000..46462116f --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +PNMixer-rs +========== + +About +----- + +Rewrite of [nickaln/pnmixer](https://github.com/nicklan/pnmixer) in +[Rust](https://www.rust-lang.org). + +This is meant as a drop-in replacement, but may diverge in feature set +in the future. + +Installation +------------ + +The Rust ecosystem uses [Cargo](https://crates.io/), as such, you need +both the rust compiler and the cargo crate +(usually part of the compiler toolchain), then issue from within +the cloned repository: + +```sh +cargo install +``` diff --git a/src/main.rs b/src/main.rs index c33b13434..0be1def48 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ fn main() { // TODO: error handling #[cfg(feature = "notify")] - init("PNMixer-rs"); + init("PNMixer-rs").unwrap(); flexi_logger::LogOptions::new() .log_to_file(false) diff --git a/src/notif.rs b/src/notif.rs index 6995f3023..e113ab3a1 100644 --- a/src/notif.rs +++ b/src/notif.rs @@ -24,6 +24,8 @@ use ui_prefs_dialog::*; use ui_tray_icon::*; +// TODO: more notifications, such as on alsa error + pub struct Notif { enabled: Cell,