this post was submitted on 19 Oct 2025
        
      
      33 points (100.0% liked)
      Linux
    59278 readers
  
      
      881 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
        founded 6 years ago
      
      MODERATORS
      
    you are viewing a single comment's thread
view the rest of the comments
    view the rest of the comments
I know you're looking for a desktop solution, but here's something that you can try in case you can't find one -- I'm betting that having a solution is better than having none!
So I just had a quick muck around:
pgrepto detect if a process with a given name is running/dev/pts/0to trigger a desktop notificationAs a test, the following command will look for a process called
syncthingand send a desktop notification if it can't find it:To set up a cron job:
crontab -e(if you need to pick an editor,nanowill probably be your best bet, it's easiest to use)0 * * * * pgrep syncthing || echo "Syncthing is not running" > /dev/pts/00 * * * *sets up the schedule (on the 0th minute of every hour, every day of the month, every month, on every day of the week)If you ever want to get rid of it, just open the cron file again (
crontab -e) and remove the line.I gave this a go on KDE under Wayland and it seems to do the trick. Good luck, I hope you find what you're looking for!
[edit-1] added step (2) to install libnotify-bin in case you don't have it already. [edit-2] added
XDG_RUNTIME_DIRto step (4) [edit-3] removed references to libnotify, replace with /dev/pts/0 (Nice one, @sun_is_ra@sh.itjust.works !)I went for this one and it works with both
notify-sendand/dev/pts/0. Not sure why it is better, but I opted for the latter. Simple, lightweight and versatile, suitable for any process.Any KDE Plasma users reading this, to enable notifications history for these you can follow the instructions here. Many thanks everyone.