Sitelet https://linuxcommandlibrary.com/man/xkill
LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xkill

Force-close X11 windows by clicking

TLDR

Kill window by clicking
$ xkill
copy
Kill specific window ID
$ xkill -id [window_id]
copy
Kill all with matching name
$ xkill -frame
copy
Show button to use
$ xkill -button any
copy

SYNOPSIS

xkill [-id windowid] [-button button] [-frame] [options_]

DESCRIPTION

xkill forcibly closes X11 windows. After running, the cursor changes and the next clicked window is killed.The tool sends a kill request to the X server. This is more forceful than asking the window to close normally.Window manager frames can be targeted. Using -frame kills the window even if clicking the decoration rather than content.Any mouse button can trigger the kill. By default, only button 1 (left click) works. The -button option changes this.Pressing any key cancels xkill without killing a window. This provides an escape if started accidentally.The tool is useful when applications become unresponsive and normal close methods fail.

PARAMETERS

-id WINDOWID

Kill specific window by ID.
-button BUTTON
Button to use (any, 1, 2, 3).
-frame
Include window frame.
-all
Kill all matching clients.
-display DISPLAY
X server display.

INSTALL

sudo apt install x11-utils
copy
sudo dnf install xkill
copy
sudo apk add xkill
copy
sudo zypper install xkill
copy
nix profile install nixpkgs#xkill
copy

CAVEATS

X11 only - doesn't work on Wayland. May lose unsaved data. Doesn't gracefully close applications. Some windows may resist.

HISTORY

xkill has been part of the X.Org utilities since the early days of X11. It provides a simple way to deal with misbehaving X applications.

SEE ALSO

kill(1), killall(1), xwininfo(1), xdotool(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid