Update swayidle times
This commit is contained in:
parent
fe350bfe16
commit
ea6f98fd4f
@ -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;
|
||||
|
@ -12,7 +12,7 @@
|
||||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "sleep 1; hyprctl dispatch exit",
|
||||
"action" : "sleep 1; loginctl terminate-user $USER",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user