gdm-theme-settings/gdm-theme-maia-install.script

32 lines
510 B
Plaintext
Raw Permalink Normal View History

2019-11-04 23:10:47 +00:00
#!/bin/bash
#Used directory
gnomedir=/usr/share/gnome-shell
2019-11-05 00:53:40 +00:00
themedir=/usr/share/themes/tromjaro-gdm-theme
2019-11-04 23:10:47 +00:00
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