Add swayidle script

This commit is contained in:
Stephan Raabe
2023-09-18 19:46:41 +02:00
parent eeccb67f44
commit 2e8afef36d
3 changed files with 10 additions and 0 deletions

8
scripts/lockscreentime.sh Executable file
View File

@@ -0,0 +1,8 @@
#/bin/sh
if [ -f "/usr/bin/swayidle" ]; then
echo "swayidle is installed."
swayidle -w timeout 60 'swaylock -f' timeout 100 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
else
echo "swayidle not installed."
fi;