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