summaryrefslogtreecommitdiff
path: root/config/hypr/hypridle.conf
blob: 8b9b1f7f2e61bee13928659cae93b8b47e6e1de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
general {
    before_sleep_cmd = echo "Sleeping."
    after_sleep_cmd = echo "Awake!"
    ignore_dbus_inhibit = true
}

listener {
    timeout = 90
    on-timeout = brightnessctl -s ; brightnessctl set $(expr $(brightnessctl get) / 3)
    on-resume = brightnessctl -r
}

listener {
    timeout = 120
    on-timeout = brightnessctl set 0 
    on-resume = brightnessctl -r
}

listener {
    timeout = 240
    on-timeout = systemctl suspend
    on-resume = notify-send "Hey! Welcome back!" ; brightnessctl -r
}