Skip to content

Commit a2f550a

Browse files
authored
Merge pull request #24 from C0rvust/version-2.0.2
Version 2.0.2
2 parents c529007 + 474d863 commit a2f550a

30 files changed

+57
-43
lines changed

.Assets/Overview3.png

-717 KB
Binary file not shown.

.Assets/Overview4.png

-1.69 MB
Binary file not shown.

.Assets/Overview5.png

-2.87 MB
Binary file not shown.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@Resources/Modules/NowPlaying/Include/CoverMM.png
2+
@Resources/Modules/Taskbar/Include/Dependencies/Icons
3+
@Resources/Modules/Taskbar/Include/Pinned
4+
@Resources/Modules/Shortcut/Include/Shortcuts

@Resources/Fonts/MaterialIcon.ttf

208 Bytes
Binary file not shown.

@Resources/ModuleList.inc

-222 Bytes
Binary file not shown.

@Resources/Modules/NowPlaying/Include/MediaSwitcher.ps1

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ function SetPlayerHierachy {
1010
}
1111

1212
function ReturnActivePlayer {
13-
$PlayerList=$Global:PlayerList # Given the set hierachy
14-
For($i=0; $i -lt $PlayerList.length; $i++){ # Choose the one that is hghest in hierachy and is currently playing media
15-
If($($RMAPI.Measure("MSState."+$PlayerList[$i])) -eq 1){
16-
Return $PlayerList[$i]
17-
}
18-
}
19-
For($i=0; $i -lt $PlayerList.length; $i++){ # Otherwise choose the one that is highest in hierachy and is currently paused
20-
If($($RMAPI.Measure("MSState."+$PlayerList[$i])) -eq 2){
21-
Return $PlayerList[$i]
13+
14+
$PlayerList=$Global:PlayerList
15+
for ($state=1; $state -le 2; $state++){ # First find the first player that is playing media (1), if not then find the first player that is currently paused
16+
for ($i=0; $i -lt $PlayerList.length; $i++) {
17+
if($($RMAPI.Measure("MSState."+$PlayerList[$i])) -eq $state) {
18+
Return $PlayerList[$i]
19+
}
2220
}
2321
}
24-
Return "" # Otherwise return "no player avaliable"
22+
Return $null # Otherwise return "no player avaliable"
2523
}
2624

2725
function SetActivePlayer {

@Resources/Modules/NowPlaying/Include/Variables.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|NowPlaying Position|NowPlaying|int|0:#Body.Width#
3-
Module.NowPlaying.P=750
3+
Module.NowPlaying.P=600
44
; vargen|NowPlaying Anchor [0/1/2]|NowPlaying|int|0:2
55
Module.NowPlaying.A=1
66
Module.NowPlaying.W=(12*#Body.Element#)
9.05 KB
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|Power Position|Power|int|0:#Body.Width#
3-
Module.Power.P=46
3+
Module.Power.P=8
44
; vargen|Power Anchor [0/1/2]|Power|int|0:2
55
Module.Power.A=0
6-
Module.Power.W=(1*#Body.Element#)
6+
Module.Power.W=(1*#Body.Element#)

@Resources/Modules/Shortcut/Include/Shortcut.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ LeftMouseUpAction=[`"#@#Modules\Shortcut\Include\Shortcuts\$($_.Name)`"]
2020
2121
"@
2222
}
23-
$Content | Out-File $Dest
23+
24+
$Content | Out-File -FilePath $Dest
2425
}
2526
}
2627

@Resources/Modules/Shortcut/Include/Variables.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|Shortcut Position|Shortcut|int|0:#Body.Width#
3-
Module.Shortcut.P=8
3+
Module.Shortcut.P=1000
44
; vargen|Shortcut Anchor [0/1/2]|Shortcut|int|0:2
55
Module.Shortcut.A=0
66
Module.Shortcut.W=(1*#Body.Element#)
Binary file not shown.
-1.38 KB
Binary file not shown.

@Resources/Modules/Taskbar/Include/Taskbar.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ x=($($i)*#Module.Taskbar.ProgramW#+(#Module.Taskbar.ProgramW#-#Module.Taskbar.Ic
173173
174174
"@
175175
}
176-
$Content | Out-File $Destination
176+
$Content | Out-File -FilePath $Destination
177177
$RMAPI.Bang("!Refresh")
178178
}
179179
}

@Resources/Modules/Taskbar/Include/Variables.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|Taskbar Position|Taskbar|int|0:#Body.Width#
3-
Module.Taskbar.P=86
3+
Module.Taskbar.P=46
44
; vargen|Taskbar Anchor [0/1/2]|Taskbar|int|0:2
55
Module.Taskbar.A=0
66
Module.Taskbar.W=(#Module.Taskbar.ProgramCount#*#Module.Taskbar.ProgramW#)

@Resources/Modules/Taskbar/Taskbar.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Measure=Plugin
1616
Plugin=ProgramOptions
1717
Indexes=#Module.Taskbar.ProgramCount#
1818
AdditionalDependencies=#Module.Taskbar.AddDep#
19-
WindowMirrorPath=#Module.Taskbar.WMPath#
2019
UpdateDivider=(1000/#UpdateInterval#)
2120

2221
[Module.Taskbar.PSRM]
@@ -25,7 +24,7 @@ Plugin=PowerShellRM
2524
ScriptFile=#@#Modules\Taskbar\Include\Taskbar.ps1
2625
UpdateDivider=(1000/#UpdateInterval#)
2726

28-
[Module.Taskbar.PSRM2]
27+
[Module.Taskbar.PSRMParam]
2928
Measure=Plugin
3029
Plugin=PowershellRM
3130
Param=214,85,113|255
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|Time Position|Time|int|0:#Body.Width#
3-
Module.Time.P=1492
3+
Module.Time.P=1192
44
; vargen|Time Anchor [0/1/2]|Time|int|0:2
55
Module.Time.A=2
66
Module.Time.W=(2*#Body.Element#)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Variables]
22
; vargen|Volume Position|Volume|int|0:#Body.Width#
3-
Module.Volume.P=1356
3+
Module.Volume.P=1124
44
; vargen|Volume Anchor [0/1/2]|Volume|int|0:2
55
Module.Volume.A=2
66
Module.Volume.W=(2*#Body.Element#)

@Resources/Settings/Settings.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$RootConfig=$RmAPI.VariableStr("RootConfig")
22
$Resources=$RmAPI.VariableStr("@")
3-
# $VariablesFile=$RmAPI.VariableStr("@") + "Variables.inc"
43
$ModuleListFile=$RmAPI.VariableStr("@") + "ModuleList.inc"
54
$ModuleFolder=$RmAPI.VariableStr("@") + "Modules"
65
$SettingsFolder=$RmAPI.VariableStr("@") + "Settings"

@Resources/Variables.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Body.Element=30
44
; vargen|Element padding|General|int|0:
55
Body.Padding=8
66
; vargen|Taskbar width|General|int|0:
7-
Body.Width=1500
7+
Body.Width=1200
88
Body.Height=(#Body.Element#+2*#Body.Padding#)
99
; vargen|Corner size|General|int|0:
1010
Body.Corner=6
1111
; vargen|PopUp gap|General|int|0:
12-
Body.PopUp=5
12+
Body.PopUp=10
1313

1414
; Background
1515
; vargen|Background colour|General|rgb
@@ -39,5 +39,5 @@ Font.Icon=MaterialIcon
3939
Font.IconS=(#Body.Element#*0.75)
4040

4141
; Do not adjust
42-
Body.X=210
43-
Body.Y=20
42+
Body.X=2280
43+
Body.Y=10

Modular Taskbar.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Skin.Height=#Body.Height#
2222
[Main.ActionTimer]
2323
Measure=Plugin
2424
Plugin=ActionTimer
25-
ActionList1=Wait 500 | DeactivatePopup
26-
DeactivatePopup=[!DeactivateConfig "#RootConfig#\Popup"]
25+
ActionList1=Wait 500 | DeactivatePopUp
26+
DeactivatePopUp=[!DeactivateConfig "#RootConfig#\PopUp"]
2727
DynamicVariables=1
2828
IgnoreWarnings=1
2929

PopUp/NowPlaying_PopUp.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Skin.Width=(#Body.Element#*14)
1818
Skin.Height=(#Body.Element#*10)
1919

2020
; Do not change
21-
Parent.Position=750
21+
Parent.Position=600
2222
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2323
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2424

PopUp/Power_PopUp.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Skin.Width=(#Body.Element#*3+#Body.Padding#*4)
1818
Skin.Height=(#Body.Element#*1+#Body.Padding#*2)
1919

2020
; Do not change
21-
Parent.Position=61
21+
Parent.Position=23.5
2222
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2323
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2424

PopUp/Shortcut_PopUp.ini

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Skin.Width=(#Body.Element#*6)
2121
Skin.Height=(#Module.Shortcut.ItemSize#*(#Module.Shortcut.GennedItemCount#+1))
2222

2323
; Do not change
24-
Parent.Position=23
24+
Parent.Position=1015.5
2525
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2626
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2727

28-
Module.Shortcut.GennedItemCount=4
28+
Module.Shortcut.GennedItemCount=0
2929
Module.Shortcut.ItemSize=(round(#Body.Element#*0.8))
3030
CurrentItem=
3131

@@ -58,6 +58,11 @@ SolidColor=0,0,0,1
5858
AntiAlias=1
5959
DynamicVariables=1
6060

61+
; [Module.Shortcut.ItemCountCheck]
62+
; Measure=Calc
63+
; ifCondition=#Module.Shortcut.GennedItemCount#=0
64+
; ifTrueAction=[!DeactivateConfig]
65+
6166
[Module.Shortcut.Background]
6267
Meter=Shape
6368
Shape=Rectangle 0,0,#Skin.Width#,#Skin.Height#,#Body.Corner# | StrokeWidth 0 | Fill Color #Colour.1#,#colour.1.Alpha#

PopUp/Taskbar_PopUp.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Skin.Width=(#Body.Element#*10)
1818
Skin.Height=(#Module.Taskbar.ItemSize#*#Module.Taskbar.GennedItemCount#+2*#Body.Padding#)
1919

2020
; Do not change
21-
Parent.Position=120
21+
Parent.Position=172
2222
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2323
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2424

PopUp/Time_PopUp.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Skin.Width=(7*#Module.Time.ItemSize#+2*#Body.Padding#)
2323
Skin.Height=(7*#Module.Time.ItemSize#+3*#Body.Padding#)
2424

2525
; Do not change
26-
Parent.Position=1462
26+
Parent.Position=1162
2727
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2828
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2929

PopUp/Volume_PopUp.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Skin.Width=(#Body.Element#*10)
1818
Skin.Height=(#Body.Element#*2+#Body.Padding#*2)
1919

2020
; Do not change
21-
Parent.Position=1326
21+
Parent.Position=1094
2222
Skin.X=(clamp((#Body.X#+#Parent.Position#-#Skin.Width#/2),(#Body.X#),(#Body.X#+#Body.Width#-#Skin.Width#)))
2323
Skin.Y=(((#Body.Y#+#Body.Height#/2)<(#ScreenAreaHeight#/2)?(#Body.Y#+#Body.Height#+#Body.PopUp#):(#Body.Y#-#body.PopUp#-#Skin.Height#)))
2424
Format=(((#Format#=0?1:0)=0?1:0)=0?1:0)

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,30 @@ It is recommended (but not required) that you remove your stock taskbar via 3par
44

55
# Installing
66
The latest release of Modular Taskbar can be found [here](https://github.com/C0rvust/Modular-Taskbar/releases). Simply run the `.rmskin` file once downloaded.
7-
Modular Taskbar requires the Rainmeter application (minimum version `4.5.14.3663`), the installation instructions can be found on their homepage [here](https://www.rainmeter.net/).
7+
Modular Taskbar requires the Rainmeter application (minimum version `4.5.17.3700`), the installation instructions can be found on their homepage [here](https://www.rainmeter.net/).
88

99
# Preview
10-
<img src=".Assets/Overview3.png" width="100%"/>
11-
<img src=".Assets/Overview4.png" width="100%"/>
12-
<img src=".Assets/Overview5.png" width="100%"/>
10+
<img src="https://user-images.githubusercontent.com/40166216/237038870-dd219d84-b1fa-476f-92cc-6a92bbef91eb.png" width="100%"/>
11+
<img src="https://user-images.githubusercontent.com/40166216/237038878-20f5c516-32e9-4b4b-8acb-b97dc31537fb.png" width="100%"/>
12+
<img src="https://user-images.githubusercontent.com/40166216/237038884-c160225f-c569-4fb4-b0a1-cbd5353c117a.png" width="100%"/>
1313

1414
# Requirements
1515

1616
- [MagickMeter by khanhas](https://github.com/khanhas/MagickMeter) - Follow these [instructions](https://github.com/khanhas/MagickMeter#how-to-install) to install the parent application ImageMagick.
1717

18-
- [WebNowPlaying by tjhrulz](https://github.com/tjhrulz/WebNowPlaying) - Follow these [instructions](https://github.com/tjhrulz/WebNowPlaying#extension-links) to install the browser extension.
18+
- [WebNowPlaying-Redux by Keifufu & tjhrulz](https://github.com/keifufu/WebNowPlaying-Redux-Rainmeter) - Install the wnp browser extension from [here](https://github.com/keifufu/WebNowPlaying-Redux#installing).
1919

20-
- [Spicetify-CLI by khanhas](https://github.com/khanhas/spicetify-cli) - Follow these [instructions](https://github.com/khanhas/spicetify-cli/wiki/Guide-for-Rainmeter-user) to install Spicetify-CLI. _If you don't use Spotify, no further actions are required._
20+
- [Spicetify-CLI by khanhas](https://github.com/khanhas/spicetify-cli) - Open a powershell window and run the following code line by line.
21+
- _If you don't use Spotify, no further actions are required._
2122

22-
- [PowershellRM by Khanhas](https://github.com/khanhas/PowershellRM#requirements) - Follow these [instructions](https://github.com/khanhas/PowershellRM#requirements) to update your powershell version (Version `3.x` or above).
23-
_As Win 10 is shipped with Powershell_ `5.1`_, no further actions are required by Win 10 users; update is required only for Win 7 users._
23+
```ps1
24+
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.ps1" | Invoke-Expression
25+
spicetify
26+
spicetify config extensions webnowplaying.js
27+
```
28+
29+
- [PowershellRM by Khanhas](https://github.com/khanhas/PowershellRM#requirements) - Update your Powershell to (Version `3.x` or above) [here](https://www.microsoft.com/en-us/download/details.aspx?id=54616).
30+
- _As Win 10 is shipped with Powershell_ `5.1`_, no further actions are required by Win 10 users; update is required only for Win 7 users._
2431

2532
# Features
2633
## Modules

Settings/Settings.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Update=#UpdateInterval#
55
DefaultUpdateDivider=-1
66
AccurateText=1
77
OnCloseAction=[!WriteKeyValue Variables CurrentPage "Modules"]
8+
RightMouseUpAction=[]
89
DefaultAlwaysOnTop=-2
910

1011
[Variables]

0 commit comments

Comments
 (0)