Update swayidle times

This commit is contained in:
Stephan Raabe 2023-10-04 14:18:59 +02:00
parent fe350bfe16
commit ea6f98fd4f
2 changed files with 14 additions and 2 deletions

View File

@ -1,8 +1,20 @@
#/bin/sh
# ___ _ _ _ _
# |_ _|__| | | ___| |_(_)_ __ ___ ___
# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \
# | | (_| | | __/ |_| | | | | | | __/
# |___\__,_|_|\___|\__|_|_| |_| |_|\___|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
timeswaylock=600
timeoff=660
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'
swayidle -w timeout $timeswaylock 'swaylock -f' timeout $timeoff 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
else
echo "swayidle not installed."
fi;

View File

@ -12,7 +12,7 @@
}
{
"label" : "logout",
"action" : "sleep 1; hyprctl dispatch exit",
"action" : "sleep 1; loginctl terminate-user $USER",
"text" : "Logout",
"keybind" : "e"
}