May-24-2020, 07:09 PM
Trying to figure out the name of the current foreground application running, in Linux. Having things like the PID and Windowtitle are nice ... But, I need the application name itself. Like Chrome, nano, vim, etc ... If anyone knows how to do it in a bash script that'd be great also. But, I'll gladly take a python script.