19 lines
637 B
Bash
Executable File
19 lines
637 B
Bash
Executable File
#/bin/bash
|
|
# ___ _ _ _ _
|
|
# |_ _|__| | | ___| |_(_)_ __ ___ ___
|
|
# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \
|
|
# | | (_| | | __/ |_| | | | | | | __/
|
|
# |___\__,_|_|\___|\__|_|_| |_| |_|\___|
|
|
#
|
|
#
|
|
# by Stephan Raabe (2023)
|
|
# -----------------------------------------------------
|
|
|
|
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'
|
|
else
|
|
echo "swayidle not installed."
|
|
fi;
|