9 lines
240 B
Bash
Executable File
9 lines
240 B
Bash
Executable File
#/bin/sh
|
|
|
|
if [ -f "/usr/bin/swayidle" ]; then
|
|
echo "swayidle is installed."
|
|
swayidle -w timeout 300 'swaylock -f' timeout 360 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
|
else
|
|
echo "swayidle not installed."
|
|
fi;
|