notifyosd.zsh
notifyosd.zsh copied to clipboard
Notify only if window is not in focus
Fixes issue #2 . The notification is displayed only when the window in focus is not the one where the long command was running.
I also cleaned up slightly the code, both tabs and spaces were used, so I put spaces everywhere. And using ` is deprecated so I used $(..) instead.