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
}