0

I would like to make a new keyboard shortcut that does exactly what alt+f4 does right now. I'm using Ubuntu 16.04.

I know how to create a custom keyboard shortcut to execute a shell script, but I don't know what to do to close the current window like alt+f4does.

Just to clarify, I do not want to change what alt+f4 does, but I want to add another key combination with the same functionality.

Thanks! (I prefer a solution without installing a new program, except an apt package)

abu_bua
  • 10,783
  • Welcome Alek! Please try to format your post in a more beautiful way. – abu_bua Jun 25 '18 at 14:11
  • I don't know if there is an answer on AskUbuntu, but this one might be what you are looking for: https://superuser.com/a/757524/440143 – Terrance Jun 25 '18 at 14:17
  • What do you mean by "current window"? If it is a terminal, you can end the terminal session by pressing <Ctrl+d> (equivalent of exit command). – N0rbert Jun 25 '18 at 14:53

1 Answers1

0

I found a solution: http://tripie.sweb.cz/utils/wmctrl/ and Close active window from terminal where helpful.

You do have to run sudo apt install wmctrl but it it OK