mirror of
https://github.com/hyprwm/hypridle.git
synced 2024-12-22 05:29:49 +01:00
readme: add config
This commit is contained in:
parent
9e8d11a964
commit
11232c5cf1
2 changed files with 19 additions and 1 deletions
|
@ -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})
|
||||
|
|
18
README.md
18
README.md
|
@ -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
|
Loading…
Reference in a new issue