gdm-theme-settings/check-theme

29 lines
739 B
Plaintext
Raw Permalink Normal View History

2019-11-04 23:10:47 +00:00
#! /bin/sh
##Common files
manjaro=/usr/share/icons/manjaro/maia/maia.svg
warning=/usr/share/icons/hicolor/40x40/status/check-warning.png
##Check theme
if [[ ! -e /$HOME/.config/check-gdm-theme ]]; then
while gsettings get org.gnome.desktop.interface gtk-theme | grep -E 'Maia|Breath'; do
sleep 30
done
##Warning window
yad --title="WARNING" --window-icon=$manjaro --on-top --center --image=$warning --width=475 --fixed --text="
We have detected a change in the Gnome theme.
If new theme not working correctly remove this package via <b>pacman</b> or <b>pamac</b>
<b>manjaro-gdm-theme</b>
<b>Note:</b> this pop up will only be shown once" --text-align=left --button="Ok";
touch /$HOME/.config/check-gdm-theme
fi
exit 0