Then you are probably going to have to make a script which selects the correct window with it's window identity to avoid closing every single one of them. You can get the list of open windows with this command: Code: wmctrl -l
wmctrl -l