aboutsummaryrefslogtreecommitdiff
path: root/flavors/linux-hyprland/.config/hypr/hypridle.conf
blob: 775e8e7866be42e534ccb1d7b0aeaf59e3cf9a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
general {
    lock_cmd = pidof hyprlock || hyprlock       # Ejecuta hyprlock si no está corriendo
    before_sleep_cmd = loginctl lock-session    # Bloquea antes de suspender el sistema
    after_sleep_cmd = hyprctl dispatch dpms on  # Enciende los monitores al despertar
}

# 1. Bloquear la pantalla a los 5 minutos (300s)
listener {
    timeout = 300
    on-timeout = loginctl lock-session
}

# 2. Apagar la pantalla 10 segundos después del bloqueo (310s)
listener {
    timeout = 310
    on-timeout = hyprctl dispatch dpms off      # Apaga todos los monitores
    on-resume = hyprctl dispatch dpms on        # Enciende al mover el ratón o pulsar tecla
}