Skip to content

Baitinq/smart-wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

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.<br > [-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

License

This project is licensed under the GPL License.

Acknowledgments

  • Stackoverflow me like

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages