LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hypridle

idle daemon for Hyprland that runs commands after inactivity

TLDR

Start with the default config
$ hypridle
copy
Start with a specific config file
$ hypridle -c [path/to/hypridle.conf]
copy
Run with verbose logs
$ hypridle -v
copy
Enable the user systemd unit (when Hyprland is started via uwsm)
$ systemctl --user enable --now hypridle.service
copy

SYNOPSIS

hypridle [options]

DESCRIPTION

hypridle is Hyprland's idle management daemon. After a configured number of idle seconds it runs on-timeout commands (dim the screen, lock, DPMS off, suspend). When input resumes it runs on-resume. It also reacts to logind D-Bus lock/unlock and prepare-sleep events so the session can lock before suspend.A config file is required; hypridle will not start without one. Add `hypridle` to Hyprland autostart, or enable hypridle.service if the session is started with uwsm.

PARAMETERS

-c, --config file

Path to the configuration file.
-v, --verbose
Verbose logging.
-h, --help
Show help.

CONFIGURATION

Default path: ~/.config/hypr/hypridle.conf.general keys include lock_cmd, unlock_cmd, before_sleep_cmd, after_sleep_cmd, ignore_dbus_inhibit, ignore_systemd_inhibit, ignore_wayland_inhibit, and inhibit_sleep (0 disable, 1 wait for beforesleepcmd, 2 auto, 3 wait until a lock screen holds the session).Each listener needs timeout (seconds). Optional on-timeout, on-resume, ignore_inhibit, condition_cmd (run before on-timeout; exit 0 to fire), and condition_retry (re-check every N seconds while still idle).

$ general {
    lock_cmd = pidof hyprlock || hyprlock
    before_sleep_cmd = loginctl lock-session
}

listener {
    timeout = 300
    on-timeout = loginctl lock-session
}
copy
condition_cmd runs on hypridle's event loop; keep it fast. Video players often hold a Wayland idle inhibit, which pauses every listener unless ignore_inhibit is set on that listener.

INSTALL

sudo pacman -S hypridle
copy
sudo zypper install hypridle
copy
nix profile install nixpkgs#hypridle
copy

CAVEATS

Needs a running Hyprland session and a valid config. Sleep inhibition depends on logind. Do not put blocking scripts in condition_cmd.

HISTORY

Part of the Hyprland ecosystem (hyprwm).

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid