Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified @Resources/Fonts/MaterialIcon.ttf
Binary file not shown.
Binary file modified @Resources/ModuleList.inc
Binary file not shown.
6 changes: 6 additions & 0 deletions @Resources/Modules/Network/Include/Variables.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Variables]
; vargen|Network Position|Network|int|0:#Body.Width#
Module.Network.P=1060
; vargen|Network Anchor [0/1/2]|Network|int|0:2
Module.Network.A=2
Module.Network.W=(2*#Body.Element#)
65 changes: 65 additions & 0 deletions @Resources/Modules/Network/Network.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[Variables]
@IncludeNetworkVariables=#@#Modules\Network\Include\Variables.inc

[Module.Network.StyleIconString]
InlineSetting=Face | #Font.Icon#
InlineSetting2=Size | #Font.IconS#
InlineSetting3=Color | #Colour.2#,#Colour.2.Alpha#
InlineSetting4=Color | 0,0,0,0
InlinePattern4=Highlight
InlineSetting5=CharacterSpacing | 0 | (-[#CurrentSection#:h]*0.75)
InlinePattern5=Highlight
StringAlign=CenterCenter
Prefix=Highlight
AntiAlias=1
DynamicVariables=1

[Module.Network.StyleInfoString]
InlineSetting=Face | #Font.Display#
InlineSetting2=Size | #Font.DisplayS#
InlineSetting3=Color | #Colour.2#,#Colour.2.Alpha#
StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1

[Module.Network.ConnectivityReader]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
UpdateDivider=(1000/#UpdateInterval#)
OnChangeAction=[!UpdateMeasureGroup Module.Network.calc][!UpdateMeterGroup Module.Network.Display][!Redraw]
Substitute="-1":"NA","1":"OK"

[Module.Network.NetworkIconS]
Group=Module.Network.calc
Measure=Calc
Formula=(Module.Network.ConnectivityReader=-1?0:(Module.Network.ConnectivityReader=1?1:0))

[Module.Network.Container]
Meter=Image
x=(#Body.Border#+#Module.Network.P#-(#Module.Network.A#*0.5)*#Module.Network.W#)
y=((#Skin.Height#-#Body.Element#)/2)
w=#Module.Network.W#
h=#Body.Element#
SolidColor=0,0,0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure Main.PSRM "Update"][!WriteKeyValue Variables Parent.Position "([#CurrentSection#:x]+[#CurrentSection#:w]/2)" "#RootConfigPath#\PopUp\Network_PopUp.ini"][!ActivateConfig "#ROOTCONFIG#\PopUp" "Network_PopUp.ini"]

[Module.Network.NetworkIcon]
Group=module.Network.Display
MeterStyle=Module.Network.StyleIconString
Meter=String
x=(#Body.Element#*0.5)
y=(#Body.Element#*0.5)
MeasureName=Module.Network.NetworkIconS
Text=Network%1
Container=Module.Network.Container

[Module.Network.ConnectivityDisplay]
Group=Module.Network.Display
MeterStyle=Module.Network.StyleInfoString
Meter=String
x=(#Body.Element#*1.5)
y=(#Body.Element#*0.5)
MeasureName=Module.Network.ConnectivityReader
Container=Module.Network.Container
Binary file modified @Resources/Modules/NowPlaying/Include/Variables.inc
Binary file not shown.
Binary file modified @Resources/Modules/NowPlaying/NowPlaying.inc
Binary file not shown.
7 changes: 5 additions & 2 deletions @Resources/Modules/Time/Include/Variables.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[Variables]
; vargen|Time Position|Time|int|0:#Body.Width#
Module.Time.P=1192
Module.Time.P=1184
; vargen|Time Anchor [0/1/2]|Time|int|0:2
Module.Time.A=2
Module.Time.W=(2*#Body.Element#)
; vargen|Time Format (See docs.rainmeter.net for Format Codes)|Time|string
Module.Time.F=%H : %M

Module.Time.W=[Module.Time.TimeDisplay:w]
4 changes: 2 additions & 2 deletions @Resources/Modules/Time/Time.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OnChangeAction=[!UpdateMeter Module.Time.TimeDisplay]

[Module.Time.Time.HM]
Measure=Time
Format=%H : %M
Format=#Module.Time.F#
UpdateDivider=(5000/#UpdateInterval#)
OnChangeAction=[!UpdateMeter Module.Time.TimeDisplay]

Expand All @@ -37,7 +37,7 @@ LeftMouseUpAction=[!CommandMeasure Main.PSRM "Update"][!WriteKeyValue Variables
Group=Module.Time.Display
MeterStyle=Module.Time.StyleInfoString
Meter=String
x=#Body.Element#
x=(#Module.Time.W#/2)
y=(#Body.Element#*12/24)
MeasureName=Module.Time.Time.HM
DynamicVariables=1
Expand Down
4 changes: 2 additions & 2 deletions @Resources/Settings/Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function SetInteractableData {
$RmAPI.Bang("!HideMeter `"`"`"Button.$i`"`"`" ")
$RmAPI.Bang("!SetOption Label.$i Text `"`"`"$($Data[$i]["Desc"])`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i Text `"`"`"$($Data[$i]["Value"])`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i LeftMouseUpAction `"`"`"[!SetOption InputText Command1 `"`"`"[!CommandMeasure $($RmAPI.GetMeasureName()) `"`"`"ValidateVariableInput $Page $i `"$($Data[$i]["Path"])`" `'$`UserInput$`' `"`"`"] y=([`*Value.$i`:y*]`+#*Padding*#) defaultvalue=$($Data[$i]["Value"]) `"`"`"][!UpdateMeasure InputText][!CommandMeasure InputText `"`"`"ExecuteBatch 1`"`"`"]`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i LeftMouseUpAction `"`"`"[!SetOption InputText Command1 `"`"`"[!CommandMeasure $($RmAPI.GetMeasureName()) `"`"`"ValidateVariableInput $Page $i `"$($Data[$i]["Path"])`" `'$`UserInput$`' `"`"`"] y=([`*Value.$i`:y*]`+#*Padding*#) defaultvalue=`"$($Data[$i]["Value"])`" `"`"`"][!UpdateMeasure InputText][!CommandMeasure InputText `"`"`"ExecuteBatch 1`"`"`"]`"`"`" ")
}
$RmAPI.Bang("!UpdateMeterGroup `"`"`"Interactable`"`"`" ")
$RmAPI.Bang("!Redraw")
Expand Down Expand Up @@ -362,7 +362,7 @@ function SetInteractableData {
$RmAPI.Bang("!HideMeter `"`"`"Button.$i`"`"`" ")
$RmAPI.Bang("!SetOption Label.$i Text `"`"`"$($Data[$i]["Desc"])`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i Text `"`"`"$($Data[$i]["Value"])`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i LeftMouseUpAction `"`"`"[!SetOption InputText Command1 `"`"`"[!CommandMeasure $($RmAPI.GetMeasureName()) `"`"`"ValidateVariableInput $Page $i `"$($Data[$i]["Path"])`" `'$`UserInput$`' `"`"`"] y=([`*Value.$i`:y*]`+#*Padding*#) defaultvalue=$($Data[$i]["Value"]) `"`"`"][!UpdateMeasure InputText][!CommandMeasure InputText `"`"`"ExecuteBatch 1`"`"`"]`"`"`" ")
$RmAPI.Bang("!SetOption Value.$i LeftMouseUpAction `"`"`"[!SetOption InputText Command1 `"`"`"[!CommandMeasure $($RmAPI.GetMeasureName()) `"`"`"ValidateVariableInput $Page $i `"$($Data[$i]["Path"])`" `'$`UserInput$`' `"`"`"] y=([`*Value.$i`:y*]`+#*Padding*#) defaultvalue=`"$($Data[$i]["Value"])`" `"`"`"][!UpdateMeasure InputText][!CommandMeasure InputText `"`"`"ExecuteBatch 1`"`"`"]`"`"`" ")
}
$RmAPI.Bang("!ShowMeter `"`"`"Setting.ButtonReturn`"`"`" ")
$RmAPI.Bang("!SetOption `"`"`"Setting.ButtonReturn`"`"`" LeftMouseUpAction `"`"`"[!CommandMeasure $($RmAPI.GetMeasureName()) `"`"`"SetInteractableData Modules`"`"`"] `"`"`" ")
Expand Down
136 changes: 136 additions & 0 deletions PopUp/Network_PopUp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
[Rainmeter]
SkinWidth=#Skin.Width#
SkinHeight=#Skin.Height#
Update=#UpdateInterval#
DefaultUpdateDivider=-1
AccurateText=1
OnRefreshAction=[!CommandMeasure Main.ActionTimer "Stop 1" "#RootConfig#"][!Move "#Skin.X#" "#Skin.Y#"][!Update]
MouseLeaveAction=[!CommandMeasure Main.ActionTimer "Execute 1" "#RootConfig#"]
MouseOverAction=[!CommandMeasure Main.ActionTimer "Stop 1" "#RootConfig#"]
DefaultAlwaysOnTop=-2

[Variables]
@IncludeVar=#@#variables.inc
UpdateInterval=1000

; Dicatates popup size
Skin.Width=(#Body.Element#*10)
Skin.Height=(#Body.Element#*2+#Body.Padding#*2)

; Do not change
Parent.Position=1031
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+(#Body.Width#+2*#Body.Border#)-#Skin.Width#)))
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#+2*#Body.Border#):(#Body.Y#-#body.PopUp#-#Skin.Height#-2*#Body.Border#)))
Format=(((#Format#=0?1:0)=0?1:0)=0?1:0)

[Module.Network.StyleInfoString]
h=#Body.Element#
InlineSetting=Face | #Font.Display#
InlineSetting2=Size | #Font.DisplayS#
InlineSetting3=Color | #Colour.2#,#Colour.2.Alpha#
Postfix=[\x00A0]
AntiAlias=1
DynamicVariables=1

[Module.Network.StyleIconString]
InlineSetting=Face | #Font.Icon#
InlineSetting2=Size | #Font.IconS#
InlineSetting3=Color | #Colour.2#,#Colour.2.Alpha#
InlineSetting4=Color | 0,0,0,0
InlinePattern4=Highlight
InlineSetting5=CharacterSpacing | 0 | (-#Font.IconS#)
InlinePattern5=Highlight
StringAlign=CenterCenter
Prefix=Highlight
AntiAlias=1
DynamicVariables=1

[Module.Network.SsidReader]
Measure=WifiStatus
WifiInfoType=SSID
UpdateDivider=(1000/#UpdateInterval#)
OnChangeAction=[!UpdateMeasureGroup Module.Network.calc][!UpdateMeterGroup Module.Network.Display][!Redraw]
Substitute="-1":""

[Module.Network.TypeReader]
Measure=SysInfo
SysInfoType=ADAPTER_TYPE
SysInfoData=Best
UpdateDivider=(1000/#UpdateInterval#)
OnChangeAction=[!UpdateMeasureGroup Module.Network.calc][!UpdateMeterGroup Module.Network.Display][!Redraw]

[Module.Network.StateReader]
Measure=SysInfo
SysInfoType=ADAPTER_STATE
SysInfoData=Best
UpdateDivider=(1000/#UpdateInterval#)
OnChangeAction=[!UpdateMeasureGroup Module.Network.calc][!UpdateMeterGroup Module.Network.Display][!Redraw]

[Module.Network.ConnectivityReader]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
UpdateDivider=(1000/#UpdateInterval#)
OnChangeAction=[!UpdateMeasureGroup Module.Network.calc][!UpdateMeterGroup Module.Network.Display][!Redraw]
Substitute="-1":"but Offline","1":"and Online"

[Module.Network.Border]
Meter=Shape
Shape=Rectangle 0,0,#Skin.Width#,#Skin.Height#,#Body.Corner# | StrokeWidth 0 | Fill Color #Colour.4#,#Colour.4.Alpha#

[Module.Network.Background]
Meter=Shape
Shape=Rectangle #Body.Border#,#Body.Border#,(#Skin.Width#-#Body.Border#*2),(#Skin.Height#-#Body.Border#*2),#Body.Corner# | StrokeWidth 0 | Fill Color #Colour.1#,#Colour.1.Alpha#

[Module.Network.SwitchIcon]
MeterStyle=Module.Network.StyleIconString
Meter=String
x=(#Body.Padding#+#Body.Element#*0.5)
y=(#Body.Padding#+#Body.Element#*0.5)
w=#Body.Element#
h=#Body.Element#
Text=Switch
DynamicVariables=1
InlineSetting3=Color | #Colour.2#,(#Colour.2.Alpha#*0.25)

[Module.Network.TypeDisplay]
Group=Module.Network.Display
MeterStyle=Module.Network.StyleInfoString
Meter=String
MeasureName=Module.Network.TypeReader
x=(#Skin.Width#-#Body.Padding#)
y=(#Body.Padding#+#Body.Element#*0.5)
StringAlign=RightCenter

[Module.Network.SsidDisplay]
Group=Module.Network.Display
MeterStyle=Module.Network.StyleInfoString
Meter=String
MeasureName=Module.Network.SsidReader
x=-[Module.Network.TypeDisplay:w]r
y=(#Body.Padding#+#Body.Element#*0.5)
w=(#Skin.Width#-#Body.Padding#-[Module.Network.TypeDisplay:w]*1.5)
StringAlign=RightCenter
ClipString=1

[Module.Network.EmptyIcon]
MeterStyle=Module.Network.StyleIconString
Meter=String
x=(#Body.Padding#+#Body.Element#*0.5)
y=(#Body.Padding#+#Body.Element#*1.5)
w=#Body.Element#
h=#Body.Element#
Text=ItemEmpty
DynamicVariables=1
InlineSetting3=Color | #Colour.2#,(#Colour.2.Alpha#*0.25)

[Module.Network.StateDisplay]
Group=Module.Network.Display
MeterStyle=Module.Network.StyleInfoString
Meter=String
MeasureName=Module.Network.StateReader
MeasureName2=Module.Network.ConnectivityReader
x=(#Skin.Width#-#Body.Padding#)
y=(#Body.Padding#+#Body.Element#*1.5)
StringAlign=RightCenter
Text=%1 %2