From 2c94c42cbd269b9b7fae3ad4d33e31e493e739b4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 12:49:16 +1000 Subject: scheme: add notify opt For sending a notification on error --- src/caelestia/utils/notify.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/caelestia/utils/notify.py (limited to 'src/caelestia/utils/notify.py') diff --git a/src/caelestia/utils/notify.py b/src/caelestia/utils/notify.py new file mode 100644 index 0000000..ad1ef33 --- /dev/null +++ b/src/caelestia/utils/notify.py @@ -0,0 +1,5 @@ +import subprocess + + +def notify(*args: list[str]) -> str: + return subprocess.check_output(["notify-send", "-a", "caelestia-cli", *args], text=True).strip() -- cgit v1.2.3-freya