3

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

  • Go to "All Settings/Keyboard/Shortcuts/Windows/" search for Close window entry (i think default is Super+L) – C.W. Sep 12 '17 at 8:44
  • @C.W. I cannot find the setting. To have a terminal command for the change would be great. – Léo Léopold Hertz 준영 Sep 12 '17 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. – C.W. Sep 12 '17 at 8:57
  • @C.W. Yes, it is the graphical control center, the one which I am using but no Shortcuts or Windows there. – Léo Léopold Hertz 준영 Sep 12 '17 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. – C.W. Sep 12 '17 at 11:26
2

After looking at all the possible keybindings using

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

and looking through the files in:

/usr/share/gnome-control-centre/keybindings/

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. – Léo Léopold Hertz 준영 Sep 12 '17 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 '17 at 3:03
1

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/ctrl-click-close@nohum.github.com/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.

0

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 ... – don_crissti Sep 12 '17 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.