Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.38 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.38 KB

earthwall

earthwall.sh is a simple bash script to change your Linux to a random image from earthview.withgoogle.com using feh. You can set up a periodic wallpaper change using cron. Take a look at the example in Cron.

Installation

The script requires an internet connection to download the wallpaper and feh to be installed to update the wallpaper. Install the script using any of the methods bellow:

Install using Git

The repository can be cloned to any location.

git clone https://github.com/ngserro/earthwall.git; cd earthwall; chmod +x earthwall.sh

Git-free installation

To install without Git:

cd; curl -L https://github.com/ngserro/earthwall/tarball/master | tar -xzv; cd ngserro-earthwall-*; chmod +x earthwall.sh

If you want to update you can simply run that command again.

Usage

Make sure you are in the directory where the script is located and run:

./earthwall.sh 

That's it! Your wallpaper is now an image from earthview.withgoogle.com.

Cron

If you want your wallpaper to change periodically you can set up the script execution in crontab:

crontab -e

Then add a line like this:

0 */2 * * * PATH_TO_SCRIPT/earthwall.sh

This is an example for changing the wallpaper every 2 hours. Change PATH_TO_SCRIPT accordingly.