Re:When Discord is open in the background, NVIDIA card will ...
by wizzwizz4 on Wednesday February 01, 2023 @02:41PM
(#34616405)
> According to some people on StackExchange (I didn't test myself)
Link?
> this doesn't work if you're using Discord on Chromium-based browsers […] this doesn't work on Firefox when running native Wayland windows
It seems like a WebExtension using dispatchEvent could solve both these issues.
Re:When Discord is open in the background, NVIDIA card will ...
by mixedCase on Wednesday February 01, 2023 @03:27PM
(#34617114)
> Link?
https://unix.stackexchange.com/a/87839
> It seems like a WebExtension using dispatchEvent could solve both these issues.
Great idea! Couldn't find anything any pre-existing project like that from a quick web search and tbh I have enough side projects as it is, but that would indeed solve the issue for both.
According to some people on StackExchange (I didn't test myself) this doesn't work if you're using Discord on Chromium-based browsers, which seem to reject xdotool events unless the window is focused (which xdotool can do for you, but doesn't work for the PTT usecase). Of course, this doesn't work on Firefox when running native Wayland windows because xdotool is X-only, and ydotool doesn't work either because it emulates a virtual device which would mean you still need to focus the window.