View previous topic :: View next topic |
Author |
Message |
bouleetbil Guru
Joined: 06 Jul 2004 Posts: 456 Location: Montpellier
|
Posted: Tue Mar 20, 2007 2:53 pm Post subject: [TIP] Configurer Gnome par gconftool |
|
|
Bonjour,
Je cherchais à sauvegarder ma configuration de gnome et la réstaurer rapidement sans copier/coller les répertoires ~/.gconf ....
Alors voila un petit script qui permet de configurer gnome via gconftool :
Code: |
#!/bin/sh
#fichiers cachés
gconftool-2 \
-s "/desktop/gnome/file_views/show_hidden_files" \
True -t boolean
#fichier de sauvegarde
gconftool-2 \
-s "/desktop/gnome/file_views/show_backup_files" \
True -t boolean
#vue pour nautilus
gconftool-2 \
-s "/apps/nautilus/preferences/always_use_browser" \
True -t boolean
#wallepaper
gconftool-2 -s "/desktop/gnome/background/picture_filename" \
"/usr/share/pixmaps/backgrounds/Tux.jpg" -t string
#disposition fond ecran
gconftool-2 -s "/desktop/gnome/background/picture_options" \
"stretched" -t string
#icone par défaut
gconftool-2 -s "/desktop/gnome/interface/icon_theme" \
"AquiGnome" -t string
#theme par défaut
gconftool-2 -s "/desktop/gnome/interface/gtk_theme" \
"RPanther2" -t string
#bordure par défaut
gconftool-2 -s "/apps/metacity/general/theme" \
"RPanther2" -t string
#transparence gnome-terminal
gconftool-2 -s "/apps/gnome-terminal/profiles/Default/background_type" \
"transparent" -t string
#sons système
gconftool-2 -s "/desktop/gnome/sound/enable_esd" \
True -t boolean
gconftool-2 -s "/desktop/gnome/sound/event_sounds" \
True -t boolean
#pas de corbeille sur le bureau
gconftool-2 -s "/apps/nautilus/desktop/trash_icon_visible" \
False -t boolean
|
Syntaxe :
gconftool-2 -s "Clé à modifier" "La valeur" -t "Le type"
Pour voir votre configuration il suffit de regarder le répertoire ~/.gconf. Chaque sous répertoire correspond à une clé de gconf _________________ L'homme n'est pas fait pour travailler ça le fatigue.
LiveCD Gentoo : http://www.frogdev.info
Gentoo/Freebsd : http://www.frogdev.info/gentoo_freebsd.php |
|
Back to top |
|
|
Nah Tux's lil' helper
Joined: 01 May 2006 Posts: 107 Location: Lille,France
|
Posted: Tue Mar 20, 2007 3:06 pm Post subject: |
|
|
Toujour faire une sauvegarde au cas ou, comme ça c'est plus rapide à restaurer.
Code: | # Backup
gconftool-2 --dump / > $HOME/backup_gconf.xml
# Restauration
gconftool-2 --load=$HOME/backup_gconf.xml |
|
|
Back to top |
|
|
bouleetbil Guru
Joined: 06 Jul 2004 Posts: 456 Location: Montpellier
|
|
Back to top |
|
|
|