From 63eab2e62c4bb496ac38029930be4ec4b0c0c6a6 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 7 Dec 2023 12:32:45 -0500 Subject: [PATCH] [kde] Add helper to show message using the OSD --- zshrc.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zshrc.org b/zshrc.org index b2d7a34..ebbbfe4 100644 --- a/zshrc.org +++ b/zshrc.org @@ -97,6 +97,14 @@ The other two swap between build and src dirs on my local git checkout } #+end_src +Send a message through OSD + +#+begin_src sh :tangle kde-utils.sh + kde-osd-message() { + qdbus org.freedesktop.Notifications /org/kde/osdService org.kde.osdService.showText alert $1 + } +#+end_src + #+begin_src sh source ~/scripts/kde-utils.sh #+end_src