blob: b5cd1d5d04528d3936409ca8640a89d0d150ea49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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]<br />
Flags:<br />
[-d]: NEEDED : daytime wallpaper file/folder<br />
[-n]: NEEDED : nighttime wallpaper file/folder<br />
[-l]: OPTIONAL : manual location (lat:long), if not added geoclue gets the location (requires internet)<br />
[-t]: OPTIONAL : set the time period (seconds) for the script to check if it is day or night<br />
[-f]: OPTIONAL : set the framerate for the gif. Lower framerates = lower CPU usage.<br \>
[-r]: OPTIONAL : changes the wallpaper every day/night iteration<br />
[-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
|