summaryrefslogtreecommitdiff
path: root/config/hypr/hypridle.conf
blob: adebf91f9288c1c894389fdd2669abe799b8cf30 (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 = swaylock -c 000000     # 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 = swaylock
}

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

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