sardemff7 / j4status

Status line generator
https://sardemff7.github.io/j4status/
GNU General Public License v3.0
47 stars 9 forks source link

Feature: Unusual system state detection #6

Closed acrisci closed 10 years ago

acrisci commented 10 years ago

So every now and then, I will come across a bug in systemd, or maybe by my own mistakes cause some sort of problem on my system that may be difficult to detect until I require the full resources of the system.

For instance, a script or application may be in an infinite loop without any immediate indication and many times the first way I notice this is by the rising temperature of the room.

So this is a feature request for some feature that will allow me to run some sort of light system diagnosis at some interval and alert me if this test fails. Maybe something as general as running a script and reporting the exit code unless zero will do.

sardemff7 commented 10 years ago

So, basically, a script totally unrelated to j4status that can:

  1. Put some string in a file for the file-monitor plugin (which is going to gain a few features to make it more i3blocks-like)
  2. Call notify-send for real user notification

I am pretty sure you can make that on your own. :-)

sardemff7 commented 10 years ago

Just to make it clear, j4status’ purpose is to query then print system information, not really to run checks itself. Future features of file-monitor will allow to run an executable (or a script) at some interval or continuously to create sections. Combined with an output plugin of your own (that can wraps the i3bar plugin if needed) that should allow you to do everything you might want.