2

I want to change the default settings for Ubuntu. Such as the settings in Gnome Tweaks. And settings in Gnome Settings. And I want it to be there even if I compile the OS with Ubuntu Imager.

muru
  • 197,895
  • 55
  • 485
  • 740
Master16
  • 139

1 Answers1

2

create a text file named 20_my-settings.gschema.override with below content..

# My Default Settings #

[org.gnome.desktop.interface] gtk-theme = 'Nordic-darker-standard-buttons'

[org.gnome.shell.extensions.user-theme] name = 'Nordic-darker-standard-buttons'

[org.gnome.shell.extensions.dash-to-dock] dock-position = 'BOTTOM' dash-max-icon-size = 64

Change the values as per your wish..

save the file & close..

Note: Since shell-theme is involved.. you need to install the extension user-theme and enable it..also make sure its gschemas are compiled..

copy the above file to /usr/share/glib-2.0/schemas/

sudo cp 20_my-settings.gschema.override /usr/share/glib-2.0/schemas/

and compile the schemas

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

This will not change the settings if you already made different choices..

you need to reset the keys for above four choices..

gsettings reset org.gnome.desktop.interface gtk-theme
gsettings reset org.gnome.shell.extensions.user-theme name
gsettings reset org.gnome.shell.extensions.dash-to-dock dock-position
gsettings reset org.gnome.shell.extensions.dash-to-dock dash-max-icon-size

When ever you want to revert back above changes.. remove the file and compile..

sudo rm /usr/share/glib-2.0/schemas/20_my-settings.gschema.override
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
muru
  • 197,895
  • 55
  • 485
  • 740
PRATAP
  • 22,460