diff --git a/xdg-config-dir/herbstluftwm/autostart b/xdg-config-dir/herbstluftwm/autostart index a969fff..988bc9a 100755 --- a/xdg-config-dir/herbstluftwm/autostart +++ b/xdg-config-dir/herbstluftwm/autostart @@ -166,6 +166,7 @@ hc unlock hc detect_monitors -for m in $(hc list_monitors | cut -d : -f 1); do +hc list_monitors | while read -r line; do + m=${line%%:*} sh ~/.config/herbstluftwm/herbstpanel.sh "$m" & done