Command-Line – How to Kill a Specific X Window

bashbatchcommand linewmctrl

Given IDs produced by wmctrl -l, I d like to be able to kill the process linked to the window ID.

How would you suggest to do it?'

Best Answer

Besides listing the PID as described in other answers by Florian Diesch and Serg, you can use -ic option to close the window directly:

$ wmctrl -ic 0x02e00085
Related Question