0

I'm looking for the files where System settings are stored for the following preferences:

  • Touchpad
  • Gnome Shell Extension Preferences
  • Wifi

It's for a live USB that doesn't persist any prefs. I'm just setting up a little script that restores a few basic preferences so I don't have to redo them every time I use it. It's mostly done but I was missing these few items. I know there is a way to make persistant USB installs but it's not really needed for my purposes.

2 Answers2

2

Touchpad

This depends on what you use to configure the touchpad. For a Synaptics touchpad, you could use the synclient command line tool to save and restore preferences. Other preferences probably get saved somewhere in the dconf database, and you can use gsettings to save and restore those.

Example of Editing Mouse Config using gsettings:

gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false

WiFi

Network Manager settings go in /etc/NetworkManager (and connection setting specifically in /etc/NetworkManager/system-connections). This directory requires sudo access to modify from the command line. The nmcli command line tool can be used to automate configuring network connections to some extent.

GNOME Shell extensions

From the GNOME wiki:

Extension Preferences

Since version 3.3.5, Extensions may be configured in a consistent manner using the gnome-shell-extension-prefs tool. To hook into it, provide a simple javascript file called prefs.js.

It doesn't look like this is meant to be used outside of extensions, and I don't have a GNOME Shell on hand to test with, but gnome-shell-extension-prefs seems to be your best bet to get and set extension preferences.

muru
  • 207,228
0

EDIT: Sorry, I misread your question:

The files: - Gnome Shell Extension Preferences: ~/.local/share/gnome-shell/extensions


  • Touchpad: Settings > Devices > Mouse & Touchpad

  • Gnome Shell Extension Preferences: https://extensions.gnome.org/local/

  • Wifi: Settings > Wi-Fi
    • When you've connected to a Wi-Fi Network, a cog wheel will appear in the network when shown in the "Visible Networks" overview.
    • You've got the hamburger menu in the top right corner that enables you to do some connection stuff. There you can also see all you're saved networks via "Known Wi-Fi Networks"
cp3o
  • 41