32 lines
510 B
Bash
32 lines
510 B
Bash
#!/bin/bash
|
|
|
|
#Used directory
|
|
|
|
gnomedir=/usr/share/gnome-shell
|
|
themedir=/usr/share/themes/tromjaro-gdm-theme
|
|
theme=gnome-shell-theme.gresource
|
|
|
|
#Install & Upgrade GDM theme and icons
|
|
|
|
cd $gnomedir
|
|
|
|
install() {
|
|
#install GDM Maia theme and backup the GDM Gnome
|
|
mv $theme $theme.old
|
|
cp -f $themedir/$theme $gnomedir/$theme
|
|
}
|
|
|
|
upgrade() {
|
|
cmp --silent $gnomedir/$theme $themedir/$theme
|
|
if [ $? == 1 ]; then
|
|
cp -f $themedir/$theme $gnomedir/$theme
|
|
fi
|
|
}
|
|
|
|
if [ ! -e $theme.old ]; then
|
|
install
|
|
else
|
|
upgrade
|
|
fi
|
|
|