Views:
13,765
Votes: 11
✅ Solution
Tags:
scripts
wayland
xdotool
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1299008
Title:
Equivalent to xdotool for Wayland
ID:
/2020/12/10/Equivalent-to-xdotool-for-Wayland
Created:
December 10, 2020
Edited: September 7, 2022
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
There is the ydotool package for Wayland:
Package ydotool
Generic Linux command-line automation tool (no X!)
https://github.com/ReimuNotMoe/ydotool
Performs some of the functions of xdotool(1) without requiring X11 - however, it generally requires root permission (to open /dev/uinput)
Currently implemented command(s):
type
- Type a stringkey
- Press keysmousemove
- Move mouse pointer to absolute positionclick
- Click on mouse buttons
N.B. optionally, you can enable and start the ydotoold daemon with:
systemctl enable ydotool
systemctl start ydotool