# Smart-Wallpaper
A simple bash script that automatically changes your wallpaper depending on if its daytime or nighttime (helps your eyes).
## Getting Started
You can either clone the repository and run the script or if you are running Arch or derivatives get it from the AUR (https://aur.archlinux.org/packages/smart-wallpaper-git/).
### Dependencies
Required: redshift - determining if its day/night in your location.
feh - setting the wallpaper.
xwinwrap - drawing on top of the Xorg root
bash
Optional: gifsicle - animated wallpaper support
### Usage
Usage: smart-wallpaper [FLAG]
Flags:
[-d]: NEEDED : daytime wallpaper file/folder
[-n]: NEEDED : nighttime wallpaper file/folder
[-l]: OPTIONAL : manual location (lat:long), if not added geoclue gets the location (requires internet)
[-t]: OPTIONAL : set the time period (seconds) for the script to check if it is day or night
[-f]: OPTIONAL : set the framerate for the gif. Lower framerates = lower CPU usage.
[-r]: OPTIONAL : changes the wallpaper every day/night iteration
[-h]: OPTIONAL : print help message
Example:
```
smart-wallpaper -d /home/user/Wallpapers/DayWallpaperFolder -n /home/user/Wallpapers/NightWallpaperFolder -l 0:0 -f 15
```
## Contributing
Feel free to submit pull requests to clean up the code/adding new features. Thank you!
## Author
* **Baitinq** - *Whole script* - (https://github.com/Baitinq)
## License
This project is licensed under the GPL License.
## Acknowledgments
* Stackoverflow me like