Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hcode00 authored Sep 13, 2024
1 parent 0cfe1d5 commit 057f1e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ or you can download the binary from the release page
**Basic Usage:**

```bash
hpaper start [directory] [duration in seconds] [maximum number of pictures to preload]
hpaper start [directory] [duration in seconds] [maximum number of pictures to preload] [flags]
hpaper start [image file]
```
* **`start`** Begins the wallpaper rotation.
* **`directory`** Specifies the directory containing the wallpaper images.
* **`duration`** Sets the time interval between wallpaper changes (in seconds).
* **`maximum number of pictures to preload`** Limits the number of wallpapers preloaded into memory.
* **`image file`** Directly specifies a single image file as the wallpaper.

* **`flags`** added flags
* **`-r`** Randomize wallpapers list at start

**Commands:**
```bash
hpaper [next | prev | status | quit]
Expand All @@ -69,7 +71,8 @@ in your Hyprland config at **`~/.config/hypr/hyprland.config`:**

```hyprlang
# start hpaper on this directory and keep 3 images preloaded at all times and switch images every one hour
exec-once = hpaper start ~/.config/hypr/wallpapers/ 3600 3
# use -r flag to randomize wallpapers list at the start
exec-once = hpaper start ~/.config/hypr/wallpapers/ 3600 3 -r
# as simple as that switch to next and previous wallpaper
bind = SUPER, W, exec, hpaper next
Expand Down

0 comments on commit 057f1e6

Please sign in to comment.