Code: Select all
[Rainmeter]
Update=50
AccurateText=1
DynamicWindowSize=1
MouseOverAction= [!UpdateMeterGroup *] [!Redraw]
MouseLeaveAction= [!UpdateMeterGroup *] [!Redraw]
[Metadata]
Name=RoundTemplate
Author=sl23
Information=RoundTemplate.||Credits:||Adapted from "SimplyRound" Suite by Krzysztof "gronostaj" Smialek||Help via forum:
Version=2021.8.14
License=CC BY 3.0
[Variables]
Color1=255,255,255,200
Color2=128,255,0
Color3=64,191,167,200
Color4=0,255,255
Color5=255,255,255,60
Color6=235,170,0,190
VolLow=25
VolMax=80
APP1=
APP2=
APP3=
APP4=
APP5=
APP6=
NAME1=
NAME2=
NAME3=
NAME4=
NAME5=
NAME6=
; For Mic Click action
MicVolume=
Increment=5
InputVolume=0
VolumeIncrement=1
========================================
; Background
========================================
[Bg]
Meter=Shape
Shape=Rectangle 0,0,230,70,35 | Fill Color 0,0,0,150 | StrokeWidth 2 | Extend StrokeAlpha
StrokeAlpha=Stroke Color #Color5#
DynamicVariables=1
X=2
Y=2
[Bg1]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=[!CommandMeasure "mOutput" "SetVolume #VolLow#"][PLAY "#@#Windows Notify System Generic.wav"] [!UpdateMeasure mOutput] [!UpdateMeter *] [!Redraw]
MiddleMouseUpAction=[!CommandMeasure "mOutput" "ToggleMute"]
RightMouseUpAction=[!CommandMeasure "mOutput" "SetVolume #VolMax#"][PLAY "#@#Windows Notify System Generic.wav"] [!UpdateMeasure mOutput] [!UpdateMeter *] [!Redraw]
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption Speaker FontColor "#Color2#"][!HideMeterGroup SpeakerIcon][!ShowMeterGroup Output] [!UpdateMeter *][!UpdateMeterGroup *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption Speaker FontColor "#Color1#"][!ShowMeterGroup SpeakerIcon][!HideMeterGroup Output] [!UpdateMeter *][!UpdateMeterGroup *][!Redraw]
MouseScrollUpAction=[!CommandMeasure "mOutput" "ChangeVolume 5"] [!UpdateMeasure mOutput] [!UpdateMeter VolBar] [!UpdateMeasure mOutput] [!UpdateMeter *] [!Redraw]
MouseScrollDownAction=[!CommandMeasure "mOutput" "ChangeVolume -5"] [!UpdateMeasure mOutput] [!UpdateMeter VolBar] [!UpdateMeasure mOutput] [!UpdateMeter *] [!Redraw]
DynamicVariables=1
ToolTipText="L - #NAME1##CRLF#M - #NAME2##CRLF#R - #NAME3#"
X=7
Y=7
[BgLine]
Meter=Shape
Shape=Rectangle 67,42,100,1,0 | Fill Color #Color5# | StrokeWidth 0
DynamicVariables=1
[Bg2]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=[!CommandMeasure DeviceVolume "Set-InputVolume"]
MiddleMouseUpAction=[!CommandMeasure DeviceVolume "InputToggle-Mute"]
RightMouseUpAction=[!CommandMeasure DeviceVolume "Set-InputVolume"]
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption MicLevel FontColor "#Color2#"][!HideMeter MicIcon][!ShowMeterGroup Input] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption MicLevel FontColor "#Color1#"][!ShowMeter MicIcon][!HideMeterGroup Input] [!UpdateMeter *][!Redraw]
MouseScrollUpAction=[!SetVariable InputVolume "(Clamp(#InputVolume#+5,0,100))"][!CommandMeasure DeviceVolume "Set-InputVolume"][!Update]
MouseScrollDownAction=[!SetVariable InputVolume "(Clamp(#InputVolume#-5,0,100))"][!CommandMeasure DeviceVolume "Set-InputVolume"][!Update]
DynamicVariables=1
ToolTipText="L - #NAME4##CRLF#M - #NAME5##CRLF#R - #NAME6#"
X=167
Y=7
========================================
; STYLES
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=Center
FontSize=12
FontColor=#Color1#
StringEffect=Shadow
FontEffectColor=0,0,0,150
AntiAlias=1
DynamicVariables=1
[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
[sRoundBar]
LineStart=22
LineLength=28
LineWidth=2
StartAngle=(Rad(270))
Antialias=1
Solid=1
;[Title]
;Meter=String
;MeterStyle=sAllText | sHighlight
;FontSize=11
;Text=SPKR + MIC
;InlineSetting=Size | 8
;InlinePattern=.+ ( .+ ) .+
;LeftMouseUpAction=[!ToggleMeterGroup Info][!Redraw]
;X=116
;Y=25
========================================
; Output
========================================
[mSpeakerLevel]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=50
RMSDecay=300
RMSGain=2
[mSpeaker]
Measure=Plugin
Plugin=AudioLevel
Parent=mSpeakerLevel
Type=RMS
[Speaker]
Meter=String
MeterStyle=sAllText
MeasureName=mSpeaker
NumOfDecimals=2
Percentual=1
Text=%1
X=90
Y=5
[SpeakerBar]
Meter=Roundline
MeasureName=mSpeaker
MeterStyle=sRoundBar
LineColor=#Color3#
X=37
Y=37
[SpeakerIconBg]
Meter=String
MeterStyle=sAllText
FontFace=Segoe MDL2 Assets
FontSize=16
FontColor=#Color5#
Text=[\xE767]
Group=SpeakerIcon
X=38
Y=27
[SpeakerIcon]
Meter=String
MeterStyle=sAllText
FontFace=Segoe MDL2 Assets
FontSize=16
Text=
Group=SpeakerIcon
X=38
Y=27
========================================
; VOLUME
========================================
[mOutput]
Measure=Plugin
Plugin=Win7AudioPlugin
DynamicVariables=1
IfCondition=mOutput = -1
IfTrueAction=[!SetOption SpeakerIcon Text "[\xE74F]"][!SetOption MeterOutputPercent Text "Output: Muted"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MeterOutputSlider X "(([OutputVolume:] * (200 - 20) / 100) + 20)"][!UpdateMeter *][!Redraw]
IfCondition2=mOutput = 0
IfTrueAction2=[!SetOption SpeakerIcon Text "[\xE992]"][!UpdateMeter *][!Redraw]
IfCondition3=(mOutput > 0) && (mOutput <= 35)
IfTrueAction3=[!SetOption SpeakerIcon Text "[\xE993]"]
IfCondition4=(mOutput > 35) && (mOutput <= 65)
IfTrueAction4=[!SetOption SpeakerIcon Text "[\xE994]"]
IfCondition5=mOutput > 65
IfTrueAction5=[!SetOption SpeakerIcon Text "[\xE995]"]
IfConditionMode=1
Substitute="-1":"Muted"
[OutputLevel]
Meter=String
MeterStyle=sAllText
FontColor=#Color2#
Text=[mOutput:]
Hidden=1
Group=Output
X=37
Y=27
[OutputRoundBar]
Meter=Roundline
MeasureName=mOutput
MeterStyle=sRoundBar
LineColor=#Color2#
LineWidth=4
Solid=0
Hidden=1
Group=Output
X=r
Y=37
========================================
; Microphone
========================================
[mMicLevel]
Measure=Plugin
Plugin=AudioLevel
Port=Input
RMSAttack=50
RMSDecay=300
;Set your desired Mic-response here--------------------
RMSGain=10
[mMic]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicLevel
Type=RMS
[MicLevel]
Meter=String
MeterStyle=sAllText
MeasureName=mMic
NumOfDecimals=2
Percentual=1
Text=%1
X=145
Y=5
[MicRoundBar]
Meter=Roundline
MeasureName=mMic
MeterStyle=sRoundBar
LineColor=#Color3#
X=197
Y=37
[MicIcon]
Meter=String
MeterStyle=sAllText
FontFace=Segoe MDL2 Assets
FontSize=16
Text=[\xE720]
X=198
Y=27
========================================
; Mic Volume
========================================
[DeviceVolume]
Measure=Plugin
Plugin=PowershellRM
ScriptFile=DeviceVolume.ps1
[InputVolume]
Measure=Plugin
Plugin=PowershellRM
Parent=DeviceVolume
Line=Get-Volume -Type Input
IfCondition=InputVolume = -1
IfTrueAction=[!SetOption MicIcon Text "[\xE720]"][!SetOption MicVolumeText Text "Muted"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MeterInputSlider X "(([InputVolume:] * (200 - 20) / 100) + 20)"][!SetOption MicVolumeText Text "[*MeasureInputPercent:%,0*]"][!UpdateMeter *][!Redraw]
IfCondition2=InputVolume = 0
IfTrueAction2=[!SetOption MicIcon Text "[\xE720]"]
IfCondition3=(InputVolume > 0) && (InputVolume <= 35)
IfTrueAction3=[!SetOption MicIcon Text "[\xE720]"]
IfCondition4=(InputVolume > 35) && (InputVolume <= 65)
IfTrueAction4=[!SetOption MicIcon Text "[\xE720]"]
IfCondition5=InputVolume > 65
IfTrueAction5=[!SetOption MicIcon Text "[\xE720]"]
IfConditionMode=1
Substitute="-1":"Muted","1.000001":"1","2.999999":"3","9.000001":"9"
[MeasureInputMouse]
Measure=Plugin
Plugin=Mouse
RelativeToSkin=1
RequireDragging=1
DynamicVariables=1
[MeasureInputPercent]
Measure=Calc
Formula=[MeterInputSlider:X]
MinValue=20
MaxValue=200
DynamicVariables=1
OnChangeAction=[!SetVariable InputVolume "([MeasureInputPercent:%,0])"][!CommandMeasure DeviceVolume "Set-InputVolume"]
[MicVolumeText]
Meter=String
MeasureName=InputVolume
MeterStyle=sAllText
FontColor=#Color2#
Text=%1
Percentual=1
NumOfDecimals=0
Hidden=1
Group=Input
X=197
Y=27
[InputRoundBar]
Meter=Roundline
MeasureName=MeasureInputPercent
MeterStyle=sRoundBar
LineColor=#Color2#
LineWidth=4
Solid=0
Hidden=1
Group=Input
X=197
Y=37
==========================================
[MeterInputSlideBack]
Meter=Shape
X=20
Y=80
Shape=Rectangle 0,0,200,10,5 | Fill Color 150,150,150,255 | StrokeWidth 0
DynamicVariables=1
MouseActionCursor=0
MouseScrollUpAction=[!SetVariable InputVolume "(Clamp(#InputVolume#-1,0,100))"][!CommandMeasure DeviceVolume "Set-InputVolume"][!Update]
MouseScrollDownAction=[!SetVariable InputVolume "(Clamp(#InputVolume#+1,0,100))"][!CommandMeasure DeviceVolume "Set-InputVolume"][!Update]
[MeterInputSlideBar]
Meter=Shape
X=20
Y=80
Shape=Rectangle 0,0,[MeterInputSlider:X],10,5 | Fill Color 56,150,51,255 | StrokeWidth 0
DynamicVariables=1
[MeterInputSlider]
Meter=Shape
Y=75
Shape=Ellipse 10,10,10,10 | Fill Color 106,222,100,255 | StrokeWidth 0
LeftMouseDownAction=[!CommandMeasure MeasureInputMouse "Start"]
[MeterInputPercent]
Meter=String
X=22
Y=108
FontSize=11
FontWeight=700
FontColor=255,255,255,255
Percentual=1
NumOfDecimals=0
AntiAlias=1
DynamicVariables=1
Another problem I'm trying to solve, is the Left and Right click to set the Mic Volume at 25 and 80 respectively.