Add hyprlock and hypridle

This commit is contained in:
Stephan Raabe
2024-02-23 13:47:01 +01:00
parent f6564b4b75
commit 42d3c5d8f9
12 changed files with 76 additions and 105 deletions
-21
View File
@@ -1,21 +0,0 @@
#/bin/bash
# ___ _ _ _ _
# |_ _|__| | | ___| |_(_)_ __ ___ ___
# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \
# | | (_| | | __/ |_| | | | | | | __/
# |___\__,_|_|\___|\__|_|_| |_| |_|\___|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
# START SWAYIDLE
# exit
# END SWAYIDLE
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' before-sleep 'swaylock -f'
else
echo "swayidle not installed."
fi;