hyprland-dotfiles/scripts/lockscreentime.sh

9 lines
240 B
Bash
Raw Permalink Normal View History

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