You are not logged in.

#1 2017-08-30 15:57:29

MrHritik
Member
Registered: 2017-06-26
Posts: 20

[Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

https://wiki.archlinux.org/index.php/xf … w_shortcut states to create a shortcut with

xkill -id "$(xprop -root -notype | sed -n '/^_NET_ACTIVE_WINDOW/ s/^.*# *\|\,.*$//g p')"

to kill an X window.

That doesn't seem to work in XFCE. I also tried pasting the code in Alt+F2 box. Nothing happens.
Is the Wiki correct ?

Last edited by MrHritik (2017-08-30 17:58:01)


Arch is my digital family.

Offline

#2 2017-08-30 16:01:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

https://bbs.archlinux.org/viewtopic.php?id=57855

Post it in a terminal and see what the error message is.

Do you have xorg-xkill and xorg-xprop installed?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-08-30 16:04:14

MrHritik
Member
Registered: 2017-06-26
Posts: 20

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

@Trilby Posting in the terminal kills the terminal

Edit: xkill command  works. It even allows to kill a window with mouse click .

Last edited by MrHritik (2017-08-30 16:04:55)


Arch is my digital family.

Offline

#4 2017-08-30 16:10:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

Then what's the output of the subshell commands run from a terminal?

EDIT: actually maybe everything is working.  When you enter that in the "Alt-F2 box" the active window is the "Alt-F2 box", so that gets killed.  What do you expect to happen when you put it in that window?

Last edited by Trilby (2017-08-30 16:14:12)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2017-08-30 16:22:34

MrHritik
Member
Registered: 2017-06-26
Posts: 20

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

@trilby
Actually I set up a keyboard shortcut for that. When I press the shortcut, nothing happens.


Arch is my digital family.

Offline

#6 2017-08-30 17:48:13

toz
Member
Registered: 2011-10-28
Posts: 513

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

Looks like the string processing of keyboard shortcuts may have changed. Try either of the following instead:

bash -c "xkill -id $(xprop -root -notype | sed -n '/^_NET_ACTIVE_WINDOW/ s/^.*# *\|\,.*$//g p')"

... or:

xdotool getwindowfocus windowkill 

...this one requires the xdotool package.

Offline

#7 2017-08-30 17:57:42

MrHritik
Member
Registered: 2017-06-26
Posts: 20

Re: [Solved] Kill window shortcut for XFCE in Arch Wiki doesn't work

@toz thanks! That worked. Edited the wiki accordingly.


Arch is my digital family.

Offline

Board footer

Powered by FluxBB