Re: a tool like xte(1) but for Wayland?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Apr 16, 2024, at 15:22, Don Marti <dmarti@xxxxxxx> wrote:

I  have some old shell functions that use xte to fake some keyboard input. For example, this is a function to run its argument(s) in a new gnome-terminal tab.

run_in_tab ()
   xte 'keydown Control_L' 'keydown Shift_L' 'key t' 'keyup Control_L' 'keyup Shift_L' 'sleep 1' "str exec $*" 'key Return'

Is there a tool packaged in new Fedora versions that's like xte, but for Wayland?

One of the security measures a that Wayland gives you is the limitations on the ability of other apps sending (or reading) key press events in other apps (including the desktop). This means that tools like xte and xdotool won’t work except in XWayland apps. 

There are tools like ydotool ( but they need direct access to /dev/input, which generally need root access (and if every app can read it, it’s just as bad as X). 

I suspect this is something a GNOME extension would replace, and not by sending key presses but replicating the results. 

Jonathan Billings
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
List Guidelines:
List Archives:
Do not reply to spam, report it:
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux