You are not logged in.
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
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
@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
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
@trilby
Actually I set up a keyboard shortcut for that. When I press the shortcut, nothing happens.
Arch is my digital family.
Offline
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
@toz thanks! That worked. Edited the wiki accordingly.
Arch is my digital family.
Offline