init
This commit is contained in:
31
gdm-theme-maia-install.script
Normal file
31
gdm-theme-maia-install.script
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Used directory
|
||||
|
||||
gnomedir=/usr/share/gnome-shell
|
||||
themedir=/usr/share/themes/manjaro-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
|
||||
|
Reference in New Issue
Block a user