Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-06-23 02:26:17

linuxham
Member
Registered: 2021-06-23
Posts: 2

Keybinding for Close window of focus

I want to implement Shift Super C as a kill the window of focus in Xubuntu. What is the shortcut command to do this?

Thanks!!
linuxham

Offline

#2 2021-06-23 10:37:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Keybinding for Close window of focus

Hello and welcome.

You could just use Alt+F4 to close any active window. If you want to use another keyboard shortcut, the following command will do the same (requires xdotool):

xdotool getactivewindow windowclose

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-06-23 18:02:59

linuxham
Member
Registered: 2021-06-23
Posts: 2

Re: Keybinding for Close window of focus

Thanks very much for the response, where is ALT F4 documented? It's not listed in the Keyboard settings...

Offline

#4 2021-06-23 18:23:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Keybinding for Close window of focus

linuxham wrote:

Thanks very much for the response, where is ALT F4 documented? It's not listed in the Keyboard settings...

The online documentation makes reference to it. Its built-in and pretty much a standard among desktop environments (? not 100% sure about all of them).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-06-26 12:02:08

deanr
Member
Registered: 2021-04-08
Posts: 15

Re: Keybinding for Close window of focus

I've set the Super + Shift + C to close my windows.

Go to Window Manager > Keyboard, find Close Window and click on it, Click edit, type in custom keybinding i.e. Super + Shift + C.

Note: You'll need to delete or reallocate the Super Key = show Whisker Menu key (I don't use any of the xfce menus so this is not a problem for me - I use dmenu and/or rofi).

Last edited by deanr (2021-06-26 12:02:35)

Offline

Board footer

Powered by FluxBB