daily commit
This commit is contained in:
parent
0b44b949ab
commit
21bb5f2ebb
@ -1,5 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
use std::fmt;
|
||||
use zbus_notification::NotifyUnit;
|
||||
|
||||
// Structure of a notification
|
||||
struct Notif {
|
||||
@ -68,8 +69,10 @@ fn main() {
|
||||
.insert("urgency".to_string(), "critical".to_string());
|
||||
not.hints
|
||||
.insert("category".to_string(), "network.error".to_string());
|
||||
|
||||
// End of eg. notif
|
||||
truncate_summary(&mut not); //Limit the summary length
|
||||
|
||||
|
||||
|
||||
println!("{not}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user