Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to disable notifications popup at the end of Pomodoro interval #2290

Open
d2718nis opened this issue Mar 27, 2024 · 1 comment

Comments

@d2718nis
Copy link

Describe the new feature

Add a toggle switch to the Pomodoro settings tab which would allow to opt out of the notifications popup which is shown at the end of each Pomodoro interval.

How does this help you?

Unfortunately the current notification window is very distracting. Having an option to disable it would greatly improve the user experience overall.

I'm using a tiling window manager, therefore when the sound is played, it opens a new browser window src/content/audio/index.html near the focused one, shifting all my other windows aside. Right at the moment I have two options to mitigate this: either make this window floating (and maybe hidden) in my window manager settings, or modify the source code of the extension itself. The latter is not very sustainable, given that the source code of the extension itself is "closed" from some time ago.

If we couldn't add this feature, is there a compromise you can think of?

You could utilize browser Notifications API instead. But still, having an option to opt out of it would be great either way.

@d2718nis
Copy link
Author

In case this would be useful to anyone, my current solution is to add this line to my Sway config file:

for_window [instance="crx_oejgccbfbmkkpaidnkphaiaecficdnfn"] floating enable, move to scratchpad, focus disable

Should also work for i3, the config syntax is almost identical.

I didn't use [window_role="pop-up"] because for some reason Toggl extension sometimes creates multiple notification windows, one of them doesn't have this role in the propagated IPC data. So to hide them all, I need to filter it out by instance, which is actually the ID of the extension in the Chrome store:
https://chromewebstore.google.com/detail/toggl-track-productivity/oejgccbfbmkkpaidnkphaiaecficdnfn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant