Wanting to craft a subprocess call to get a list of all my current windows for Python to use, without installing anything new.
Primarily focused on Firefox, but if a solution works for it and LibreOffice, that'd be even better.
Only this shows me anything related to Firefox
ps -fx
Everything else, "ps", "wmctrl -pl", "xwininfo -tree -root", either shows me nothing much, or a lot of stuff but still no Firefox.
I'm really trying to get the name of the current Firefox tab I'm looking at, but I think that'd be even harder than this?