2024-06-02 20:03:02 +02:00
|
|
|
# Sway Wallpaper
|
|
|
|
|
2024-06-06 11:57:38 +02:00
|
|
|
Display wallpapers on Sway, this is essentially a wrapper for `swaybg` and `swaylock`, they are
|
|
|
|
required to run this utility.
|
2024-06-02 20:03:02 +02:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- Specify a directory containing all your wallpapers
|
|
|
|
- Specify for which display
|
|
|
|
- Set interval to automatically change wallpaper after some time
|
|
|
|
- Wallpapers can be chosen randomly
|
|
|
|
- Wallpapers can be chosen in alphabetical order
|
|
|
|
- No "grey" flash when switching wallpapers
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-06-03 09:35:53 +02:00
|
|
|
```
|
2024-06-06 11:57:38 +02:00
|
|
|
usage: sway-wallpaper [options] <path>
|
2024-06-02 20:03:02 +02:00
|
|
|
|
|
|
|
required:
|
2024-06-06 11:57:38 +02:00
|
|
|
path The path to the directory containing the wallpapers
|
2024-06-02 20:03:02 +02:00
|
|
|
|
|
|
|
options:
|
2024-06-06 11:57:38 +02:00
|
|
|
-h, --help Show help
|
|
|
|
-i, --interval Specify the interval between wallpapers in seconds
|
|
|
|
--lock Lock the screen using swaylock instead of applying a wallpaper
|
|
|
|
--never-random if set, wallpapers order is based on the names of the files
|
|
|
|
-o, --output The outputs as shown with the command `swaymsg -t get_outputs`, by default the wallpaper will be applied to all outputs
|
2024-06-02 20:03:02 +02:00
|
|
|
```
|
|
|
|
|
2024-06-03 09:35:53 +02:00
|
|
|
Example:
|
|
|
|
|
2024-06-06 11:57:38 +02:00
|
|
|
`./sway-wallpaper /path/to/wallpapers -i 3600 -o DP-1`
|
2024-06-03 09:35:53 +02:00
|
|
|
|
2024-06-02 20:03:02 +02:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
First, clone this repository `git clone https://codeberg.org/vyn/sway-wallpaper.git` (or download it the way you prefer).
|
|
|
|
|
|
|
|
You only need **gcc** and **cmake**, run these commands in the project directory:
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2024-06-03 09:35:53 +02:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
2024-06-02 20:03:02 +02:00
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
The executable should be located in `build/sway-wallpaper`
|