Skip to content

Commit

Permalink
OS Version
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidliadon committed Mar 16, 2019
1 parent e78ccd7 commit e374f5d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions system/system.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Name=System
Author=Alex Guerrieri <[email protected]>
Information=Displays info about the system.
License=Creative Commons
Version=1.0.1
Version=1.0.2

@Include=../common.ini

Expand All @@ -25,6 +25,23 @@ Plugin=SysInfo
SysInfoType=OS_VERSION
UpdateDivider=-1

[_OSEdition]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic os get caption
State=Hidden
OutputType=ANSI
RegExpSubstitute=1
Substitute="Caption\s+Microsoft\s+":"","\s+#CRLF#":""
OnChangeAction=[!SetOption MeterOS Text "%3 x%2"][!Redraw "MeterTest"]

[_onLoad]
Measure=Calc
Formula=Counter
IfAboveValue=0
IfAboveAction=[!CommandMeasure "_OSEdition" "Run"]
UpdateDivider=-1

[_OSBits]
Measure=Plugin
Plugin=SysInfo
Expand Down Expand Up @@ -157,6 +174,7 @@ MeterStyle=_system | _style | _hover | _darker | _spaced
StringStyle=Italic
MeasureName=_OSVersion
MeasureName2=_OSBits
MeasureName3=_OSEdition
Text="%1 x%2"
LeftMouseUpAction="ms-settings:about"

Expand All @@ -170,4 +188,4 @@ FontSize=(1.50*#FONTSIZE#)
Text="%1@%2"
X=5r
Y=(-2.75*#FONTSIZE#)r
LeftMouseUpAction="ms-settings:yourinfo"
LeftMouseUpAction="ms-settings:yourinfo"

0 comments on commit e374f5d

Please sign in to comment.