dotfiles/.config/hypr/hypridle.conf

26 lines
579 B
Text
Raw Normal View History

general {
2024-03-14 09:24:23 +01:00
lock_cmd = pgrep -u "$USER" hyprlock || (hyprlock & sleep 0.5 && $HOME/.scripts/theme-changer.sh album sfw)
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
# Dim screen after 4min
listener {
timeout = 240
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r
}
# Lock after 5min
listener {
timeout = 300
2024-03-14 09:24:23 +01:00
on-timeout = loginctl lock-session
}
# Turn of screen after 6min
listener {
timeout = 360
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}