← 返回命令列表

Linux command

wev 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

wev

Example

wev -f [wl_keyboard]

Example

wev -f [wl_keyboard]:[key]

Exclude

wev -F [wl_keyboard]:[key]

Example

wev -M [path/to/file]

Example

wev -g

说明

wev opens an xdg-shell toplevel window on the default Wayland display (via the WAYLAND_DISPLAY environment variable), then prints events associated with that window. It displays keyboard, mouse, touch, and other input events as they occur, similar to xev for X11. This tool is useful for debugging Wayland input handling, discovering keycodes, and understanding Wayland protocol events.

参数

-f _INTERFACE:EVENT_
Include only specified interface/events. May be specified multiple times.
-F _INTERFACE:EVENT_
Exclude specified interface/events. May be specified multiple times.
-M _FILE_
Write keymap to file
-g
Print Wayland globals

FAQ

What is the wev command used for?

wev opens an xdg-shell toplevel window on the default Wayland display (via the WAYLAND_DISPLAY environment variable), then prints events associated with that window. It displays keyboard, mouse, touch, and other input events as they occur, similar to xev for X11. This tool is useful for debugging Wayland input handling, discovering keycodes, and understanding Wayland protocol events.

How do I run a basic wev example?

Run `wev` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _INTERFACE:EVENT_ do in wev?

Include only specified interface/events. May be specified multiple times.