tundra icon indicating copy to clipboard operation
tundra copied to clipboard

Add browser window title detection too

Open K0-RR opened this issue 1 year ago • 2 comments

I watch anime online in my browser instead of locally. It would be nice if Tundra could detect Firefox/Chromium running and monitor the current tab name. I know that not all websites will change the title depending on the episode, but most do.

K0-RR avatar Oct 24 '23 17:10 K0-RR

Do you have any examples of websites that do that? I thought MPRIS-based detection would suffice in these cases; I believe both Firefox and Chrome report media being played to the operating system. Another question is whether Tundra can make use of that in the current version - that's why I'm asking for specific websites so I can test them individually.

I'm unsure if there's a way to enumerate window titles on Wayland, so that might reduce the usefulness of such a feature, especially in the future, when more distros switch to Wayland by default. Ideally, other methods should be explored.

m4tx avatar Nov 07 '23 23:11 m4tx

Do you have any examples of websites that do that? I thought MPRIS-based detection would suffice in these cases; I believe both Firefox and Chrome report media being played to the operating system. Another question is whether Tundra can make use of that in the current version - that's why I'm asking for specific websites so I can test them individually.

I'm unsure if there's a way to enumerate window titles on Wayland, so that might reduce the usefulness of such a feature, especially in the future, when more distros switch to Wayland by default. Ideally, other methods should be explored.

dunno for other window managers, but hyprland gives you the details of the windows and their title with hyprctl clients

ligmaSec avatar Nov 08 '23 18:11 ligmaSec