i3status-rust icon indicating copy to clipboard operation
i3status-rust copied to clipboard

Is it possible to send notification using tool such as dunst when some block's value get warning/critical?

Open c02y opened this issue 2 years ago • 5 comments

c02y avatar Nov 19 '22 05:11 c02y

No, this is not currently possible. Can you share your usecase?

MaxVerevkin avatar Nov 20 '22 07:11 MaxVerevkin

For instance, when my disk_space block gets critical value and I have to pause the disk IO process or clean some files, but sometimes if I didn't notice the i3status-rust bar, or when I'm in fullscreen mode, so notification will be useful.

For instance when the battery level of gamepad controller from battery block becomes critical (fullscreen game mode), I can change battery before it is dead.

c02y avatar Nov 21 '22 07:11 c02y

I'm not sure we want a status bar to be the center of notifications to be displayed by a different application? I took a look at dunst which (if I got it right) watches from notifications on dbus. Those notifications should be IMHO be generated by a system monitor that is not the status bar.

cfsmp3 avatar Dec 07 '22 22:12 cfsmp3

So yes, implementing this in not too hard, but it seems to be out of scope for this project. Related: #1148.

MaxVerevkin avatar Jan 01 '23 10:01 MaxVerevkin

Since a lot of blocks contain values like warning/critical, maybe implementing such universal command field for warning/critical values can be very helpful, i3status-rust is already checking those values repeatedly in the background, so people don't have to keep another (or maybe multiple) scripts/services running and checking the values in the background.

c02y avatar Jan 01 '23 12:01 c02y