current-window-linux
Command line utility retrieving the properties of the current window on Linux.
A relevant Stack Overflow question served as a good starting point which was followed by fetching the source of xprop and extracting the relevant code out of it.