Add Idle Inhibitor

This commit is contained in:
Stephan Raabe
2023-12-14 18:24:40 +01:00
parent 68b7e7e623
commit 201bedcc26
14 changed files with 81 additions and 7 deletions

View File

@@ -9,9 +9,7 @@
# by Stephan Raabe (2023)
# -----------------------------------------------------
timeswaylock=600
timeoff=660
source ~/dotfiles/.settings/swayidle.sh
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'