summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhyprsunset.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hyprsunset.sh b/hyprsunset.sh
index 4b6e045..332b027 100755
--- a/hyprsunset.sh
+++ b/hyprsunset.sh
@@ -53,9 +53,9 @@ calculate_sleep_time() {
}
while true; do
- if [ ! -d /run/user/$UID/hypr/hyprsunset ]; then
+ if [ ! -S $XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.hyprsunset.sock ]; then
echo "Hyprsunset not running, running it via hyprctl dispatch"
- hyprctl dispatch execr hyprsunset
+ hyprctl dispatch "hl.dsp.exec_raw('hyprsunset')"
fi
apply_settings
sleep_time=$(calculate_sleep_time)