From 999ed6368d35b198cb9697af30d077f873c42c7b Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 23 Dec 2020 16:09:40 +0000 Subject: [PATCH] hlwm: use shell substitution instead of cut --- xdg-config-dir/herbstluftwm/autostart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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