Hyprland-dotfiles/hypr/hypridle.conf

48 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-02-24 05:39:04 -05:00
# _ _ _ _
# | |__ _ _ _ __ _ __(_) __| | | ___
# | '_ \| | | | '_ \| '__| |/ _` | |/ _ \
# | | | | |_| | |_) | | | | (_| | | __/
# |_| |_|\__, | .__/|_| |_|\__,_|_|\___|
# |___/|_|
#
2024-03-14 12:18:48 -04:00
# Version 2.8.3
2024-03-20 10:31:56 -04:00
# DO NOT REMOVE THE REPLACEMENT COMMENTS
# REQUIRED BY THE ML4W SETTINGS APP
2024-04-01 06:49:13 -04:00
# https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/
# general {
# ignore_dbus_inhibit = false
# }
2024-02-24 05:39:04 -05:00
2024-02-23 07:47:01 -05:00
general {
2024-04-01 06:49:13 -04:00
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
2024-02-23 07:47:01 -05:00
}
2024-02-24 05:39:04 -05:00
# Screenlock
2024-02-23 07:47:01 -05:00
listener {
2024-03-14 12:18:48 -04:00
# HYPRLOCK TIMEOUT
2024-02-28 07:58:33 -05:00
timeout = 600
2024-03-14 12:18:48 -04:00
# HYPRLOCK ONTIMEOUT
2024-04-01 06:49:13 -04:00
on-timeout = loginctl lock-session
2024-02-24 05:39:04 -05:00
}
2024-03-04 06:51:30 -05:00
# dpms
2024-02-24 05:39:04 -05:00
listener {
2024-03-14 12:18:48 -04:00
# DPMS TIMEOUT
2024-02-28 07:58:33 -05:00
timeout = 660
2024-03-14 12:18:48 -04:00
# DPMS ONTIMEOUT
2024-03-04 06:51:30 -05:00
on-timeout = hyprctl dispatch dpms off
2024-03-14 12:18:48 -04:00
# DPMS ONRESUME
2024-03-04 06:51:30 -05:00
on-resume = hyprctl dispatch dpms on
}
2024-02-28 07:58:33 -05:00
2024-03-04 06:51:30 -05:00
# Suspend
listener {
2024-03-14 12:18:48 -04:00
# SUSPEND TIMEOUT
2024-03-04 06:51:30 -05:00
timeout = 1800
2024-03-14 12:18:48 -04:00
#SUSPEND ONTIMEOUT
2024-03-02 15:01:39 -05:00
on-timeout = systemctl suspend
2024-02-24 05:39:04 -05:00
}