From 1ef2375f78cb30afff38b49094083c531098a703 Mon Sep 17 00:00:00 2001
From: Tony Blyler <tony.blyler@cbinsights.com>
Date: Mon, 9 Jan 2023 13:14:21 -0500
Subject: [PATCH] Fix bug with polybar not updating with new monitors

---
 chezmoi/private_dot_config/i3/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chezmoi/private_dot_config/i3/config b/chezmoi/private_dot_config/i3/config
index 9e394bb..cb44dbc 100644
--- a/chezmoi/private_dot_config/i3/config
+++ b/chezmoi/private_dot_config/i3/config
@@ -4,7 +4,7 @@
 #
 ### Startup
 exec_always --no-startup-id autotiling
-exec --no-startup-id bash -c 'trap "jobs -rp | xargs -r kill" EXIT; while sleep 1; do for MONITOR in $(polybar --list-monitors | cut -d : -f 1); do MONITOR="$MONITOR" flock "${HOME}/.cache/polybar.${MONITOR}.lock" polybar mybar & done; wait -n; jobs -rp | xargs -r kill; done'
+exec --no-startup-id bash -c 'while sleep 15; do for MONITOR in $(polybar --list-monitors | cut -d : -f 1); do MONITOR="$MONITOR" flock -n "${HOME}/.cache/polybar.${MONITOR}.lock" polybar mybar & done; done'
 exec --no-startup-id bash -c 'while sleep 15; do autorandr --change; done'
 exec --no-startup-id dunst
 exec --no-startup-id nm-applet