remove possibility for excess globbing in statusA
This commit is contained in:
parent
1d767b3377
commit
8e58e2cd77
|
@ -11,19 +11,19 @@ mod_bspwm () {
|
||||||
current_desk=$(bspc query -D -d .focused --names)
|
current_desk=$(bspc query -D -d .focused --names)
|
||||||
final_string=""
|
final_string=""
|
||||||
current_printed=0
|
current_printed=0
|
||||||
|
cur_char='>'
|
||||||
|
|
||||||
for i in $used_desk; do
|
for i in $used_desk; do
|
||||||
[ "$i" = "$current_desk" ] && \
|
[ "$i" = "$current_desk" ] && \
|
||||||
final_string=${final_string}"*$i " && \
|
final_string=${final_string}"$cur_char$i " && \
|
||||||
current_printed=1 || \
|
current_printed=1 || \
|
||||||
final_string=${final_string}"$i "
|
final_string=${final_string}"$i "
|
||||||
done
|
done
|
||||||
|
|
||||||
[ $current_printed -eq 0 ] &&
|
[ $current_printed -eq 0 ] &&
|
||||||
final_string=${final_string}"*$current_desk "
|
final_string=${final_string}"$cur_char$current_desk "
|
||||||
|
|
||||||
printf "%s" "$final_string"
|
printf "%s" "$final_string"
|
||||||
set +x
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mod_period () {
|
mod_period () {
|
||||||
|
|
Loading…
Reference in New Issue