readme: add config

This commit is contained in:
Vaxry 2024-02-17 19:33:44 +00:00
parent 9e8d11a964
commit 11232c5cf1
2 changed files with 19 additions and 1 deletions

View File

@ -32,7 +32,7 @@ message(STATUS "Checking deps...")
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-client wayland-protocols hyprlang>=0.3.2 sdbus-c++ tomlplusplus)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-client wayland-protocols hyprlang>=0.3.2)
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
add_executable(hypridle ${SRCFILES})

View File

@ -1,2 +1,20 @@
# hypridle
Hyprland's idle daemon
# Configuration
Configuration is done via `~/.config/hypr/hypridle.conf` in the standard
hyprland syntax.
```ini
listener {
timeout = 500 # in seconds
on-timeout = notify-send "You are idle!" # command to run when timeout has passed
on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired.
}
```
# Dependencies
- wayland
- wayland-protocols
- hyprlang >= 0.4.0