# see if resolution has changed
if ! [ "$RESOLUTIONS" = "$OLDRES" ]; then
iconf resolutions "$RESOLUTIONS"
- CHANGERES="True"
echo "Resolution change detected"
else
echo "no resolution change"
fi
# rebuild wallpaper after resolution change
+
changetrigger() {
+ rm ~/instantos/wallpapers/overlay.*
+ rm -rf ~/instantos/wallpapers/default
+
if iconf -i setwallpaper; then
- rm -rf ~/instantos/wallpapers
instantwallpaper resolution
fi
}