How to get the current active window in Ubuntu 22.04?
I need to be able to get the current active Window's app name and page title in Ubuntu 22.04, with Wayland desktop, no matter what the app is. I'll be implementing it in python, so something friendly to that environment would be wonderful!
The ways that work for me in previous versions of Ubuntu don't seem to work properly in 22.04. The ways that work in other Linux distros also don't seem to work in 22.04.
Rather than copying all the details here, I'll link to my post on askubuntu.com:
https:/
Basically, a few methods (like `xprop -root _NET_ACTIVE_
Any help or suggestions would be much appreciated!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Tim McCabe for more information if necessary.