diff --git a/hyprland/.config/hypr/config.d/81-autostart-swayidle.conf b/hyprland/.config/hypr/config.d/81-autostart-swayidle.conf new file mode 100644 index 00000000..0114e60c --- /dev/null +++ b/hyprland/.config/hypr/config.d/81-autostart-swayidle.conf @@ -0,0 +1,3 @@ +# vim: set ft=config: +# Configuration for swayidle is in ~/.config/swayidle/config +exec-once = swayidle -w diff --git a/hyprland/.config/swayidle/config b/hyprland/.config/swayidle/config new file mode 100644 index 00000000..f700bca5 --- /dev/null +++ b/hyprland/.config/swayidle/config @@ -0,0 +1,4 @@ +timeout 900 'swaylock -f' +before-sleep 'swaylock -f' +lock 'swaylock -f' +unlock 'pkill -xu "$USER" -SIGUSR1 swaylock'