To bring dock to the bottom
$ gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
To bring dock to the center
$ gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
copy from https://askubuntu.com/a/1366908/1426831