From 7a88dee6bf63d51d90ad93dc33e7aa6febaa6efb Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 4 Sep 2023 23:06:31 -0500 Subject: [PATCH] refactor(hypr): ensure events monitor shuts down prior processes --- dots/.config/hypr/scripts/launchers/events-monitor.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/hypr/scripts/launchers/events-monitor.bash b/dots/.config/hypr/scripts/launchers/events-monitor.bash index 3f4544ea..62414577 100755 --- a/dots/.config/hypr/scripts/launchers/events-monitor.bash +++ b/dots/.config/hypr/scripts/launchers/events-monitor.bash @@ -46,7 +46,7 @@ monitor-laptop-lid() { sleep 1 done } - +kill -9 "$(pgrep -f "${BASH_SOURCE[0]}" | grep -v "${$}")" monitor-ssid & monitor-laptop-lid & wait