How to kill a focused window in Xdotool, but keep some windows out?

Posted on

Problem :

I have a shortcut ctrl+alt+x to kill a focused window with

xdotool getwindowfocus windowkill

I am on GNOME, X11 with lightdm, and when all windows have been killed and I press the shortcut gnome-session restarts, is there a way to keep some windows out?

I want to keep out:

  • X11
  • lightdm


Solution :

I found the solution:

xdotool getwindowfocus windowclose

Leave a Reply

Your email address will not be published. Required fields are marked *