diff --git a/src/index.ts b/src/index.ts index a8a0ed5..19946ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,3 +9,4 @@ export { export { default as Entry } from "./entry"; export { default as Progress } from "./progress"; export { default as TextInfo } from "./text-info"; +export { default as notify } from "./notify"; diff --git a/src/notify.ts b/src/notify.ts new file mode 100644 index 0000000..52fa9f6 --- /dev/null +++ b/src/notify.ts @@ -0,0 +1,5 @@ +import simpleSpawn from "./simple-spawn"; + +export default async function notify({ text }: { text: string }) { + await simpleSpawn("zenity", ["--notification", "--text", text]); +}