Using Kodi in Wayland mode. And you got to do some work to get Kodi working with external video players in Sway. I made a script with a while loop, that checks if it’s still running. Guess you could put a trap in the script, and then kill the while loop doing that as well. But make sure you sleep before running the while loop to check if mpv is running or whatever video player. Or make two loops.
Would be better to use a trap, and then stop the loop. Hmm, not sure that would work anyways. Too bad you can’t seem to just run the command without the swaymsg command returning something. Didn’t try without exec. Don’t care enough to do so.
I also installed Multimedia Player Remote Interfaces for Kodi no need to change the key settings for MPV. I also installed the Bluetooth Kodi add on from Kodi Repository for Linux Tools.
To get the Bluetooth add on working with Flatpak, you have to add a override, with some talk command, and if using Bluez, the value for the talk is org.bluez.
Don’t see the point in using Gnome. And don’t think GBM works with external video players. Then I get a nice audio delay when unpausing video, which apparently annoys the fuck out of me. If I could find something else to use besides Kodi, I would try using it. I tried with Pipewire and all it’s crap removed, and I still get the audio delay.
Can’t share any scripts, since the Atari VCS is sleeping. But all the info you need, is still on the internet.
And I might need to switch to Sway on my laptop, it might even have Adaptive Sync, wonder if that AMDGPU bug affects it too. Well, even if it does, I like Sway better now. It’s not bloated like Android. You can make it as bloated as you want.
Probably could make a custom smart TV interface with it as well.
Think at least one person has, their config is on GitHub. But using Sway + Kodi is easier.
Also Wayland might get HDR with Kodi in the next release, you could not use the stable version and get it sooner. Don’t care about HDR on my cheap/old TV.
Also, most of the stuff I watch, doesn’t have HDR.