From 3a1560202b9aa433193541e1ce0094a75798a406 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Fri, 9 Jan 2026 12:07:46 +0300 Subject: [PATCH] Update hyprshade-auto.sh --- .config/scripts/hyprshade-auto.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.config/scripts/hyprshade-auto.sh b/.config/scripts/hyprshade-auto.sh index 4b8d134..921509d 100644 --- a/.config/scripts/hyprshade-auto.sh +++ b/.config/scripts/hyprshade-auto.sh @@ -16,10 +16,8 @@ STATE=$(cat "$STATE_FILE") case "$STATE" in 0) # DEFAULT (AUTO) - sudo systemctl --user start hyprshade-auto.service - sudo systemctl --user enable hyprshade-auto.service - sudo systemctl --user start hyprshade-auto.timer - sudo systemctl --user enable hyprshade-auto.timer + systemctl --user daemon-reload + systemctl --user enable --now hyprshade-auto.timer if [ "$HOUR" -ge 19 ] || [ "$HOUR" -lt 7 ]; then hyprshade on "$SHADER" else @@ -37,10 +35,10 @@ case "$STATE" in ;; 1) # KAPALI - sudo systemctl --user stop hyprshade-auto.service - sudo systemctl --user disable hyprshade-auto.service - sudo systemctl --user stop hyprshade-auto.timer - sudo systemctl --user disable hyprshade-auto.timer + systemctl --user stop hyprshade-auto.service + systemctl --user disable hyprshade-auto.service + systemctl --user stop hyprshade-auto.timer + systemctl --user disable hyprshade-auto.timer hyprshade off echo "Kapalı mod" echo 2 > "$STATE_FILE" @@ -48,10 +46,10 @@ case "$STATE" in ;; 2) # HEP AÇIK - sudo systemctl --user stop hyprshade-auto.service - sudo systemctl --user disable hyprshade-auto.service - sudo systemctl --user stop hyprshade-auto.timer - sudo systemctl --user disable hyprshade-auto.timer + systemctl --user stop hyprshade-auto.service + systemctl --user disable hyprshade-auto.service + systemctl --user stop hyprshade-auto.timer + systemctl --user disable hyprshade-auto.timer hyprshade on "$SHADER" echo "Hep açık mod" echo 0 > "$STATE_FILE"