hlwm: use shell substitution instead of cut
This commit is contained in:
parent
b06b83aa4b
commit
999ed6368d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user