For what it is worth;
Unless you have a backup, there is no easy way to "restore" what should be in any specific place on the system disc.
As the OS is installed a number of tasks get done, among others installation of a multitude of software packages - where each of them set up the specific requirements for itself.
Without a backup your best option is to:
- Boot using a live disk/usb (the install-ubuntu USB!)
- Mount a spare disk.
- Copy your important files over to the spare disk.
- Re-install.
"Important files" might include your $HOME/.config/ dir to begin with, and maybe some other ".name/" dirs and files in your home dir - if not all.
After reinstalling I would look through those files for hints on settings.
NOTE: I would NOT replace the installed settings files, but check for differences only, then re-create the important settings with the related re-installed application - as a first choice.
Blindly replacing files has a tendency to wreak havoc in the worst case.
That in contrast to pure data files that you have created by other means, e.g. jpg, mp3, doc -files and similar.