about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--config6
-rwxr-xr-xsmart-wallpaper7
2 files changed, 7 insertions, 6 deletions
diff --git a/config b/config
new file mode 100644
index 0000000..08d5f9f
--- /dev/null
+++ b/config
@@ -0,0 +1,6 @@
+# Smart-Wallpaper CONFIG
+# Variables for your wallpaper collection
+# It can be a folder (e.g /home/user/wallpapers/*) or a file (/home/user/wallpapers/wallpaper.jpg)
+
+daytimewallpaper=~/Images/wave.jpg
+nightimewallpaper=~/Images/city.jpg
diff --git a/smart-wallpaper b/smart-wallpaper
index 3035fac..3d300ec 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -1,7 +1,6 @@
 #!/bin/bash
 
-daytimewallpaper=~/Images/wave.jpg
-nightimewallpaper=~/Images/city.jpg
+source ~/.config/smart-wallpaper/config
 
 while true
 do
@@ -10,19 +9,15 @@ do
     string=$(redshift -l $(cat /usr/share/geolocate/.location) -p)
     if [[ $string == *"Daytime"* ]]; then
       feh --randomize --bg-fill $daytimewallpaper
-      echo "geolocate found. DAYTIME"
     else
       feh --randomize --bg-fill $nightimewallpaper
-      echo "geolocate found. NIGHTTIME"
     fi
   else
     string=$(redshift -p)
     if [[ $string == *"Daytime"* ]]; then
       feh --randomize --bg-fill $daytimewallpaper
-      echo "geolocate NOT found. DAYTIME"
     else
       feh --randomize --bg-fill $nightimewallpaper
-      echo "geolocate NOT found. NIGHTTIME"
     fi
   fi