Crates.io | wallpepper |
lib.rs | wallpepper |
version | 1.1.1 |
source | src |
created_at | 2022-08-25 21:07:44.625754 |
updated_at | 2022-09-02 19:51:31.982616 |
description | A tool to display videos and SDL content as a wallpaper on linux minimalist window managers using Xorg |
homepage | https://github.com/bqleine/wallpepper |
repository | https://github.com/bqleine/wallpepper |
max_upload_size | |
id | 652419 |
size | 60,706 |
A tool to display videos and SDL content as a wallpaper on linux minimalist window managers using Xorg
You can either run it from source or install it with :
$ cargo install wallpepper
To run this, you will need ffmpeg and SDL2 installed via your package manager along with their header files (sometimes bundled together, just look it up on your distro's wiki)
The basic usage for wallpepper is as follows :
$ wallpepper <wallpaper> [wallpaper args]
Currently, only two wallpapers are supported:
$ wallpepper chroma
$ wallpepper video path/to/video.mp4
Wallpepper uses SDL2 and the X11 libraries to draw directly to the root window, on minimalist window managers this will be your background. Others though, like plasma or gnome will draw over this root window so it won't be visible.
You can create your own animated wallpapers using SDL2 with just a few steps:
wallpapers/
Wallpaper
trait on your structwallpapers/mod.rs
(see lines 3 and 21 for an example)get_wallpaper_by_name
function!TEST
constant to true
to have your wallpaper open in a floating window instead.