diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-28 18:30:54 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-28 18:30:54 +0200 |
commit | 6bbf4c5f669ec1adbec4c3c4e88d0c6a705ae362 (patch) | |
tree | e5df8c471dcc6a88765afa9eaef6b158d56dc006 | |
parent | Formatting (diff) | |
download | smart-wallpaper-6bbf4c5f669ec1adbec4c3c4e88d0c6a705ae362.tar.gz smart-wallpaper-6bbf4c5f669ec1adbec4c3c4e88d0c6a705ae362.tar.bz2 smart-wallpaper-6bbf4c5f669ec1adbec4c3c4e88d0c6a705ae362.zip |
added config file
-rw-r--r-- | config | 6 | ||||
-rwxr-xr-x | smart-wallpaper | 7 |
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 |