For my own purposes, I've been documenting Wayland replacements for xdotool, wmctrl and devilspie2, all of which I use extensively (Ubuntu 22.04, running X.Org instead of Wayland).
I've created a table, which I'll add to when (if!) replacements become available, or if someone posts suitable replacements in the comments.
For now, this table is mostly empty, meaning that I still cannot use Wayland without considerable inconvenience. I have to stick to X.Org for now.
X.Org tool Wayland equivalent xdotool … --clearmodifiers Unavailable xdotool type [pattern] ydotool type [pattern]
Comments:
ydotool (for now) needs to be manually installed, configured and enabled.
The one in the standard repositories (22.04) is badly out of date.xdotool key [key]
E.g.
xdotool key super+F1ydotool key [key]:1 [key]:0
E.g.
ydotool key 125:1 59:1 59:0 125:0
Comments:
ydotool uses key codes instead of symbolic names.
Get the codes from file /usr/include/linux/input-event-codes.h
You usually have to be precise about key-down (:1) and key-up (:0).xdotool search --pid=[pid]
xdotool search --name [name]
xdotool search --onlyvisible …Unavailable xdotool getwindowfocus
xdotool getwindowfocus getwindowname
xdotool getactivewindow
xdotool windowfocus
xdotool windowraise
xdotool windowmove [window ID][edge]% yUnavailable wmctrl -d
wmctrl -i -a [window ID]
wmctrl -i -r [window ID] -b add,maximized_vert
wmctrl -i -r [window ID] -b add,skip_taskbar
wmctrl -i -r [window ID] -t [desktop]Unavailable devilspie2 Unavailable
This is a pretty poor show, unfortunately. I hope that it improves massively before X11 finally sees its final deprecation. It has served us well, and will deserve its retirement.
Bookmarks