How to execute Alt + F2 + r + Return (Gnome Shell Reset) through the Terminal
Solution 1:
Insert some delay before sending Return:
xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"
Insert some delay before sending Return:
xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"