Last active
August 28, 2020 17:21
-
-
Save gnaggnoyil/a5c429b43d65b4951762d6f8f22a46e7 to your computer and use it in GitHub Desktop.
Showing `nvidia-smi` outputs to a rainmeter skin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Rainmeter] | |
Update=1000 | |
Background=#@#Background2x.png | |
BackgroundMode=3 | |
BackgroundMargins=32,68,32,28 | |
OnRefreshAction=[!CommandMeasure "MeasureGPUs" "Run"] | |
DynamicWindowSize=1 | |
[Metadata] | |
Name=nvidia-smi | |
Author=gnaggnoyil | |
Information=nvidia-smi | |
Version=1.0.0 | |
License=Creative Commons BY-NC-SA 3.0 | |
[Variables] | |
$=2 | |
TempSize=(10*#$#) | |
TempFont=Sarasa Fixed SC | |
[MeasureGPUs] | |
Measure=Plugin | |
Plugin=RunCommand | |
Parameter=powershell -Command "nvidia-smi -L" | |
State=Hide | |
OutputType=UTF8 | |
[MeasureNVIDIA_SMI] | |
Measure=Plugin | |
Plugin=RunCommand | |
Parameter=powershell -Command "nvidia-smi" | |
State=Hide | |
OutputType=UTF8 | |
[MeasureTimer] | |
Measure=Calc | |
Formula=1 | |
OnUpdateAction=[!CommandMeasure "MeasureNVIDIA_SMI" "Run"] | |
UpdateDivider=5 | |
[StyleTitle] | |
StringAlign=Center | |
StringCase=Upper | |
StringStyle=Bold | |
StringEffect=Shadow | |
FontEffectColor=0,0,0,50 | |
FontColor=#FontColor# | |
FontFace=#TempFont# | |
FontSize=(10*#$#) | |
AntiAlias=1 | |
ClipString=2 | |
[StyleLeftText] | |
StringAlign=Left | |
StringCase=None | |
StringStyle=Normal | |
StringEffect=Shadow | |
FontEffectColor=0,0,0,20 | |
FontColor=#FontColor# | |
FontFace=#TempFont# | |
FontSize=(10*#$#) | |
AntiAlias=1 | |
ClipString=2 | |
[MeterPlaceHolder] | |
Meter=STRING | |
MeterStyle=StyleLeftText | |
X=(10*#$#) | |
Y=(40*#$#) | |
SolidColor=0,0,0,0 | |
FontColor=0,0,0,0 | |
;DynamicVariables=1 | |
Text=1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1#CRLF#1 | |
[MeterResult] | |
Meter=STRING | |
MeasureName=MeasureGPUs | |
MeasureName2=MeasureNVIDIA_SMI | |
MeterStyle=StyleLeftText | |
X=([MeterPlaceHolder:X]) | |
Y=([MeterPlaceHolder:Y]) | |
ClipStringH=([MeterPlaceHolder:H]) | |
DynamicVariables=1 | |
Text=%1#CRLF#%2 | |
[MeterTitle] | |
Meter=String | |
MeterStyle=StyleTitle | |
X=([MeterResult:X]+[MeterResult:W]/2) | |
Y=(12*#$#) | |
DynamicVariables=1 | |
Text=nvidia-smi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment