Notification

master
Kuba Orlik 4 years ago
parent 00dbea3b1b
commit d595ec865d

@ -9,3 +9,4 @@ export {
export { default as Entry } from "./entry"; export { default as Entry } from "./entry";
export { default as Progress } from "./progress"; export { default as Progress } from "./progress";
export { default as TextInfo } from "./text-info"; export { default as TextInfo } from "./text-info";
export { default as notify } from "./notify";

@ -0,0 +1,5 @@
import simpleSpawn from "./simple-spawn";
export default async function notify({ text }: { text: string }) {
await simpleSpawn("zenity", ["--notification", "--text", text]);
}
Loading…
Cancel
Save