#!/bin/bash # # Barre des taches cinnamon # reset=check if [[ "$(gsettings get org.cinnamon panels-enabled)" == "@as []" || $reset == "force" ]] then gsettings reset org.cinnamon panels-enabled gsettings reset org.cinnamon panel-zone-icon-sizes gsettings reset org.cinnamon panel-zone-symbolic-icon-sizes gsettings reset org.cinnamon panel-zone-text-sizes fi # # Configuration Gestionnaire de fichier Nemo # # Barre de menu if [[ $(gsettings get org.nemo.window-state start-with-menu-bar) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state start-with-menu-bar true fi # Barre d'outils if [[ $(gsettings get org.nemo.window-state start-with-toolbar) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state start-with-toolbar true fi # Barre d'adresse en mode cliquable if [[ $(gsettings get org.nemo.window-state start-with-location-bar) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state start-with-location-bar true fi # Montre la barre d’adresse en mode cliquable gsettings set org.nemo.preferences show-location-entry false # Panneau lateral activation mode emplacements deplies if [[ $(gsettings get org.nemo.window-state start-with-sidebar ) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state start-with-sidebar true fi if [[ $(gsettings get org.nemo.window-state side-pane-view ) != "places" || $reset == "force" ]] then gsettings set org.nemo.window-state side-pane-view 'places' fi if [[ $(gsettings get org.nemo.window-state my-computer-expanded) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state my-computer-expanded true fi # Activation barre de statut if [[ $(gsettings get org.nemo.window-state start-with-status-bar ) == "false" || $reset == "force" ]] then gsettings set org.nemo.window-state start-with-status-bar true fi # restauration niveau de zoom par defaut if [[ $reset == "force" ]] then rm ~/.local/share/gvfs-metadata/home fi if [[ $(grep ooSetupFactoryWindowAttributes ~/.config/libreoffice/4/user/registrymodifications.xcu | grep -o "value>[0-9]*,[0-9]*,[0-9]*,[0-9]*" | grep -o "[0-9].*" | cut -d , -f 3 | sort -h | tail -n 1) -lt 800 ]] then sed -ie '/.*ooSetupFactoryWindowAttributes.*/d' ~/.config/libreoffice/4/user/registrymodifications.xcu fi # cacher les fichier caches gsettings set org.nemo.preferences show-hidden-files false