• 0 Posts
  • 23 Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle



  • 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:

    • You can use pgrep to detect if a process with a given name is running
    • You can write to /dev/pts/0 to trigger a desktop notification
    • You can drop it into a cron job to run it automatically on a schedule

    As a test, the following command will look for a process called syncthing and send a desktop notification if it can’t find it:

    pgrep syncthing || echo "Syncthing is not running > /dev/pts/0"
    

    To set up a cron job:

    1. open a terminal
    2. open the editor with crontab -e (if you need to pick an editor, nano will probably be your best bet, it’s easiest to use)
    3. in the editor, add the following line to the end of the file: 0 * * * * pgrep syncthing || echo "Syncthing is not running" > /dev/pts/0
      • The 0 * * * * sets up the schedule (on the 0th minute of every hour, every day of the month, every month, on every day of the week)
      • Everything after that is the command to run
    4. save and quit

    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_DIR to step (4) [edit-3] removed references to libnotify, replace with /dev/pts/0 (Nice one, @sun_is_ra@sh.itjust.works !)











  • I’m replying with a sample size of N=1 so don’t take too much from it, but I suspect it’s not the typical response (at least, not yet anyway).

    People do often seem to complain about bot accounts but I don’t know how much of those are in the space of stirring up hot topics to generate content, vs informational (or dis-informational) bot accounts posting on requests for help or explanations.

    I guess if people are seeking answers for something, having a bot feed responses to suit some kind of agenda is entirely a possibility, so I wouldn’t write it off as something that could happen. To that end, being wary of posts that look like they might be generated due to the tone/content is probably fair enough.






  • On “we as people can perceive imperial temperatures a lot better than metric,” I’d agree to disagree here - Celsius is pretty straight-forward. Temperate is temperature, it’s just about what numbers you’re assigning to which temperatures.

    0°C is when water freezes, and 100°C is when water boils. A 10°C day is cold, a 20°C day is mild, a 30°C day is hot, and a 40°C day is when you melt.

    Whatever you grew up with is probably what is going to be easiest for you to comprehend, but Celsius is no more difficult or less perceptible, just a different value range.