Compare commits
4
Commits
1344625fc9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71aa8ed3aa | ||
|
|
65c4f2eabb | ||
|
|
e1b176a595 | ||
|
|
fe5e2d85f0 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "termato"
|
name = "termato"
|
||||||
version = "0.1.1"
|
version = "0.2.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
repository = "https://github.com/StevanFreeborn/termato"
|
repository = "https://github.com/StevanFreeborn/termato"
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ To enable both desktop notifications and sound notifications with custom times:
|
|||||||
termato -ns 50 10
|
termato -ns 50 10
|
||||||
|
|
||||||
# or with long flags
|
# or with long flags
|
||||||
termato --notify -sound 50 10
|
termato --notify --sound 50 10
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also combine short flags together (e.g. -nsz to enable notifications, sound, and the audio visualizer):
|
You can also combine short flags together (e.g. -nsz to enable notifications, sound, and the audio visualizer):
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
use crossterm::event::{self, Event, KeyCode, KeyModifiers};
|
|
||||||
use crate::msg::Message;
|
use crate::msg::Message;
|
||||||
|
use crossterm::event::{self, Event, KeyCode, KeyModifiers};
|
||||||
|
|
||||||
pub fn handle_event(event: Event) -> Option<Message> {
|
pub fn handle_event(event: Event) -> Option<Message> {
|
||||||
if let Event::Key(key) = event
|
if let Event::Key(key) = event
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ use ratatui::{
|
|||||||
widgets::{Block, Borders, Clear, Paragraph},
|
widgets::{Block, Borders, Clear, Paragraph},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS};
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{Termato, TimerMode},
|
app::{Termato, TimerMode},
|
||||||
constants::SECONDS_PER_MIN,
|
constants::SECONDS_PER_MIN,
|
||||||
};
|
};
|
||||||
|
use crate::{audio::AudioVisualizer, constants::VIZ_NUM_BARS};
|
||||||
|
|
||||||
// use unicode blocks for rendering
|
// use unicode blocks for rendering
|
||||||
// Empty -> " "
|
// Empty -> " "
|
||||||
|
|||||||
Reference in New Issue
Block a user