Code: Select all
[Rainmeter]
Update=1000
Group=circa2
MouseScrollDownAction=[!CommandMeasure "mWin7Audio" "ChangeVolume -5"][!Update]
MouseScrollUpAction=[!CommandMeasure "mWin7Audio" "ChangeVolume +5"][!Update]
[Metadata]
Name=Circuitous | Volume
Author=Flying Hyrax | flyinghyrax.deviantart.com
Information=Shows the current volume level and output device. | Click the main text to toggle mute; click the secondary text to cycle through audio output devices. | Click anywhere in the roundline to set the volume to that level, or use the mouse wheel to raise and lower the volume.
Version=1.0
License=Creative Commons BY-NC-SA 3.0
@include1=#@#Settings.txt
@include2=#@#Appearance.txt
@include3="#@#Styles\common.inc"
@include4="#@#Styles\#orient#.inc"
[mWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
[mScript]
Measure=Script
ScriptFile=#@#Scripts\Smurfier-Volume.lua
@include5="#@#sharedMeters.inc"
[RoundlineContainer]
Meter=Image
ImageName=#@#images\gateoftime.png
W=(#radius#*2.1875)
H=(#radius#*2.1875)
ImageTint=255,248,54,255
[pie]
Meter=ROUNDLINE
X=(#radius#/12)
Y=(#radius#/12)
MeterStyle=roundlineCommon | pieCommon
MeasureName=mScript
LeftMouseUpAction=!CommandMeasure mScript "Angle($MouseX$-[#CURRENTSECTION#:W]/2, ($MouseY$-[#CURRENTSECTION#:H]/2))"
DynamicVariables=1
Container=RoundlineContainer
[divider]
Meter=IMAGE
MeterStyle=dividerStyle | dividerCommon
Container=RoundlineContainer
[mainText]
Meter=STRING
MeterStyle=mainTextStyle | mainTextCommon
Text=""
LeftMouseUpAction=[!CommandMeasure mWin7Audio ToggleMute][!Update]
DynamicVariables=1
ToolTipText="Click to toggle mute"
[subText]
Meter=STRING
MeterStyle=subTextStyle | subTextCommon
MeasureName=mWin7Audio
Text="%1"
LeftMouseUpAction=[!CommandMeasure mWin7Audio ToggleNext][!Update]
ToolTipText="Click to change audio devices"