Press Super. You can browse the windows by TAB. I am thinking how to you can close the window without mouse or touchpad. Unsuccessful attempts

  • backspace
  • alt+fn+f4 (Tyler's proposal)

The feature does not exist as default in the system based on C.W.'s comment. To have a terminal command to make the change would be great in the system settings. You can open and visualise the Gonme settings by gnome-control-center in Terminal, where I cannot find Shortcuts and Windows, see Fig. 1-2.

Fig. 1 Only two menu settings in Windows, not corresponding the feature wanted, Fig. 2 No Shortcuts menu there

enter image description here

enter image description here

Tested on both X11 and Wayland 1.12 so there is no such a feature by default.

OS: Debian 9.1
Window manager: Gnome 3.22 on X11 and Wayland 1.12

  • 1
    Go to "All Settings/Keyboard/Shortcuts/Windows/" search for Close window entry (i think default is Super+L)
    – derwana
    Sep 12, 2017 at 8:44
  • @C.W. I cannot find the setting. To have a terminal command for the change would be great. Sep 12, 2017 at 8:45
  • have you considered to install gnome-control-center or is it already installed? If unsure, try to start it from terminal. I admit i don't know a working terminal command to change the keyboard shortcut settings.
    – derwana
    Sep 12, 2017 at 8:57
  • @C.W. Yes, it is the graphical control center, the one which I am using but no Shortcuts or Windows there. Sep 12, 2017 at 8:58
  • is your gnome-control-center up to date? Try updating or reinstalling it. My live-image of Debian got many more windows entrys.
    – derwana
    Sep 12, 2017 at 11:26

4 Answers 4


After looking at all the possible keybindings using

gsettings list-keys org.gnome.desktop.wm.keybindings

and looking through the files in:


It would seem that this function has not been developed for the Gnome default Windows Manager (mutter). Note: running Fedora 26 with Gnome 3

  • So you propose me that the feature is not existing in Gnome 3.22 at the moment. Sep 12, 2017 at 16:20
  • 1
    Correct, it is not in the current version of Gnome. It may be possible for someone to figure out what the script/function is behind the close button present in that view and map a key to that if it is necessary, however it might be worth requesting the feature at bugzilla.gnome.org/enter_bug.cgi if you don't get a better answer. Hopefully someone who knows gnome better comes up with a better answer.
    – Tyler
    Sep 13, 2017 at 3:03

The only thing I found is this extension, but it allow only closing using Ctrl+Mouse click. Doesn't allow keyboard without mouse.

When you install it to Gnome, you can view source code in file ~/.local/share/gnome-shell/extensions/[email protected]/extension.js or here on Github.

I have workaround in my head, but I don't have enough experience to realize it. (sorry) You should ask some Extension guru or study Extension tutorials.

Extension mentioned above (line 42) uses injection to function event '_onClicked'. Than few lines below there is code this.emit('close-requested'); on line 45, which in my opinion close window in overview. So you should somehow change this event injection to some event when enter is pressed. This will probably allow you use Ctrl+Enter for closing. But this is only my assumption.


I started your Debian version from a live CD.

In "All Settings/Keyboard/Windows/" i found the Close window-shortcut as Alt+F4.

So now i am wondering, do you have a fresh installation or did you customized your debian already? Do you have the newest version (1:3.22.2-3)?

EDIT: I missunderstood the question, you don't want to close a single displayed window, but a selected window while browsing all opend windows.

enter image description here

  • 2
    As already pointed out in comments above, the Alt+F4 shortcut does not work when in overview mode ... Sep 12, 2017 at 12:24

I found another extension called AATWS - Advanced Alt-Tab Window Switcher. There's to much settings that you can do, including bindings another keys to some special functions, in this case I'm using q key to close Tab.

Furthemore you can switch your dock, the behavior of some window, fix any tab in the main screen and also more. By default it changes a little bit the styles of dock or Alt+Tab, but you can deactivate everything and just use keybinds.

For someone who's looking for a official solution I think that's not possible yet.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .