Settings window seems to be hidden on Ubuntu 18.04 after changing Ubuntu dock's position

I also had the same problem i found out that it is because of join display enabled in the display settings So what i did is changed the dock position to left using

gsettings set org.gnome.shell.extensions.dash-to-dock dock-position LEFT

Now the settings window would show up From there you can go to Devices->Displays and change display mode to single display