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?