Multi-platform parallax wallpaper engine
This allows you to create multi-layered parallax wallpapers.
Each layer moves with Your mouse cursor, creating this beautiful effect.
SDL2
using Your package managerWayland
, You also must install XWayland
.tar.gz
package from releases
/
:sudo tar -o -xvf [archive name].tar.gz --directory /
lwp
reload_rootwindow=1
in config file may be necessary on some distributions for Layered WallPaper to work properly (see configuration)lwp &
command to Your desktop enviroment .rc
fileSDL2
using Your package manager. On some distributions SDL2
doesn't contain development files, so it may be also necessary to install development version of SDL2
Wayland
, You also must install XWayland
CMake
build
directory:git clone https://github.com/jankozik/parallax-wallpaper
cd lwp
mkdir build
cd build
.tar.gz
packagecmake ../
cmake --build .
cpack
.tar.gz
packagesudo tar -o -xvf [archive name].tar.gz --directory /
lwp
reload_rootwindow=1
in config file may be necessary on some distributions for Layered WallPaper to work properly (see configuration)lwp &
command to Your desktop enviroment .rc
fileSDL2
(homebrew: brew install sdl2
)cmake
(homebrew: brew install cmake
)git clone https://github.com/jankozik/parallax-wallpaper
cd lwp
mkdir build
cd build
cmake ../
cmake --build .
cpack -G DragNDrop
MinGW
and MSVC
compilers. Using different one could lead to unpredicted behavior. If You want to use MSVC
, it should be installed with Visual Studio.SDL2
and SDL2-devel
package for Your compiler from SDL2 releases and extract them somewhere.build
directorygit clone https://github.com/jszczerbinsky/lwp
cd lwp
mkdir -p build
cd build
SDL2
packages, that You've downloaded:For MSVC
:
cmake -G "Visual Studio 17" -DSDL2_DIR=[PATH TO SDL2-MSVC-DEVEL DIRECTORY]\cmake -DSDL2_RUNTIME_DIR=[PATH TO SDL2 RUNTIME DIRECTORY] ../
cmake --build . --config Release
cpack
For MinGW
:
cmake -G "MinGW Makefiles" -DSDL2_DIR=[PATH TO SDL2-MINGW-DEVEL DIRECTORY]\cmake -DSDL2_RUNTIME_DIR=[PATH TO SDL2 RUNTIME DIRECTORY] -DCMAKE_BUILD_TYPE=Release ../
cmake --build .
cpack
build
directory, that You've created earlier. After completing the installation Layered WallPaper should run immediately..config/lwp/lwp.cfg
:mkdir ~/.config/lwp
cp /etc/lwp.cfg ~/.config/lwp/lwp.cfg
~/.config/lwp/lwp.cfg
:
mkdir -p ~/.config/lwp
cp /opt/lwp/lwp.cfg ~/.config/lwp/
%appdata%
and press Ok
lwp
C:\Program Files\lwp\defaultWin.cfg
to directory created in the previous step and rename it to lwp.cfg
lwp.cfg
in notepad=
and values#
Type | Name | Description |
---|---|---|
int | reload_rootwindow | Set this to 1 if You are using a compositor (linux only) |
float | smooth | Smooth movement multipler |
int | monitors | Monitors count |
int | monitor[n]_x | Position of nth monitor in X axis |
int | monitor[n]_y | Position of nth monitor in Y axis |
int | monitor[n]_w | Width of nth monitor |
int | monitor[n]_h | Height of nth monitor |
string | monitor[n]_wallpaper | Absolute path to the wallpaper directory |
int | monitor[n]_wallpaper_x | Position of the wallpaper relative to the monitor |
int | monitor[n]_wallpaper_y | Position of the wallpaper relative to the monitor |
int | monitor[n]_wallpaper_w | Wallpaper resolution |
int | monitor[n]_wallpaper_h | Wallpaper resolution |
int | target_fps | How many times per second should the wallpaper render (imprecise, hence "target") |
Parallax wallpapers are not popular. Because of this if You want some cool parallax wallpaper, You have to either find a parallax game background on the internet and use it as a wallpaper or cut some real wallpaper into layers using Gimp or Photoshop.
.bmp
file and name them 1.bmp
, 2.bmp
... (1.bmp
is bottom most layer)wallpaper.cfg
(You can make a copy from C:\Program Files\lwp\wallpapers\default-fullhd\wallpaper.cfg
)File structure:
C:
└ MyCoolWallpaperDirectory
└ wallpaper.cfg
└ 1.bmp
└ 2.bmp
└ 3.bmp
Type | Name | Description |
---|---|---|
int | count | Wallpaper layers count |
float | movement_x | Mouse sensitivity in X axis |
float | movement_y | Mouse sensitivity in Y axis |
float | movement[n]_x | Mouse sensitivity in X axis for nth layer (optional) |
float | movement[n]_y | Mouse sensitivity in Y axis for nth layer (optional) |
int | repeat_x | Repeat the wallpaper in X axis |
int | repeat_y | Repeat the wallpaper in Y axis |