Added script to reset gnome to defaults
This commit is contained in:
parent
076266359c
commit
ac2a17e354
1 changed files with 23 additions and 0 deletions
23
reset_gtk.sh
Normal file
23
reset_gtk.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue