while studying/ Understanding GNOME, I have come across below two commands over the web.
dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.panel.actor.hide();'
dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview._dash.actor.hide();'
1st command hides the Top Panel
2nd command hides the Dash.
But during the session I use Alt+F2 r to restart the shell. During this restart of shell, both the commands becomes to Original State.
Image Showing there is no Top Panel

Image Showing there is no Dash

Is there a way to make these two commands persistent even after gnome-shell restart?
Running Ubuntu 18.04, 19.04 & 19.10