remove possibility for excess globbing in statusA

This commit is contained in:
randomuser 2023-01-04 13:26:41 -06:00
parent 1d767b3377
commit 8e58e2cd77
1 changed files with 3 additions and 3 deletions

View File

@ -11,19 +11,19 @@ mod_bspwm () {
current_desk=$(bspc query -D -d .focused --names)
final_string=""
current_printed=0
cur_char='>'
for i in $used_desk; do
[ "$i" = "$current_desk" ] && \
final_string=${final_string}"*$i " && \
final_string=${final_string}"$cur_char$i " && \
current_printed=1 || \
final_string=${final_string}"$i "
done
[ $current_printed -eq 0 ] &&
final_string=${final_string}"*$current_desk "
final_string=${final_string}"$cur_char$current_desk "
printf "%s" "$final_string"
set +x
}
mod_period () {