I want to be able to open a new terminal tab in the current terminal window and run a command in the new terminal tab from a script. Note that I don't want to open an entirely new terminal window, just a new tab.
Running the following opens a new tab as desired, but the
echo command gets run in the terminal that executed the script as opposed to getting run in the new tab
#temp.sh xdotool key ctrl+shift+t echo 'hi'
If there's anyway to do this without using Tmux I'd greatly appreciate it!