summaryrefslogtreecommitdiff
path: root/config/hypr/hypridle.conf
blob: 8809a22ff0ce32af82f9eea63dd9909f5e6c7dbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$suspend_cmd = pidof steam || systemctl suspend || loginctl suspend

# General_settings
general {
    before_sleep_cmd = hyprlock               # command before sleep
    ignore_dbus_inhibit = false               # (used by e.g. firefox or steam)
}

# Screen_brightness
listener {
	timeout = 300
	on-timeout = brightnessctl s 20%
	on-resume = brightnessctl s 100%
}

# Screen_lock
listener {
    timeout = 600
    on-timeout = hyprlock
}

# Screen_off
listener {
	timeout = 780
	on-timeout = hyprctl dispatch dpms off
	on-resume = hyprctl dispatch dpms on
}

# Suspend
listener {
    timeout = 1200
    on-timeout = $suspend_cmd
}