GithubHelp home page GithubHelp logo

dyn-wallpaper's Introduction

Emulate macOS Mojave's dynamic wallpaper

What you get

Dyn Wallpaper

Why

Yeah, since the first time I looked at Mojave's dynamic wallpaper I fell in love with them.

I wrote this little utility to periodically change wallpaper while blending the images together based on the current time, relative to sunrise/sunset.

I tested this on Arch Linux and Windows 10. Mac OS support has not been tested yet.

Requirements

Download the source Mojave images (I'm not going to upload them in this repository in order to avoid copyright problems) from the internet.

Extract the images in a folder, i.e. ~/Images/Wallpapers.

How to use this

From the release page download the latest binary for your platform (Linux, Mac OS, or Windows).

You can specify which command should be executed to change your wallpaper. By default, dyn-wallpaper uses feh, for Gnome that's not ideal and I'm providing an example below.

Run it from a terminal (or command prompt if you prefer):

# using feh
$ ./dyn-wallpaper "Rome" "~/Images/Wallpapers"

# using Gnome
$ ./dyn-wallpaper "Rome" "~/Images/Wallpapers" "gsettings set org.gnome.desktop.background picture-uri {path}"

# using contractor from Elementary OS 5.1.2 "Hera"
$ ./dyn-wallpaper "Rome" "~/Images/Wallpapers" "/usr/lib/x86_64-linux-gnu/io.elementary.contract.set-wallpaper {path}"

# using swaybg for swaywm
$ ./dyn-wallpaper "Rome" "~/Images/Wallpapers" "swaybg -o '*' -i {path} -m fill"

# please submit PRs with other DE if you can make them work!

You can find a list of valid city names here.

Contributing

Issues and PRs are welcome. Go ahead!

You're gonna need Rust (with Cargo) to easily edit and build the sources.

Build the project

$ git clone https://github.com/Pitasi/dyn-wallpaper

# Test it
$ cargo run "Rome" "~/Images/Wallpapers"

# Build it
$ cargo build --release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.