hyprpaper/README.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2022-07-01 21:16:45 +03:00
# hyprpaper
2022-07-02 00:13:43 +03:00
2022-07-02 20:12:51 +03:00
Hyprpaper is a blazing fast wallpaper utility for Hyprland with the ability to dynamically change wallpapers through sockets. It will work on all wlroots-based compositors, though.
2022-07-02 00:13:43 +03:00
# Installation
```
git clone https://github.com/hyprwm/hyprpaper
2022-07-05 14:11:47 +03:00
cd hyprpaper
2022-07-02 00:13:43 +03:00
make all
```
2022-07-04 20:23:03 +03:00
*the output binary will be in `./build/`, copy it to your PATH, e.g. `/usr/bin`*
2022-07-02 00:13:43 +03:00
# Usage
Hyprpaper is controlled by the config, like this:
*~/.config/hypr/hyprpaper.conf*
```
preload = /path/to/image.png
# .. more preloads
wallpaper = monitor,/path/to/image.png
# .. more monitors
```
2022-07-04 20:23:03 +03:00
Preload will tell Hyprland to load a particular image (supported formats: png, jpg, jpeg). Wallpaper will apply the wallpaper to the selected output (`monitor` is the monitor's name, easily can be retrieved with `hyprctl monitors`)
2022-07-02 00:13:43 +03:00
A Wallpaper ***cannot*** be applied without preloading. The config is ***not*** reloaded dynamically.
2022-07-02 20:12:34 +03:00
# IPC
2022-07-02 20:13:21 +03:00
You can use `hyprctl hyprpaper` (if on Hyprland) to issue a keyword, for example
2022-07-02 20:12:34 +03:00
```
hyprctl hyprpaper wallpaper DP-1,~/Pictures/myepicpng.png
```
2022-07-04 20:23:03 +03:00
For other compositors, the socket works like socket1 of Hyprland, and is located in `/tmp/hypr/.hyprpaper.sock` (this path only when Hyprland is not running!)