put dual gfx on one line

This commit is contained in:
inxi-svn 2008-10-29 07:07:53 +00:00
parent ee703d17c2
commit 5838f7e003

18
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.1.29 #### version: 0.1.30
#### Date: October 28 2008 #### Date: October 28 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif #### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -1182,7 +1182,13 @@ print_it_out()
fi fi
done done
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" "Graphics Info" "${C1}Video Card${C2} ${GFX[0]}" ) i=1
while [[ -n ${GFX[i]} && $i -le 3 ]]
do
long_gfx=$( echo -ne " ${C1}Card $(($i+1))${C2} ${GFX[i]} " )
(( i++ ))
done
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" "Graphics Info" "${C1}Card 1${C2} ${GFX[0]}${long_gfx}" )
if ((X)) if ((X))
then then
long_gfx="${long_gfx}$( echo -ne "${C1} $XVER ${CN}[${C2} ${RES} ${CN}]" )" long_gfx="${long_gfx}$( echo -ne "${C1} $XVER ${CN}[${C2} ${RES} ${CN}]" )"
@ -1191,14 +1197,6 @@ print_it_out()
fi fi
print_screen_output "$long_gfx" print_screen_output "$long_gfx"
i=1
while [[ -n ${GFX[i]} && $i -le 3 ]]
do
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" " " "${C1}Card $(($i+1))${C2} ${GFX[i]}" )
print_screen_output "$long_gfx"
(( i++ ))
done
if ((X)) && ! ((MESA)) if ((X)) && ! ((MESA))
then then
#long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )" #long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )"