Da un paio di anni fa, ho anche mantenuto uno script per mantenere la configurazione per i miei ambienti in un file di script.
Ci sono tre tipi di impostazioni in Cinnamon:
- Impostazioni DConf per la maggior parte delle specifiche di Cinnamon.
- Configurazioni .cinnamon per alcuni componenti Cinnamon.
- File di configurazione casuali, ciascuno specifico dell'applicazione (come browser, terminali, ecc.).
E ci sono molte impostazioni che non sono facili da configurare o semplicemente non disponibili per la configurazione.
Quindi, dipende da cosa ti serve?
Ecco alcuni esempi di alcune delle impostazioni che utilizzo...
Per le configurazioni di Cinnamon si può fare molto con semplici comandi, come ad esempio per il Nemo File Manager:
dconf write /org/nemo/preferences/show-hidden-files true
dconf write /org/nemo/preferences/show-image-thumbnails "'never'"
dconf write /org/nemo/preferences/show-full-path-titles true
dconf write /org/nemo/preferences/quick-renames-with-pause-in-between true
dconf write /org/nemo/preferences/show-advanced-permissions true
dconf write /org/nemo/preferences/show-home-icon-toolbar true
dconf write /org/nemo/preferences/show-new-folder-icon-toolbar true
dconf write /org/nemo/preferences/show-compact-view-icon-toolbar false
dconf write /org/nemo/preferences/show-icon-view-icon-toolbar false
dconf write /org/nemo/preferences/show-list-view-icon-toolbar false
dconf write /org/nemo/preferences/show-open-in-terminal-toolbar true
dconf write /org/nemo/list-view/default-visible-columns "['name', 'size', 'type', 'date_modified', 'owner', 'permissions']"
Oppure, per il desktop generico di Cinnamon:
##### Desktop settings.
dconf write /org/cinnamon/desktop/wm/preferences/num-workspaces 2
dconf write /org/cinnamon/desktop/background/picture-uri "'file:///usr/share/backgrounds/linuxmint-qiana/j_baer_5976503592.jpg'"
dconf write /org/cinnamon/desktop/background/color-shading-type "'solid'"
dconf write /org/cinnamon/desktop/background/picture-options "'zoom'"
dconf write /org/cinnamon/desktop/background/slideshow/image-source "'xml:///usr/share/cinnamon-background-properties/linuxmint-qiana.xml'"
dconf write /org/cinnamon/startup-animation false
dconf write /org/cinnamon/desktop-effects false
dconf write /org/cinnamon/desklet-decorations 0
dconf write /org/cinnamon/enabled-desklets "['[email protected]:0:150:0']"
dconf write /org/cinnamon/panels-resizable "['1:true']" # This must be true for the following height to take effect.
dconf write /org/cinnamon/panels-height "['1:33']"
dconf write /org/cinnamon/desktop/interface/clock-show-date true
##### Sound settings.
dconf write /org/cinnamon/sounds/login-enabled false
dconf write /org/cinnamon/sounds/logout-enabled false
dconf write /org/cinnamon/sounds/unplug-enabled false
dconf write /org/cinnamon/sounds/tile-enabled false
dconf write /org/cinnamon/sounds/plug-enabled false
dconf write /org/cinnamon/sounds/switch-enabled false
##### Touchpad/mouse settings.
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/natural-scroll false
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/scroll-method "'two-finger-scrolling'"
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/motion-acceleration 5.4820717131474108 # A fraction is needed.
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/horiz-scroll-enabled false
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/two-finger-click 3
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/disable-while-typing true
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/three-finger-click 2
dconf write /org/cinnamon/settings-daemon/peripherals/touchpad/motion-threshold 2
##### Power settings.
dconf write /org/cinnamon/settings-daemon/plugins/power/button-power "'interactive'"
dconf write /org/cinnamon/settings-daemon/plugins/power/sleep-inactive-ac-timeout 0
dconf write /org/cinnamon/settings-daemon/plugins/power/critical-battery-action "'hibernate'"
dconf write /org/cinnamon/settings-daemon/plugins/power/idle-dim-time 90
dconf write /org/cinnamon/settings-daemon/plugins/power/sleep-inactive-battery-timeout 0
dconf write /org/cinnamon/settings-daemon/plugins/power/lid-close-ac-action "'nothing'"
dconf write /org/cinnamon/settings-daemon/plugins/power/lid-close-battery-action "'nothing'"
dconf write /org/cinnamon/settings-daemon/plugins/power/idle-brightness 30
dconf write /org/cinnamon/settings-daemon/plugins/power/sleep-display-ac 600
dconf write /org/cinnamon/settings-daemon/plugins/power/sleep-display-battery 600
##### Default terminal
dconf write /org/cinnamon/desktop/applications/terminal/exec "'/usr/bin/terminator'"
Questi sono tutti scritti in "~/.config/dconf/user". Per rileggerli (e in effetti per richiamare i comandi precedenti), installa "dconf-cli" ed esegui il comando:
dconf dump /
E per i vari componenti Cinnamon che utilizzano le impostazioni JSON, guarda qui:
~/.cinnamon/configs/
C'è qualcosa di più specifico o di un'applicazione specifica di cui hai bisogno?