hyprland-wiki/pages/Hypr Ecosystem/hyprpaper.md

58 lines
1.5 KiB
Markdown
Raw Normal View History

---
weight: 1
title: hyprpaper
---
2024-02-19 17:52:58 +01:00
hyprpaper is a fast, IPC-controlled wallpaper utility for hyprland.
2024-02-19 17:52:58 +01:00
## Configuration
The config file is located at `~/.config/hypr/hyprpaper.conf`. It is not
required.
2024-02-19 17:52:58 +01:00
Configuration is done via `preload`s, which _load_ an image into memory. Then,
you use `wallpaper` keywords to apply the preloaded image to your monitor(s):
2024-02-19 17:52:58 +01:00
```ini
preload = /home/me/amongus.png
wallpaper = DP-1,/home/me/amongus.png
```
For wallpaper keywords:
You can also `unload` preloaded images to free up memory. `unload all` and
`unload unused` are a thing too.
2024-02-19 17:52:58 +01:00
To run hyprpaper at startup edit `hyprland.conf` and add:
`exec-once = hyprpaper`.
2024-02-19 17:52:58 +01:00
### Misc options
2024-02-19 17:52:58 +01:00
| variable | description | type | default |
| --- | --- | --- | --- |
2024-02-19 17:52:58 +01:00
| splash | enable rendering of the hyprland splash over the wallpaper | bool | false |
| splash_offset | how far (in % of height) up should the splash be displayed | float | 2.0 |
| ipc | whether to enable IPC | bool | true |
## IPC
hyprpaper supports IPC via `hyprctl`. Every dispatcher mentioned in
[Configuration](#configuration) can be called with
`hyprctl hyprpaper <dispatcher> <arg(s)>`.
2024-02-19 17:52:58 +01:00
Additionally, you can get some info about the current state of hyprpaper with
`listloaded` and `listactive`.
2024-02-19 17:52:58 +01:00
Examples:
2024-02-19 17:52:58 +01:00
```sh
hyprctl hyprpaper preload "~/Pictures/myepicpng.png"
hyprctl hyprpaper wallpaper "DP-1,~/Pictures/myepicpng.png"
```
```sh
hyprctl hyprpaper listloaded
```
Please note all paths have to be absolute (or start with `~`).