ntfy
ntfy copied to clipboard
send notifcation when in another terminal tab
when running with
export AUTO_NTFY_DONE_UNFOCUSED_ONLY=-b
Notification are send only when the window isn't focused, but when one works with multiple tabs open, it will be nice to have notifications sent too. The solution right now is to completely disable this option and accept that notifications will be sent even if the current tab is focused.
This feature would be per-terminal-emulator. The Mac OS emulators already work that way (mostly because of the AppleScript needed to even get it to work at all, I had inspect the tabs), but on linux I just use xprop to determine if the window is focused because it was good enough for me. I personally use GNU screen as "tabs" rather than any terminal emulator's suppport so that's probably what I'd add first.