Closed matyama closed 8 months ago
It turns out that xdotool
partially supports XWayland since v3.20210903.1
. Commit 44a1ed444e42f6a9d9ee42ac3fd25d3eb15e3cdd changes the installation from apt
, which contains an old package, to custom build of the latest stable release.
Unfortunately, this does not solve the issue with Alacritty toggle script because the xdotool
commands it uses are ones of those that are not supported on XWayland.
Instead, 44a1ed444e42f6a9d9ee42ac3fd25d3eb15e3cdd adds WM-agnostic Gnome extension alacritty-toggle
which works on Wayland and serves the same purpose.
Closing this as the xdotool
, together with alacritty-toggle-x11
, was removed in 333022c in favor of the Gnome extension which works fine on both Wayland and X11 (if ever used again there).
xdotool
, as the name suggests, only supports X11. Because Ubuntu 22.04 (LTS) now ships with Wayland as the default WM, there are some tools affected by this change - i.e. not working anymore.Currently this affects mainly the
alacritty_toggle.sh
script which utilizes following xdotool commands:search
with--pid
and--onlyvisible
options to lookup window ID based on PIDgetwindowfocus
to get the ID of currently focused windowwindowactivate
to bring up a window (and potentially switch to another display the window is on)windowmap
/windowunmap
to show/hide a windowPossible alternatives:
ydotool
- supports only commands:type
,key
,mousemove
,click
wtype
- onlyxdotool type
, compositor needs to support thevirtual-keyboard-unstable-v1
protocol but mutter (gnome) does not currently support itwlrctl
- requireswlroots