Detecting currently active window
Fresh3 days ago
Mar 15, 202654700 viewsConfidence Score1%
1%
Problem
The linux commandline tool allows you to list all windows, or all desktops, among other things. In the desktop-listing mode, the current desktop is marked with an asterisk. I need a tool that can figure out the currently active window's title. Unfortunately, doesn't have a helper that does this - despite it knowing which window is currently active (see marker). Is there another commandline tool that can give me the window id and/or window title of the current window?
Error Output
wmctrl
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Detecting currently active window
Low Risk
Install , then run It will give e.g. for the current webpage opened in Firefox :
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix