15
submitted 16 hours ago by t0mri@lemmy.ml to c/linux@lemmy.ml

i have a sh script. i want libnotify to call that script instead of dunst or anything

thanks

top 2 comments
sorted by: hot top controversial new old
[-] rxxrc@lemmy.ml 7 points 13 hours ago

Libnotify backends are D-Bus services, which isn't really something you'd want to implement in a shell script. Going by some source code I just found, it looks pretty straightforward to do in Python, so that's one option.

The easier option would be to use an existing notification daemon that lets you disable the default GUI and specify a script to run as a trigger, but I don't actually know of any like that.

[-] some_guy@lemmy.sdf.org 5 points 14 hours ago

We need more info. What’s the script code? What are you trying to accomplish?

this post was submitted on 10 Jan 2025
15 points (89.5% liked)

Linux

48920 readers
690 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS