It is currently December 7th, 2022, 7:04 pm

All-in-one Quickview Bar

Skins that monitor system information
User avatar
FuzzyLizard530
Posts: 75
Joined: August 5th, 2014, 2:09 am

All-in-one Quickview Bar

Post by FuzzyLizard530 »

So I made an all-in-one thingy for keeping an eye on computer stats while I browse online, and thought I'd share the code here:

Code: Select all

[Rainmeter]
BackgroundMode=0
Update=1000
AccurateText=1
DynamicWindowSize=0

[Metadata]
Author=FuzzyLizard530 [a.k.a. David Dwight II ]
Name=Quick HUD
Information=Seconds-per-day counter, 4 Core CPU Mon, Battery and Wifi Meters, With Some Power State Buttons
Version=0.0.1
License=Creative Commons BY-NC-SA 3.0

;Measures

[Small]
DynamicVariables=1
FontFace=Small Fonts
FontSize=7
FontColor=0,0,0,255
StringStyle=Bold
StringEffect=Border
FontEffectColor=255,255,255,128
W=140
AntiAlias=1

[Core0]
Measure=CPU
Processor=0

[Core1]
Measure=CPU
Processor=1

[Core2]
Measure=CPU
Processor=2

[Core3]
Measure=CPU
Processor=3

[Core4]
Measure=CPU
Processor=4

[MeasureBatteryLeft]
Measure = Plugin
Plugin = PowerPlugin
PowerState = Percent

[MeasureBatteryTime]
Measure = Plugin
Plugin = PowerPlugin
PowerState = Lifetime

[MeasureBatteryState]
Measure = Plugin
Plugin = PowerPlugin
PowerState = Lifetime

[Variables]
Subtitle=Disconnected
White=255,255,255,255

[ClickyStyle]
StringStyle=Bold
FontFace=Small Fonts
FontSize=7
FontColor=#White#
AntiAlias=1
StringEffect=Shadow
FontEffectColor=0,0,0,255

[MeasureSSID]
Measure=Plugin
Plugin=Plugins\WifiStatus.dll
WifiInfoType=SSID
WifiIntfID=0
Substitute="-1":" "

[MeasureStrength]
Measure=Plugin
Plugin=WifiStatus.dll
WifiInfoType=Quality
WifiIntfID=0
WifiListStyle=0
WifiIntfID=0
MinValue=00
MaxValue=100

[MeasureEncryption]
Measure=Plugin
Plugin=WifiStatus.dll
WifiInfoType=Encryption
WifiIntfID=0
Substitute="-1":" "

[MeasureText]
Measure=Calc
Formula=MeasureStrength
IfAboveAction=!Execute [!RainmeterSetVariable Subtitle "%1%"]
IfAboveValue=0
IfEqualAction=!Execute [!RainmeterSetVariable Subtitle "N/A"]
IfEqualValue=0
Substitute="-1":"N/A"

[Background]
Meter=Image
SolidColor=255,0,0,128
W=150
H=30

[StrengthTxt]
Measure=Calc
Formula=MeasureStrength
IfBelowAction=!Execute [!RainmeterSetVariable Hide "1"]
IfBelowValue=0
IfAboveAction=!Execute [!RainmeterSetVariable Hide "0"]
IfAboveValue=0

[H]
Measure=Time
Format=%H
MinValue=00
MaxValue=23

[M]
Measure=Time
Format=%M
MinValue=00
MaxValue=59

[S]
Measure=Time
Format=%S
MinValue=00
MaxValue=59

[Gone]
Measure=Calc
Formula=((3600*[H])+(60*[M])+[S])
DynamicVariables=1
MinValue=00
MaxValue=86400

[To-Go]
Measure=Calc
Formula=(86400-((3600*[H])+(60*[M])+[S]))
DynamicVariables=1
MinValue=00
MaxValue=86400

;Metres [because I prefer the British spelling!]

[BarStyle]
BarOrientation=Vertical
DynamicVariables=1
W=15
H=31
antialias=1
Flip=1

