feat: make notification urgency critical

This commit is contained in:
Moritz Böhme 2023-08-16 17:11:13 +02:00
parent 8912151bdc
commit 37dc5c727a
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -9,7 +9,7 @@ pub fn run_path() -> String {
} }
pub fn send_notifictation(msg: &str) { pub fn send_notifictation(msg: &str) {
match Notification::new().summary("󰀠 Timers").body(msg).show() { match Notification::new().summary("󰀠 Timers").body(msg).urgency(notify_rust::Urgency::Critical).show() {
Ok(_) => println!("Sent notification sucessfully."), Ok(_) => println!("Sent notification sucessfully."),
Err(_) => println!("Failed to send notification."), Err(_) => println!("Failed to send notification."),
}; };