|
|
Software version |
3.4.2 |
Operating System |
Debian 7 |
Website |
Gnome Website |
Last Update |
06/11/2012 |
Others |
|
1 Introduction
Depuis que Gnome Shell est sorti, il existe un outil qui vous permet de paramétrer tout un tas de choses pour votre Gnome. Un peu à la manière gconf-editor, mais en ligne de commande.
2 Utilisation
2.1 Activer la date dans la barre du haut
Pour activer la date à côté de l'heure dans la barre du haut de gnome shell :
|
gsettings set org.gnome.shell.clock show-date true
|
2.2 Afficher les secondes
Pour afficher les secondes à l'heure dans la barre du haut :
gsettings
|
gsettings set org.gnome.shell.clock show-seconds true
|
2.3 Multi workspace en dual screen
Pour activer tous les workspaces lorsque l'on a plusieurs écrans :
gsettings
|
gsettings set org.gnome.shell.overrides workspaces-only-on-primary false
|
2.4 Changer le fond d'écran
Pour changer le fond d'écran :
gsettings
|
gsettings set org.gnome.desktop.background picture-uri "file:/home/pmavro/Images/wallpaper.png"
|
J'ai d'ailleurs fais un article dessus si vous voulez un changement automatique du fond d'écran.
2.5 Changer la position du dock
Si vous avez activé le dock, il est possible de lui faire changer de position :
gsettings
|
gsettings set org.gnome.shell.extensions.dock position left
gsettings set org.gnome.shell.extensions.dock position right
|
2.6 Changer les applications par défaut
Les applications par défaut peuvent être changées graphiquement. Cependant, si ce dont vous avez besoin ne figure pas dans la liste des applications disponible, il est possible de modifier cela. Voici un exemple que j'ai trouvé[1] :
~/.local/share/applications/mimeapps.list
|
[Default Applications]
application/javascript=gvim.desktop
application/lrf=calibre-lrfviewer.desktop
application/msword=libreoffice-writer.desktop
application/rtf=libreoffice-writer.desktop
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
application/vnd.oasis.opendocument.text=libreoffice-writer.desktop
application/vnd.rn-realmedia=mplayer.desktop
application/x-cbr=comix.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
application/x-perl=gvim.desktop
application/x-php=gvim.desktop
application/x-rar=comix.desktop
application/x-shellscript=gvim.desktop
application/xhtml+xml=firefox.desktop
application/xml=gvim.desktop
application/x-yaml=gvim.desktop
application/zip=comix.desktop
audio/mp4=audacious.desktop
image/gif=gqview.desktop
image/jpeg=gqview.desktop
image/png=gqview.desktop
inode/directory=pcmanfm.desktop;
text/css=gvim.desktop
text/html=firefox.desktop;chromium-browser.desktop;
text/plain=leafpad.desktop;gvim.desktop;
text/x-chdr=gvim.desktop
text/x-csrc=gvim.desktop
text/x-python=gvim.desktop
video/mp4=mplayer.desktop
video/mpeg=mplayer.desktop
video/quicktime=mplayer.desktop
video/webm=mplayer.desktop
video/x-flv=mplayer.desktop
video/x-matroska=mplayer.desktop
video/x-ms-wmv=mplayer.desktop
video/x-msvideo=mplayer.desktop
video/x-ogm+ogg=mplayer.desktop
x-scheme-handler/http=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/https=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/feed=thunderbird.desktop
x-scheme-handler/ftp=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/mailto=thunderbird.desktop
x-scheme-handler/news=thunderbird.desktop
x-scheme-handler/nntp=thunderbird.desktop
x-scheme-handler/snews=thunderbird.desktop
[Added Associations]
application/javascript=gvim.desktop;
application/msword=libreoffice-writer.desktop;
application/rtf=libreoffice-writer.desktop;
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop;
application/vnd.oasis.opendocument.text=libreoffice-writer.desktop;
application/vnd.rn-realmedia=mplayer.desktop;
application/x-cbr=comix.desktop;
application/x-extension-htm=firefox.desktop;chromium-browser.desktop;
application/x-extension-html=firefox.desktop;chromium-browser.desktop;
application/x-extension-shtml=firefox.desktop;chromium-browser.desktop;
application/x-extension-xhtml=firefox.desktop;chromium-browser.desktop;
application/x-extension-xht=firefox.desktop;chromium-browser.desktop;
application/x-perl=gvim.desktop;
application/x-php=gvim.desktop;
application/x-rar=comix.desktop;
application/x-shellscript=gvim.desktop;
application/xhtml+xml=firefox.desktop;
application/xml=gvim.desktop;
application/x-yaml=gvim.desktop;
application/zip=comix.desktop;
audio/mp4=audacious.desktop;
image/gif=gqview.desktop;
image/jpeg=gqview.desktop;
image/png=gqview.desktop;
inode/directory=pcmanfm.desktop;
text/css=gvim.desktop;
text/html=firefox.desktop;chromium-browser.desktop;
text/plain=leafpad.desktop;gvim.desktop;
text/x-chdr=gvim.desktop;
text/x-csrc=gvim.desktop;
text/x-python=gvim.desktop;
video/mp4=mplayer.desktop;
video/mpeg=mplayer.desktop;
video/quicktime=mplayer.desktop;
video/webm=mplayer.desktop;
video/x-flv=mplayer.desktop;
video/x-matroska=mplayer.desktop;
video/x-ms-wmv=mplayer.desktop;
video/x-msvideo=mplayer.desktop;
video/x-ogm+ogg=mplayer.desktop;
x-scheme-handler/http=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/https=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/ftp=firefox.desktop;chromium-browser.desktop;
x-scheme-handler/feed=thunderbird.desktop;
x-scheme-handler/mailto=thunderbird.desktop;
x-scheme-handler/news=thunderbird.desktop;
x-scheme-handler/nntp=thunderbird.desktop;
x-scheme-handler/snews=thunderbird.desktop;
|
2.7 Ajouter une application
Il est possible d'ajouter une application sur sous Gnome Shell qui ne figure pas dans les dépots. Par exemple, j'ai installé la dernière version d'éclipse dans /usr/share et je souhaites avoir l'application visible dans la liste des applications disponibles. Il suffit de créer un fichier avec ce contenu :
~/.local/share/applications/eclipse.desktop
|
[Desktop Entry]
Categories=Development
Comment=Eclipse
Encoding=UTF-8
Exec=/usr/share/eclipse/eclipse
GenericName=Eclipse
Hidden=false
# Icons : 64x64 png
Icon=/usr/share/eclipse/icon.png
Name=Eclipse
Type=Application
|
Il ne reste plus qu'à reloader Gnome Shell (Atl+F2 - r - Entrée).
3 References
http://gregcor.com/2011/05/07/fix-dual-monitors-in-gnome-3-aka-my-workspaces-are-broken/
- ^ https://github.com/ssokolow/profile/blob/master/home/.local/share/applications/mimeapps.list