From 9f8f5d1f03767a14e1923e3638e5c2fd3f6d5f80 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 8 Jan 2025 11:44:05 +0200 Subject: Trying to fix issue where activitywatch wouldn't work until I nixos rebuild bcz of the boot being full so I can't rebuild properly --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 680954c..351e4b0 100644 --- a/.zshrc +++ b/.zshrc @@ -114,6 +114,11 @@ if [ ! -f "$MARKER_FILE" ]; then nohup aw-qt &>/dev/null & disown nohup awatcher &>/dev/null & disown touch "$MARKER_FILE" + + { + wait $aw_qt_pid || rm -f "$MARKER_FILE" + wait $awatcher_pid || rm -f "$MARKER_FILE" + } & disown fi # Install catppuccin automatically if it's not installed already -- cgit v1.3.1