mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
put dual gfx on one line
This commit is contained in:
parent
ee703d17c2
commit
5838f7e003
18
inxi
18
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.1.29
|
||||
#### version: 0.1.30
|
||||
#### Date: October 28 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -1182,7 +1182,13 @@ print_it_out()
|
|||
fi
|
||||
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))
|
||||
then
|
||||
long_gfx="${long_gfx}$( echo -ne "${C1} $XVER ${CN}[${C2} ${RES} ${CN}]" )"
|
||||
|
@ -1191,14 +1197,6 @@ print_it_out()
|
|||
fi
|
||||
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))
|
||||
then
|
||||
#long_gfx="$( echo -ne "${INDENT}${C1}GLX Renderer${C2} ${GLXR}${CN} | ${C1}GLX Version${C2} ${GLXV}${CN}" )"
|
||||
|
|
Loading…
Reference in a new issue