mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
tweaked A output a bit to make it cleaner on shorter lines
This commit is contained in:
parent
6a4a15e6ee
commit
2ab831b0db
11
inxi
11
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.8.19
|
#### version: 1.8.19
|
||||||
#### Date: October 19 2012
|
#### Date: October 19 2012
|
||||||
#### Patch Number: 06
|
#### Patch Number: 07
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -6903,7 +6903,13 @@ print_audio_data()
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ -n $audio_data ]];then
|
if [[ -n $audio_data ]];then
|
||||||
if [[ $( calculate_line_length "$card_string${audio_data}$alsa_data" ) -lt $LINE_MAX ]];then
|
if [[ $( calculate_line_length "$card_string$audio_data" ) -lt $LINE_MAX ]];then
|
||||||
|
print_data=$( create_print_line "$line_starter" "$card_string$audio_data" )
|
||||||
|
print_screen_output "$print_data"
|
||||||
|
# print the line
|
||||||
|
else
|
||||||
|
# keep the driver on the same line no matter what, looks weird alone on its own line
|
||||||
|
if [[ $B_EXTRA_DATA != 'true' ]];then
|
||||||
print_data=$( create_print_line "$line_starter" "$card_string$audio_data" )
|
print_data=$( create_print_line "$line_starter" "$card_string$audio_data" )
|
||||||
print_screen_output "$print_data"
|
print_screen_output "$print_data"
|
||||||
else
|
else
|
||||||
|
@ -6913,6 +6919,7 @@ print_audio_data()
|
||||||
print_data=$( create_print_line "$line_starter" "$audio_data" )
|
print_data=$( create_print_line "$line_starter" "$audio_data" )
|
||||||
print_screen_output "$print_data"
|
print_screen_output "$print_data"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
line_starter=' '
|
line_starter=' '
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue