From 3ec7bf19b2be910ee28a89da9487c9725d86fe24 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Thu, 30 Oct 2025 14:08:15 +0100 Subject: i use linux btw --- _linux/scripts/mcsr.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 _linux/scripts/mcsr.sh (limited to '_linux/scripts/mcsr.sh') 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 -- cgit v1.3.1