Hyprland-dotfiles/scripts/lockscreentime.sh

9 lines
240 B
Bash
Raw Normal View History

2023-09-18 13:46:41 -04:00
#/bin/sh
if [ -f "/usr/bin/swayidle" ]; then
echo "swayidle is installed."
2023-09-18 14:08:25 -04:00
swayidle -w timeout 300 'swaylock -f' timeout 360 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
2023-09-18 13:46:41 -04:00
else
echo "swayidle not installed."
fi;