hlwm: use shell substitution instead of cut

This commit is contained in:
Lucas 2020-12-23 16:09:40 +00:00
parent b06b83aa4b
commit 999ed6368d
1 changed files with 2 additions and 1 deletions

View File

@ -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