OSDN Git Service

Merge pull request #81 from bob8677/master
[instantos/instantOS.git] / monitor.sh
index 3275289..18922fc 100755 (executable)
@@ -26,7 +26,6 @@ if iconf resolutions; then
     # see if resolution has changed
     if ! [ "$RESOLUTIONS" = "$OLDRES" ]; then
         iconf resolutions "$RESOLUTIONS"
-        CHANGERES="True"
         echo "Resolution change detected"
     else
         echo "no resolution change"
@@ -51,9 +50,12 @@ else
 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
 }