summaryrefslogtreecommitdiff
path: root/_linux/scripts/mcsr.sh
diff options
context:
space:
mode:
Diffstat (limited to '_linux/scripts/mcsr.sh')
-rwxr-xr-x_linux/scripts/mcsr.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/_linux/scripts/mcsr.sh b/_linux/scripts/mcsr.sh
new file mode 100755
index 0000000..89d2136
--- /dev/null
+++ b/_linux/scripts/mcsr.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+pids=()
+
+cleanup() {
+ for pid in "${pids[@]}"; do
+ if kill -0 "$pid" 2>/dev/null; then
+ kill "$pid"
+ fi
+ done
+ exit 1
+}
+
+trap cleanup SIGINT SIGTERM
+
+sxhkd &
+pids+=($!)
+xeyesee &
+pids+=($!)
+nbb &
+pids+=($!)
+
+wait