Skip to content

Commit 5550e8b

Browse files
docs: rewrite README in standard format
1 parent 124d3c0 commit 5550e8b

1 file changed

Lines changed: 137 additions & 29 deletions

File tree

‎README.md‎

Lines changed: 137 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,132 @@ and optional theme updates.
2020

2121
</div>
2222

23-
## install
23+
## table of contents
24+
25+
- [background](#background)
26+
- [features](#features)
27+
- [why wallr](#why-wallr)
28+
- [pros and cons](#pros-and-cons)
29+
- [requirements](#requirements)
30+
- [installation](#installation)
31+
- [quick start](#quick-start)
32+
- [configuration](#configuration)
33+
- [documentation](#documentation)
34+
- [troubleshooting](#troubleshooting)
35+
- [contributing](#contributing)
36+
- [license](#license)
37+
38+
## background
39+
40+
wallr is a native wayland wallpaper engine written in rust. it runs a small
41+
daemon that owns layer-shell surfaces, renders transitions with wgpu, and
42+
plays gif and video wallpapers without replacing the compositor's own
43+
wallpaper handling.
44+
45+
it is built for users who want animated, video, or transitional wallpapers on
46+
wayland compositors that support `wlr-layer-shell`, while keeping memory use
47+
and idle cpu cost predictable.
48+
49+
## features
50+
51+
- static image wallpapers through a shared-memory fast path
52+
- gpu transitions for images, gifs, and videos
53+
- animated gif playback with bounded frame caching
54+
- video playback through FFmpeg, with software fallback
55+
- multi-monitor and output hotplug handling
56+
- per-output scaling modes: fill, fit, stretch, center, and tile
57+
- optional theme generation with matugen, wallust, or pywal
58+
- user hooks and reload commands
59+
- ipc commands for pause, resume, seek, blank, restore, and status
60+
- shared-memory presentation for static images to avoid unnecessary rendering
61+
- bounded decoder queues and seek error propagation
62+
63+
## why wallr
64+
65+
wallr is useful when you want more than a static image but do not want a
66+
heavy desktop shell or a compositor-specific wallpaper plugin. it keeps the
67+
wallpaper as a background layer surface, handles multiple outputs, and can
68+
switch media without restarting the daemon.
69+
70+
it is especially useful for:
71+
72+
- animated wallpapers on wlroots-based compositors
73+
- short video loops as desktop backgrounds
74+
- themed desktops where wallpaper changes trigger color generation
75+
- multi-monitor setups
76+
- users who want a command-line driven workflow
77+
78+
## pros and cons
79+
80+
### pros
81+
82+
- native wayland integration instead of X11 compatibility layers
83+
- gpu-accelerated transitions and animation
84+
- bounded memory budgets for decoded video frames
85+
- shared-memory path for static images
86+
- multi-output and hotplug aware
87+
- optional theme integration
88+
- command-line and ipc driven workflow
89+
- open source and packaged for arch, nix, and crates.io
90+
91+
### cons
92+
93+
- requires a wayland compositor with `wlr-layer-shell`
94+
- hardware decoding depends on drivers and supported backends
95+
- video playback can use significant cpu or memory on low-end systems
96+
- some features depend on external tools such as FFmpeg or theme providers
97+
- compositor and gpu behaviour must be verified on each target system
98+
- animated and video wallpapers use more resources than static images
99+
100+
## requirements
101+
102+
- a wayland compositor with `wlr-layer-shell`
103+
- rust 1.90 or newer for source builds
104+
- FFmpeg development libraries for dynamic source builds
105+
- official static release binaries do not require a separate FFmpeg install
106+
- for static builds, the Linux tools listed by
107+
`scripts/install-static-ffmpeg.sh`
108+
109+
## installation
110+
111+
### cargo
24112

25113
```sh
26114
cargo install wallr
27115
```
28116

29-
this installs the `wallr` client and `wallr-daemon`. release archives include
30-
both binaries. arch users can install `wallr-bin` from the aur; nix users can
31-
run `nix run github:programmersd21/wallr`.
117+
this installs the `wallr` client and `wallr-daemon`.
118+
119+
### arch linux
120+
121+
```sh
122+
yay -S wallr-bin
123+
```
124+
125+
### nix
126+
127+
```sh
128+
nix run github:programmersd21/wallr
129+
```
130+
131+
### release archive
132+
133+
download the latest archive from the
134+
[releases page](https://github.com/programmersd21/wallr/releases), extract it,
135+
and put both `wallr` and `wallr-daemon` on your `PATH`.
32136

33-
## use
137+
## build from source
138+
139+
```sh
140+
git clone https://github.com/programmersd21/wallr.git
141+
cd wallr
142+
cargo build --workspace --release --locked
143+
```
144+
145+
for a static FFmpeg build, run `./scripts/install-static-ffmpeg.sh`, then export
146+
the variables it prints and run the same build command.
147+
148+
## quick start
34149

35150
```sh
36151
wallr set wallpaper.jpg
@@ -39,9 +154,9 @@ wallr set video.mp4 --fps 30
39154
wallr ipc status
40155
```
41156

42-
`wallr set` starts the daemon when `daemon.auto_start` is enabled. to run it
43-
manually, use `wallr daemon` or start `wallr-daemon` directly. see the
44-
[cli reference](docs/cli-reference.md).
157+
`wallr set` starts the daemon automatically when `daemon.auto_start` is enabled.
158+
to run it manually, use `wallr daemon` or start `wallr-daemon` directly. see
159+
the [cli reference](docs/cli-reference.md).
45160

46161
## configuration
47162

@@ -62,34 +177,27 @@ daemon:
62177
63178
see the [configuration reference](docs/config-reference.md) for all options.
64179
65-
## requirements
66-
67-
- a wayland compositor with `wlr-layer-shell`
68-
- rust 1.90 or newer and FFmpeg development libraries for dynamic source builds;
69-
static builds also need the Linux tools listed by
70-
`scripts/install-static-ffmpeg.sh`
71-
- no ffmpeg runtime install for the official static release binaries
72-
73-
## build
74-
75-
```sh
76-
git clone https://github.com/programmersd21/wallr.git
77-
cd wallr
78-
cargo build --workspace --release --locked
79-
```
80-
81-
For a static FFmpeg build, run `./scripts/install-static-ffmpeg.sh`, then export
82-
the variables and run the build command it prints.
83-
84-
more setup and project conventions are in [contributing](CONTRIBUTING.md).
85-
86180
## documentation
87181
88182
[cli](docs/cli-reference.md) · [configuration](docs/config-reference.md) ·
89183
[effects](docs/effects-reference.md) · [video](docs/video-wallpaper.md) ·
90184
[compositors](docs/compositor-support.md) · [architecture](docs/architecture.md) ·
91185
[benchmarks](docs/benchmarks.md) · [changelog](CHANGELOG.md)
92186
187+
## troubleshooting
188+
189+
- if `wallr doctor` reports a missing wayland session, check `WAYLAND_DISPLAY`
190+
- if hardware decoding fails, set `video.hw_decode: software`
191+
- if a video does not play, test a still image first, then run `wallr ipc info`
192+
- if theme generation fails, the wallpaper change still succeeds and the error
193+
is reported separately
194+
- static release binaries do not need a separate FFmpeg runtime install
195+
196+
## contributing
197+
198+
contributions are welcome. see [CONTRIBUTING.md](CONTRIBUTING.md) for setup,
199+
style, testing, and pull request expectations.
200+
93201
## license
94202

95203
MIT. See [LICENSE](LICENSE).

0 commit comments

Comments
 (0)