/gif-wallpaper

Set gifs as wallpaper on OS Windows

Primary LanguageCMIT LicenseMIT

gif-wallpaper

Set gifs as wallpaper on Windows

Paperview Gif-wallpaper is a high performance animated desktop background setter for Linux and X11 OS Windows. The original program is Paperview. Gif-wallpaper uses its codebase with x11 to winapi replacements. Gif-wallpaper itself based on TrAyZeN's version of sdl-wallpaper.

Requirements

Build

First of all download SDL2.dll And SDL2-devel Then clone the project

git clone https://github.com/wvovaw/gif-wallpaper.git
cd gif-wallpaper

After move SDL2.dll and devel dir to the project dir

Visual Studio

Cmake needs to know which Visual Studio you're gonna use. Run the command bellow and choose it from the output

cmake -G

And run the command

cmake.exe -G "Visual Studio 16 2019" . -DSDL2_INCLUDE_DIR:FILEPATH=.\SDL2-2.0.14\include -DSDL2_LIBRARY:FILEPATH=.\SDL2-2.0.14\lib

This should generate solution file, just open it with Visual Studio X

To build and debug project follow this steps:

  • Run gif-wallpaper.sln;
  • Set gif-wallpaper project as startup;
  • Add comandline arguments in project properties/debugging: ./assets/moomoo 100;
  • Build the project and run!

Done! Now you can debug the program

Cmake with editor of choice

You may work with cmake, but be sure this variables is defined

  • SDL2_INCLUDE_DIR:FILEPATH=.\SDL2-2.0.14\include
  • SDL2_LIBRARY:FILEPATH=.\SDL2-2.0.14\lib

I use use VSCode with cmake-tools extention, so i just defined this variables and debugging arguments in settings.json

Or download the latest build from Releases

  • Download gif-wallpaper.exe. I recomend to place it in the path that is in the $PATH variable;
  • Place it where you want to run from;
  • Download SDL2.dll
  • Place SDL2.dll in C:\Windows or alongside with gif-wallpaper.exe;

Usage

Single Monitor Use

gif-wallpaper.exe FOLDER SPEED

SPEED is the delay time in miliseconds between two frames rendering. FOLDER is where all frame-x.bmp placed. Only BMP files are supported.

Multi Monitor Use

comming soon

Creating Custom Scenes

Creating a custom BMP scene folder from a GIF requires the imagemagick. Install it and don't forget to check the box Install legacy utils, 'cause it includes convert util. Example, to create a castle scene folder from a castle.gif:

mkdir castle
mv castle.gif castle
cd castle
convert -coalesce castle.gif out.bmp
rm castle.gif

Demo

moomoo.gif