From fc5479a4cfecc4a6edfe2dd427f6b6f667437256 Mon Sep 17 00:00:00 2001 From: Matthew Owens Date: Thu, 30 Jul 2020 18:33:54 +0100 Subject: [PATCH] added procup --- procup | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 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 -- 2.20.1