Hyprland-dotfiles/hypr/scripts/lockscreentime.sh

22 lines
684 B
Bash
Raw Normal View History

2023-12-03 11:50:14 -05:00
#/bin/bash
2023-10-04 08:18:59 -04:00
# ___ _ _ _ _
# |_ _|__| | | ___| |_(_)_ __ ___ ___
# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \
# | | (_| | | __/ |_| | | | | | | __/
# |___\__,_|_|\___|\__|_|_| |_| |_|\___|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
2024-01-11 10:03:36 -05:00
# START SWAYIDLE
# exit
# END SWAYIDLE
2023-12-14 12:24:40 -05:00
source ~/dotfiles/.settings/swayidle.sh
2023-09-18 13:46:41 -04:00
if [ -f "/usr/bin/swayidle" ]; then
echo "swayidle is installed."
2023-10-04 08:18:59 -04:00
swayidle -w timeout $timeswaylock 'swaylock -f' timeout $timeoff 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
2023-09-18 13:46:41 -04:00
else
echo "swayidle not installed."
fi;