live-reload.sh: app handles config/theme reloading

This commit is contained in:
miruka 2021-01-04 03:32:07 -04:00
parent 199ec7646b
commit c084db201a

View File

@ -17,9 +17,13 @@ make clean
qmake mirage.pro CONFIG+=dev && make qmake mirage.pro CONFIG+=dev && make
while true; do while true; do
find src mirage.pro -type f | # app already handles reloading config and theme files
find src mirage.pro \
-type f -not -path 'src/themes/*' -not -path 'src/config/*' |
# -name affects the first part of the WM_CLASS returned by xprop on Linux # -name affects the first part of the WM_CLASS returned by xprop on Linux
entr -cdnr sh -c \ entr -cdnr sh -c \
"qmake mirage.pro CONFIG+=dev && make && ./mirage -name dev $*" "qmake mirage.pro CONFIG+=dev && make && ./mirage -name dev $*"
sleep 0.2 sleep 0.2
done done