Conkyheader.sh (en)
From Conky PitStop
conkyheader.sh
Language | English Français |
This script is pretty plain really. The only reason I have it pulled out into a script is... well, I could.
Of note are the two large ‘tattoos’ I have flanking my computer name using voffset and goto for spacing... also note that they are doubled up with an offset to give them a kind of 3D look.
#!/bin/sh # conkyheader.sh # by Crinos512 # Usage: # ${execp ~/.conky/conkyparts/conkyheader.sh} OSVer="K"`lsb_release -i | cut -f 2| tr "[:upper:]" "[:lower:]"`" ( "`lsb_release -r | cut -f 2`" )" WMVer=`kde4-config --version | grep 'KDE' | head --bytes=11` Updates=`aptitude search "~U" | wc -l | tail` echo "\${goto 20}\${font tattoo:size=50}\${color3}c\${goto 330}c\${font}\${color}" echo "\${voffset -51}\${goto 21}\${font tattoo:size=50}\${color1}c\${goto 331}c\${font}\${color}" echo "\${voffset -51}\${font Algerian:Bold:size=16}\${alignc}\${color3}\$nodename\${font}" echo "\${font Liberation Sans:Bold:size=10}\${alignc}~ \$kernel ~" echo "\${alignc}~ $OSVer ~ $WMVer ~" echo "\${alignc}~ $Updates System Updates ~" echo "\${alignc}~ Uptime: \$uptime_short ~\${color}\${font}" echo "\${voffset -10} \${color1}( Conky \${conky_version}\${alignr}\${exec conkyForecast -V} )\${color} " exit 0
I abstracted a few things out so that they were run through bash directly instead if through conky and then through bash in the hopes of making my conky overall more efficient.
[UPDATED: 12 Sept. 2009]