Update hyprshade-auto.sh

This commit is contained in:
FURK4NGG
2026-01-09 12:07:46 +03:00
committed by GitHub
parent 4b1f9484ca
commit 3a1560202b
+10 -12
View File
@@ -16,10 +16,8 @@ STATE=$(cat "$STATE_FILE")
case "$STATE" in case "$STATE" in
0) 0)
# DEFAULT (AUTO) # DEFAULT (AUTO)
sudo systemctl --user start hyprshade-auto.service systemctl --user daemon-reload
sudo systemctl --user enable hyprshade-auto.service systemctl --user enable --now hyprshade-auto.timer
sudo systemctl --user start hyprshade-auto.timer
sudo systemctl --user enable hyprshade-auto.timer
if [ "$HOUR" -ge 19 ] || [ "$HOUR" -lt 7 ]; then if [ "$HOUR" -ge 19 ] || [ "$HOUR" -lt 7 ]; then
hyprshade on "$SHADER" hyprshade on "$SHADER"
else else
@@ -37,10 +35,10 @@ case "$STATE" in
;; ;;
1) 1)
# KAPALI # KAPALI
sudo systemctl --user stop hyprshade-auto.service systemctl --user stop hyprshade-auto.service
sudo systemctl --user disable hyprshade-auto.service systemctl --user disable hyprshade-auto.service
sudo systemctl --user stop hyprshade-auto.timer systemctl --user stop hyprshade-auto.timer
sudo systemctl --user disable hyprshade-auto.timer systemctl --user disable hyprshade-auto.timer
hyprshade off hyprshade off
echo "Kapalı mod" echo "Kapalı mod"
echo 2 > "$STATE_FILE" echo 2 > "$STATE_FILE"
@@ -48,10 +46,10 @@ case "$STATE" in
;; ;;
2) 2)
# HEP AÇIK # HEP AÇIK
sudo systemctl --user stop hyprshade-auto.service systemctl --user stop hyprshade-auto.service
sudo systemctl --user disable hyprshade-auto.service systemctl --user disable hyprshade-auto.service
sudo systemctl --user stop hyprshade-auto.timer systemctl --user stop hyprshade-auto.timer
sudo systemctl --user disable hyprshade-auto.timer systemctl --user disable hyprshade-auto.timer
hyprshade on "$SHADER" hyprshade on "$SHADER"
echo "Hep açık mod" echo "Hep açık mod"
echo 0 > "$STATE_FILE" echo 0 > "$STATE_FILE"