From: Matthew Owens <matthew@owens.tech>
Date: Thu, 30 Jul 2020 17:33:54 +0000 (+0100)
Subject: added procup
X-Git-Url: https://git.owens.tech/assets/dummy.html/assets/dummy.html/git?a=commitdiff_plain;h=fc5479a4cfecc4a6edfe2dd427f6b6f667437256;p=scripts.git

added procup
---

diff --git a/procup b/procup
new file mode 100755
index 0000000..17bfc19
--- /dev/null
+++ b/procup
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# dunst has to start first, otherwise otherwise this script will
+# hang on notify-send
+procs="dunst dwmbar sxhkd"
+
+for proc in $procs; do
+	if [[ $(pgrep $proc) -eq "" ]]; then
+		$proc &
+		notify-send cron "$proc restarted"
+	fi
+done