hlwm: use shell substitution instead of cut
This commit is contained in:
parent
b06b83aa4b
commit
999ed6368d
1 changed files with 2 additions and 1 deletions
|
@ -166,6 +166,7 @@ hc unlock
|
||||||
|
|
||||||
hc detect_monitors
|
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" &
|
sh ~/.config/herbstluftwm/herbstpanel.sh "$m" &
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue