init
This commit is contained in:
11
scripts/lockscreentime.sh
Executable file
11
scripts/lockscreentime.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#/bin/sh
|
||||
|
||||
timeswaylock=600
|
||||
timeoff=660
|
||||
|
||||
if [ -f "/usr/bin/swayidle" ]; then
|
||||
echo "swayidle is installed."
|
||||
swayidle -w timeout $timeswaylock 'swaylock -f' timeout $timeoff 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
||||
else
|
||||
echo "swayidle not installed."
|
||||
fi;
|
Reference in New Issue
Block a user