NotiFyre icon indicating copy to clipboard operation
NotiFyre copied to clipboard

Exclude interactive commands

Open aero31aero opened this issue 7 years ago • 3 comments

Not sure how this could be done, thus opening an issue. In the initial testing I've been doing, I like the project but there's one thing that holds me back going into this full time - operations like git commit and node and other interactive tools also show notifications which feels like spam.

Couple of solutions that immediately come to mind:

  1. Black List: export NOTIFY_BLACKLIST="git push:node:nmtui".
  2. White List: similar to black list, but only specify commands where notifications should trigger.
  3. Environment Variable: This would be wonderful if possible. Elaborating below:

Use another environment variable, say NOTIFY_ENABLED, and only when it is equal to 1 should the notifications be shown. Now, I could specify a default setting in my .bashrc for this, and then use aliases to trigger these on/off on a per command basis if I see fit. Example:

# bashrc begins
# set it to enabled by default
$ export NOTIFY_ENABLED=1
# set aliases
$ alias notoff="export NOTIFY_ENABLED=0"
$ alias noton="export NOTIFY_ENABLE=1"
# bashrc over.
# run commands
$ notoff; node; noton;
# Or something similar.

aero31aero avatar Nov 26 '17 10:11 aero31aero

Thanks for the issue @aero31aero !

Something like this can surely needs to be done.

kaustubhhiware avatar Nov 26 '17 10:11 kaustubhhiware

Hi, I agree with @aero31aero - this would be very useful. Another example for the blacklist using ssh, I dont need to be notified when exiting that server.

eugenevd avatar Jan 24 '18 09:01 eugenevd

Agreed. This project was a part of a winter of code program, however no one solved this issue. I'll solve this in some time.

kaustubhhiware avatar Jan 24 '18 09:01 kaustubhhiware