toggl / track-extension

Toggl Track browser extension for Chrome and Firefox
http://toggl.github.io/track-extension
Apache License 2.0
1.11k stars 567 forks source link

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

Open d2718nis opened 7 months ago

d2718nis commented 7 months ago

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 commented 7 months ago

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