Xev Keycodes Jun 2026

xev stands for . It is a standard utility included in almost all Linux distributions that run the X Window System (X11). When you run xev , it creates a small window that listens to every event the X server sends to it—mouse movements, window focus changes, and most importantly, key presses.

For many Linux users, xev looks like magic—a blank white window spewing a firehose of technical data into the terminal. But beneath that intimidating output lies the backbone of Linux input customization: . xev keycodes

xmodmap is the classic tool for key remapping. While newer tools like setxkbmap offer more features, xmodmap is still excellent for simple, single-key swaps. xev stands for

: If you still see too much info, use xev | grep -A2 --line-buffered '^Key' to show only the lines containing the keycode. For many Linux users, xev looks like magic—a

Return