Skip to content

Commit

Permalink
Change the default alarm sound
Browse files Browse the repository at this point in the history
  • Loading branch information
jkallio committed Jan 15, 2024
1 parent 606e199 commit 8ff06c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ Pomodoro timer is a simple timer that helps you to stay focused on your tasks.

# Installation

TODO
### Download binary

## Compilation from source
- [pomodoro cli (v.1.0.0)](https://github.com/jkallio/pomodoro-cli/releases/tag/v1.0)

Pre-requisites:
- [Rust compilation tools](https://www.rust-lang.org/)
### Cargo

```bash
$ git clone git@github.com:jkallio/pomodoro-cli.git
$ cd pomodoro-cli
$ cargo build --release
$ cp target/release/pomodoro-cli /usr/local/bin/pomodoro-cli
$ cargo install pomodoro-cli
```

# Features
Expand Down
Binary file added assets/ding.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn trigger_alarm(timer_info: &TimerInfo) {
stream_handle.play_raw(source.convert_samples()).unwrap();
} else {
println!("Playing alarm...");
let mp3 = include_bytes!("../assets/alarm.mp3");
let mp3 = include_bytes!("../assets/ding.mp3");
let cursor = std::io::Cursor::new(mp3);
let source = Decoder::new_mp3(cursor).unwrap();
stream_handle.play_raw(source.convert_samples()).unwrap();
Expand Down

0 comments on commit 8ff06c6

Please sign in to comment.