From b35c38be2a6ed14cda88b336ac8ac32bc056422f Mon Sep 17 00:00:00 2001
From: Mora Unie Youer <mora_unie_youer@riseup.net>
Date: Sun, 2 Mar 2025 17:57:13 +0300
Subject: feat: add hot-reload run script

---
 run.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100755 run.sh

diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..dfeddca
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env sh
+
+while true; do
+  ags run --gtk4 &
+  PID=$!
+  inotifywait -e modify -e move -e create -e delete -e attrib -r $(pwd)
+
+  kill $PID
+  kill $(pgrep gjs)
+done
-- 
cgit v1.2.3-70-g09d2