pfw — print focused window
pfw
Print the ID of the currently focused window to stdout.
stdout
pfw acts on the X display specified by the DISPLAY variable.
DISPLAY