Skip to content

Instantly share code, notes, and snippets.

@greed-d
Created December 13, 2025 17:28
Show Gist options
  • Select an option

  • Save greed-d/ab237322006f003cb34a4a8f0ceec270 to your computer and use it in GitHub Desktop.

Select an option

Save greed-d/ab237322006f003cb34a4a8f0ceec270 to your computer and use it in GitHub Desktop.
Hypridle for niri
# Default config taken from hypridle wiki : https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/
general {
lock_cmd = pidof qs || qs -c noctalia-shell ipc call lockScreen lock # avoid multiple hyprlock instance
before_sleep_cmd = qs -c noctalia-shell ipc call lockScreen lock
after_sleep_cmd = niri msg action power-on-monitors# press one key to wake up screen
}
listener {
timeout = 150
on-timeout = brightnessctl -s set 0
on-resume = brightnessctl -r
}
listener {
timeout = 300
on-timeout = dms ipc call lock lock
}
listener {
timeout = 330
on-timeout = niri msg action power-off-monitors
on-resume = niri msg action power-on-monitors
}
listener {
timeout = 1800
on-timeout = systemctl suspend
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment