[][src]Function penrose::contrib::extensions::notify_send::notify_send

pub fn notify_send(
    title: impl Into<String>,
    body: impl Into<String>,
    config: NotifyConfig
) -> Result<()>

Send a notification using the notify-send command line program

Example

notify_send("My Notification", "hello from penrose!", NotifyConfig::default())?;

// equivalent to the following on the command line:
// $ notify-send 'My Notification' 'hello from penrose!' -u normal -t 5000