Fixed reloading config with disabled/enabled hypidle

This commit is contained in:
Hannes
2026-03-22 23:21:51 +01:00
parent 8a8c38be67
commit 9b9ec07f25
2 changed files with 31 additions and 5 deletions
+12 -3
View File
@@ -1,5 +1,14 @@
if pgrep -x "hypridle" >/dev/null ;then
killall hypridle
if [ "$1" = "--status" ]; then
if pgrep -x "hypridle" >/dev/null; then
echo 1
else
echo 0
fi
exit 0
fi
if pgrep -x "hypridle" >/dev/null; then
killall hypridle
else
hypridle &
hypridle &
fi