Skip to content

Script that checks the sunrise/sunset time and sets the wallpaper accordingly.

Notifications You must be signed in to change notification settings

Kachamenus/DynamicWallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Description

Bash script for Linux

Uses feh to set the wallpaper

Uses sunrise-sunset.org's free API to find the times for sunrise and sunrise-sunset

Included in the folder is a set of screenshots of Minecraft's infamous pack.png image, rendered in 1.21 with shaders.

Usage

In order to use it you need to set it to run occasionally in your crontab, I have mine set as the following:

30 * * * * /home/alex/DynamicWallpaper/wallpaper.sh 0 * * * * /home/alex/DynamicWallpaper/wallpaper.sh

This updates the wallpaper every 30 minutes.

Limitations

Everything is hardcoded into the script: latitude and longitude, directory of wallpaper photos, number of photos, etc. I'll probably fix this and add a separate config file at some point, though it works as is.

Due to its use of feh, this script also only really works for X11 users having either a minimal desktop environment or no desktop environment at all. I use it combination with the i3 window manager, which works quite well.

About

Script that checks the sunrise/sunset time and sets the wallpaper accordingly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages