Skip to content

Instantly share code, notes, and snippets.

@alvistar
Created December 5, 2024 08:51
Show Gist options
  • Save alvistar/12cc51cffe46c3ce53c13d05fc7df977 to your computer and use it in GitHub Desktop.
Save alvistar/12cc51cffe46c3ce53c13d05fc7df977 to your computer and use it in GitHub Desktop.
Rainmaker network skin for showing private and public ip on hovering with illustro style
[Rainmeter]
Update=1000
Background=#@#Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14
[Metadata]
Name=Network
Author=poiru (Modified)
Information=Shows your private IP by default, public IP on hover, and network activity.
License=Creative Commons BY-NC-SA 3.0
Version=1.1.0
[Variables]
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
maxDownload=10485760
MaxUpload=10485760
; ----------------------------------
; MEASURES
; ----------------------------------
; Private (LAN) IP Measure
[measureIPPrivate]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=Best
UpdateRate=1000
; Public (WAN) IP Measure
[measureIPPublic]
Measure=WebParser
URL=https://checkip.amazonaws.com/
UpdateRate=14400
RegExp=(?s)^(.*)$
StringIndex=1
Substitute="":"N/A"
[measureNetIn]
Measure=NetIn
NetInSpeed=#maxDownload#
[measureNetOut]
Measure=NetOut
NetOutSpeed=#maxUpload#
; ----------------------------------
; STYLES
; ----------------------------------
[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
[styleLeftText]
StringAlign=Left
StringStyle=Bold
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
[styleRightText]
StringAlign=Right
StringStyle=Bold
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15
[styleSeperator]
SolidColor=255,255,255,15
; ----------------------------------
; METERS
; ----------------------------------
[meterTitle]
Meter=String
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text=Network
[meterIPLabel]
Meter=String
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text=IP Address
[meterIPValue]
Meter=String
MeterStyle=styleRightText
MeasureName=measureIPPrivate
X=200
Y=0r
W=190
H=14
Text=%1
MouseOverAction=[!SetOption meterIPValue MeasureName "measureIPPublic"][!UpdateMeter meterIPValue][!Redraw]
MouseLeaveAction=[!SetOption meterIPValue MeasureName "measureIPPrivate"][!UpdateMeter meterIPValue][!Redraw]
[meterSeperator]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
[meterUploadLabel]
Meter=String
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text=Upload
[meterUploadValue]
Meter=String
MeterStyle=styleRightText
MeasureName=measureNetOut
X=200
Y=0r
W=190
H=14
Text=%1B/s
NumOfDecimals=1
AutoScale=1
[meterUploadBar]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureNetOut
X=10
Y=72
W=190
H=1
[meterDownloadLabel]
Meter=String
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text=Download
[meterDownloadValue]
Meter=String
MeterStyle=styleRightText
MeasureName=measureNetIn
X=200
Y=0r
W=190
H=14
Text=%1B/s
NumOfDecimals=1
AutoScale=1
[meterDownloadBar]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureNetIn
X=10
Y=92
W=190
H=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment