franciscolourenco / done

A fish-shell package to automatically receive notifications when long processes finish.
MIT License
767 stars 70 forks source link

Add option to ignore visible windows in sway #69

Closed ammgws closed 4 years ago

ammgws commented 4 years ago

Motivation

In a tiling window desktop environment, such as sway, windows do not overlap hence they are technically still in the "foreground" even if they are not currently focused (see screenie below).

20200117_23h40m26s

When using done in such an environment, it would be preferable if notifications were only sent if the window was not visible at all (due to being on another workspace etc). For example, in the case of the screenshot above, one might not want done to send a notification even if the window no longer has focus.

This PR adds an option to enable the above behaviour.

franciscolourenco commented 4 years ago

Looks good, thanks!