A read-only mirror of https://github.com/hyprwm/hypridle
Find a file
Mihai Fufezan a3855cb40b
CI: init
2024-02-17 23:14:09 +02:00
.github/workflows CI: init 2024-02-17 23:14:09 +02:00
nix Nix: init 2024-02-17 23:14:08 +02:00
src core: initial commit 2024-02-17 19:30:11 +00:00
.clang-format core: initial commit 2024-02-17 19:30:11 +00:00
.gitignore core: initial commit 2024-02-17 19:30:11 +00:00
CMakeLists.txt readme: add config 2024-02-17 19:33:44 +00:00
flake.lock Nix: init 2024-02-17 23:14:08 +02:00
flake.nix Nix: init 2024-02-17 23:14:08 +02:00
LICENSE Initial commit 2024-02-17 17:49:23 +00:00
README.md readme: clarify multiple listeners 2024-02-17 19:36:52 +00:00

hypridle

Hyprland's idle daemon

Configuration

Configuration is done via ~/.config/hypr/hypridle.conf in the standard hyprland syntax.

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.
}

You can add as many listeners as you please. Omitting on-timeout or on-resume (or leaving them empty) will make those events ignored.

Dependencies

  • wayland
  • wayland-protocols
  • hyprlang >= 0.4.0

Building & Installation

Building:

cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
cmake --build ./build --config Release --target hypridle -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

Installation:

sudo cmake --install build