I finally have some time to switch laptop, I postponed mainly because I didn’t know how to port most of my dev environment but it’s time to act!

  • Installing linux
  • Configuring Gnome

Instead of poking around in Gnome Tweak this time I had the opportunity to port my settings using gsettings. Every option is a key, value pair and lives in a namespace. Using the gsettings command we can set a pair in a namespace using gsettings set namespace key value.

A simple way to port your current configuration is using dconf dump namespace on your previous settings, e.g. dconf dump /org/gnome/desktop/vm/preferences/ yields this on my previous laptop

$ dconf dump /org/gnome/desktop/wm/preferences/
[/]
auto-raise=true
auto-raise-delay=500
focus-mode='sloppy'

And you can just port it using gsettings set ...

gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'
gsettings set org.gnome.desktop.wm.preferences auto-raise true
gsettings set org.gnome.desktop.wm.preferences auto-raise-delay  500

At the end what I ported my options using this script

gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'
gsettings set org.gnome.desktop.wm.preferences auto-raise true
gsettings set org.gnome.desktop.wm.preferences auto-raise-delay  500
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps', 'compose:ralt']"
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true