matyama / configs

Configuration and scripts for Ubuntu desktop
MIT License
2 stars 0 forks source link

Find `xdotool` alternative for Wayland #22

Closed matyama closed 4 months ago

matyama commented 1 year ago

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:

Possible alternatives:

matyama commented 1 year 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.

matyama commented 4 months ago

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).