Who's got the focus?
May 12, 2010 10:53 PM Subscribe
On MacOS, I can say osascript -e 'set myapp to name of (info for (path to frontmost application))'
to print the name of the program that currently has focus, in a way that's useful for shell scripting. How can I get the same information in a graphical session on Linux?
posted by fantabulous timewaster to Computers & Internet (21 answers total) 5 users marked this as a favorite