xev

Print contents of X events. More information: <https://gitlab.freedesktop.org/xorg/app/xev>.

Install

All systems
curl cmd.cat/xev.sh
Debian Debian
apt-get install x11-utils
Ubuntu
apt-get install x11-utils
Arch Arch Linux
pacman -S xorg-xev
image/svg+xml Kali Linux
apt-get install x11-utils
CentOS
yum install xorg-x11-utils
Fedora
dnf install xorg-x11-utils
Windows (WSL2)
sudo apt-get update sudo apt-get install x11-utils
Raspbian
apt-get install x11-utils

Print contents of X events. More information: <https://gitlab.freedesktop.org/xorg/app/xev>.

  • Monitor all occurring X events:
    xev
  • Monitor all X events of the root window instead of creating a new one:
    xev -root
  • Monitor all X events of a particular window:
    xev -id window_id
  • Monitor X events from a given category (can be specified multiple times):
    xev -event event_category

© tl;dr; authors and contributors