24 lines
No EOL
814 B
Bash
Executable file
24 lines
No EOL
814 B
Bash
Executable file
#!bin/bash
|
|
#Reset gnome to defaults
|
|
#https://askubuntu.com/questions/56313/how-do-i-reset-gnome-to-the-defaults#56314
|
|
|
|
# Backs up and renames your old gtk and dconf folders to reset gnome to defaults
|
|
# Updated for Ubuntu 17.10
|
|
|
|
# Get gnome shell version
|
|
VER=`gnome-shell --version`
|
|
echo "Gnome shell"
|
|
echo "$VER"
|
|
|
|
# Get GTK version
|
|
GTKVER=`dpkg -s libgtk-3-0|grep '^Version' | cut -d' ' -f2-`
|
|
echo "GTK version"
|
|
echo "$GTKVER"
|
|
|
|
for f in .gnome .gnome2 .gconf .gconfd .metacity; do mv $f ${f}.bak; done or mkdir -p ~/.backup-gnome-config/ && for f in .gnome .gnome2 .gconf .gconfd .metacity; do mv $f ~/.backup-gnome-config/; done
|
|
|
|
dconf reset -f /org/gnome/
|
|
|
|
# Reset Gnome Extensions
|
|
mv ~/.local/share/gnome-shell/extensions ~/.local/share/gnome-shell/extensions-bkup
|
|
mkdir -p ~/.local/share/gnome-shell/extensions |