[BGAll]
Meter=Image
SolidColor=0,0,0,192
Y=0
W=(#WorkAreaWidth#)
H=49

[BackgroundTimer]
Meter=Bar
MeasureName=To-Go
SolidColor=0,0,0,128
Y=1
W=(#WorkAreaWidth#-6)
H=15
BarOrientation=Horizontal
DynamicVariables=1
Flip=1
ToolTipText=[H]:[M]:[S]

[SecondsCounter]
Meter=String
MeasureName=Gone
MeasureName2=To-Go
Y=1
X=0
Text=%1 Sec(s) used | %2 Sec(s) Left
MeterStyle=Small
ToolTipText=[H]:[M]:[S]

[CoreBar1]
Meter=Bar
BarColor=((100-[Core1])*255),([Core1]*255),0,255
measurename=Core1
x=0
y=17
MeterStyle=BarStyle

[CoreBar2]
Meter=Bar
BarColor=((100-[Core2])*255),([Core2]*255),0,255
measurename=Core2
x=16r
y=r
MeterStyle=BarStyle

[CoreBar3]
Meter=Bar
BarColor=((100-[Core3])*255),([Core3]*255),0,255
measurename=Core3
x=16r
y=r
MeterStyle=BarStyle

[CoreBar4]
Meter=Bar
BarColor=((100-[Core4])*255),([Core4]*255),0,255
measurename=Core4
x=16r
y=r
MeterStyle=BarStyle

[CoreBar0]
Meter=String
measurename=Core0
x=30
y=16r
DynamicVariables=1
FontFace=Small Fonts
FontSize=7
FontColor=0,0,0,255
StringStyle=Bold
StringEffect=Border
StringAlign=CenterCenter
FontEffectColor=255,255,255,128
W=60
AntiAlias=1
Text=%1%

[BattBar]
MeasureName = MeasureBatteryLeft
Meter = BAR
X = 64
Y = 17
W = (#ScreenAreaWidth#*0.75)
H = 31
BarColor=(255*(100-([MeasureBatteryLeft]))),([MeasureBatteryLeft]*255),0,128
BarOrientation = Horizontal
DynamicVariables=1
Flip=0

[BattTxt]
Meter = String
MeasureName = MeasureBatteryLeft
MeasureName2 = MeasureBatteryTime
X = 66
Y = 18
DynamicVariables=1
FontFace=Small Fonts
FontSize=7
FontColor=0,0,0,255
StringEffect=Border
StringAlign=Left
FontEffectColor=(255*(100-[MeasureBatteryLeft])),([MeasureBatteryLeft]*255),0,128
Text=%1%#CRLF#%2 remaining

[WiFiBackground]
Meter=Image
X=(65+(#ScreenAreaWidth#*0.75))
Y=17
SolidColor=255,0,0,128
W=(#ScreenAreaWidth#-(70+(#ScreenAreaWidth#*0.75)))
H=31

[WiFiBar]
Meter=Bar
MeasureName=MeasureStrength
X=(65+(#ScreenAreaWidth#*0.75))
Y=r
W=(#ScreenAreaWidth#-(70+(#ScreenAreaWidth#*0.75)))
H=31
BarOrientation=Horizontal
DynamicVariables=1

[WifiInfo]
Meter=STRING
MeasureName=MeasureStrength
MeasureName2=MeasureSSID
MeterStyle=ClickyStyle
Text=%1%#CRLF#%2
X=5r
Y=5r
DynamicVariables=1

[WifiEnc]
Meter=STRING
MeasureName=MeasureEncryption
MeterStyle=ClickyStyle
Text=%1
X=20r
Y=r
DynamicVariables=1

[Lock]
Meter=IMAGE
X=(#ScreenAreaWidth#-5)
Y=1
W=5
H=15
SolidColor=255,255,0,128
ToolTipText="Lock Computer"
LeftMouseDownAction=rundll32.exe user32.dll LockWorkStation  

[Sleep]
Meter=IMAGE
X=r
Y=16r
W=5
H=15
SolidColor=0,0,192,128
ToolTipText="Sleep"
AntiAlias=1
LeftMouseDownAction=rundll32.exe powrprof.dll,SetSuspendState

[Reboot]
Meter=IMAGE
X=r
Y=16r
W=5
H=15
SolidColor=255,0,0,128
ToolTipText="Restart Computer"
LeftMouseDownAction=%systemroot%\system32\shutdown.exe -r
Still a WIP, but I like how it's looking so far.

-"timebar" for counting seconds left/used in the current day [I plan to place an overlay with the hour number and quarter-hour "ticks"]
-There's a 4-core cpu meter on the bottom left
-Large Battery meter with percentge and time remaining counter
-Wifi signal meter with Signal Strength, Encryption info, and SSID
-the small buttons on the far right side are from top to bottom: Lock, Sleep, and restart

As Mentioned, I plan to have a few changes:
-Wifi meter may have an up/down counter
-wider power buttons
-May switch the battery and cpu meters order.

Any other suggestions for what I should add to this are welcome, but don't tke it personal if I don't add it!
You do not have the required permissions to view the files attached to this post.
I may or may not have a signature in this, very location...