Conkygraphics.sh (en)
From Conky PitStop
conkygraphics.sh
| Language | English Français |
In this script I use lspci to return my video card make and model, and the program nvidia-settings to grab some stats from the current settings.
#!/bin/sh
# conkygraphics.sh
# by Crinos512
# Usage:
# ${execp ~/.conky/conkyparts/conkygraphics.sh}
#
Card=`lspci | grep VGA | tail -c+36 | head -n1`
Driver="NVidia "`nvidia-settings -q NvidiaDriverVersion -t`
Resolution=`nvidia-settings -q FrontEndResolution -t`
Refresh=`nvidia-settings -q RefreshRate3 -t`
Mem=`nvidia-settings -q VideoRam -t`
Clock=`nvidia-settings -q GPU2DClockFreqs -t`
XRandr=`nvidia-settings -q XRandRVersion -t`
OpenGL=`nvidia-settings -q OpenGLVersion -t | head -c6`
Xorg=`cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16`
echo "\${color1}\${stippled_hr 1}\${color}"
echo "\${voffset -6} Graphics:"
echo "\${voffset -6}\${color1}\${stippled_hr 1}\${color}"
echo " \${color2}$Card\${color}\${alignr} @ \${color2}$Clock Mhz\${color} "
echo " X.org: \${color2}$Xorg\${color}\${goto 180}Xrandr: \${color2}$XRandr\${color}\${alignr}OpenGL: \${color2}$OpenGL\${color} "
echo " Driver: \${color2}$Driver\${color}\${alignr}Screen: \${color2}$Resolution\${color} @ \${color2}$Refresh\${color} "
exit 0
To find other attributes that can be pulled from nvidia-settings for your specific card run the following:
nvidia-settings --query=all | grep "Attribute " > ~/nvsettingsattrib.txt
... and then check out the file ~/nvsettingsattrib.txt
[UPDATED: 12 Sept. 2009]