Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NSTechBytes authored Oct 29, 2024
1 parent 0bb95ab commit 7bcbc6e
Show file tree
Hide file tree
Showing 27 changed files with 955 additions and 0 deletions.
Empty file added @Resources/AllApps/All Apps.nek
Empty file.
Empty file added @Resources/AllApps/apps.json
Empty file.
110 changes: 110 additions & 0 deletions @Resources/Config/AllShortcuts.nek
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[Variables]
HoverW:B=50
HoverH:B=50
HoverIndex:B=Shortcut.XYZ
ImageWidth=40
ImageHeight=40
Scroll=1
ScrollClickedPos=0
All_Apps.W=280
All_Apps.H=520
;============================================================================================================================;
; Function ;
;============================================================================================================================;

[AnchorChecker]
Measure=Calc
Formula=(Clamp([All_Apps_Container:H]-[Anchor:Y], -5000, 0))
IfCondition=AnchorChecker=0
IfTrueAction=[!DisableMouseAction All_Apps_Container "MouseScrollUpAction|MouseScrollDownAction"][!UpdateMeterGroup Background][!Redraw]
IfFalseAction=[!ShowMeter ScrollBar][!UpdateMeterGroup Background][!Redraw]
IfConditionMode=1
Group=AnchorChecker
DynamicVariables=1

[MouseScrollBar]
Measure=Plugin
Plugin=Mouse
MouseMoveAction=[!SetVariable Scroll "(Clamp(($MouseY$-#ScrollClickedPos#-40*#Scale#)/(#Skin.H#/2-40*#Scale#)*[AnchorChecker],[AnchorChecker],0))"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!SetOption ScrollBar MeterStyle ScrollBar:Idle][!SetOption ScrollBar Fill "Stroke Color #FontColor#,100"][!CommandMeasure MouseScrollBar "Stop"][!DisableMeasure MouseScrollBar][!UpdateMeter ScrollBar][!Redraw]
RequireDragging=1
RelativeToSkin=1
DynamicVariables=1
Disabled=1

;============================================================================================================================;
; MeterStyles ;
;============================================================================================================================;

[All_Apps_BackGround]
X=(10*#Scale#)
Y=(20*#Scale#)r
Shape=Rectangle 0,0,(#All_Apps.W#*#Scale#-40*#Scale#),(40*#Scale#),8 | StrokeWidth 0 | Extend This
This=FillColor #BackGround_Color#,0
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# This "FillColor #BackGround_Color#,30"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# This "FillColor #BackGround_Color#,0"][!UpdateMeter *][!Redraw]
Container=All_Apps_Container

[All_Apps_Icons]
W=(32*#Scale#)
H=(32*#Scale#)
X=(5*#Scale#)r
Y=(4*#Scale#)r
DynamicVariables=1
Container=All_Apps_Container

[All_Apps_Text]
X=(45*#Scale#)r
Y=(17*#Scale#)r
W=(190*#Scale#)
FontFace=#FontFace#
FontColor=#FontColor#
FontWeight=400
FontSize=(10*#Scale#)
StringAlign=LeftCenter
ClipString=1
AntiAlias=1
Container=All_Apps_Container

;============================================================================================================================;
; Content ;
;============================================================================================================================;

[All_Apps_Container]
Meter=Shape
X=(70*#Scale#)
Y=(100*#Scale#)
Shape=Rectangle 0,0,(#All_Apps.W#*#Scale#),(#All_Apps.H#*#Scale#),8 | StrokeWidth 0
DynamicVariables=1
Group=Background | Scrollbar
MouseCursorAction=0
MouseScrollDownAction=[!SetVariable Scroll "(Clamp(#Scroll#-50,[AnchorChecker],0))"][!UpdateMeter *][!Redraw]
MouseScrollUpAction=[!SetVariable Scroll "(Clamp(#Scroll#+50,[AnchorChecker],0))"][!UpdateMeter *][!Redraw]


[ScrollBar:Scrolling]
Fill=Stroke Color #FontColor#
[ScrollBar:Idle]
LeftMouseDownAction=[!SetVariable ScrollClickedPos "$MouseY$"][!SetOption ScrollBar MeterStyle ScrollBar:Scrolling][!EnableMeasure MouseScrollBar][!UpdateMeasure MouseScrollBar][!CommandMeasure MouseScrollBar "Start"]
MouseOverAction=[!SetOption #CURRENTSECTION# Fill "Stroke Color #FontColor#,100"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# Fill "Stroke Color #FontColor#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
[ScrollBar]
Meter=Shape
X=([All_Apps_Container:XW]-5*#Scale#)
Y=(80*#Scale#+(#Scroll#/([AnchorChecker]+1)*([All_Apps_Container:H]-([All_Apps_Container:H]/([All_Apps_Container:H]-[AnchorChecker])*[All_Apps_Container:H]))))
Shape=Line 0,0,0,([All_Apps_Container:H]/([All_Apps_Container:H]-[AnchorChecker])*[All_Apps_Container:H]) | StrokeWidth (4*#Scale#) | StrokeStartCap Round | StrokeEndCap Round | Extend Fill
Fill=Stroke Color #FontColor#
DynamicVariables=1
Group=Background | Scrollbar
Hidden=1
MeterStyle=ScrolLBar:Idle


@includeall_apps=#@#AllApps\All Apps.nek

[Anchor]
Meter=String
Container=All_Apps_Container
x=r
Y=R
92 changes: 92 additions & 0 deletions @Resources/Config/Header.nek
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
;============================================================================================================================;
; Function ;
;============================================================================================================================;

[USER_SID]
Measure=SysInfo
SysInfoType=USER_SID
IfMatch=^(S\-1\-5\-21\-[\S]+)$
IfMatchAction=[!EnableMeasure Profile_Picture_Location]
RegExpSubstitute=1
Substitute="^0$":""
DynamicVariables=1
[Profile_Picture_Location]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users\[USER_SID]
RegValue=Image1080
DynamicVariables=1
Disabled=1
IfMatch=(S\-1\-5\-21\-[\S]+)
IfMatchAction=[!SetOption Profile_Picture MeasureName "#CURRENTSECTION#"]
IfNotMatchAction=[!SetOption Profile_Picture MeasureName ""]
DynamicVariables=1

;============================================================================================================================;
; MeterStyles ;
;============================================================================================================================;
[Header_Text]
FontColor=#FontColor#
FontFace=#FontFace#
FontWeight=500
AntiAlias=1
FontSize=(18*#Scale#)
X=(80*#Scale#)
Y=(70*#Scale#)
DynamicVariables=1

;============================================================================================================================;
; Content ;
;============================================================================================================================;

[All_Apps_String]
Meter=String
Text=All Apps
MeterStyle=Header_Text
[Shortcuts_Apps_String]
Meter=String
Text=Pinned Apps
X=(365*#Scale#)
MeterStyle=Header_Text

[Profile_Picture]
Meter=Image
ImageName=
MaskImageName=#@#Images\Circle_Mask.png
W=(40*#Scale#)
H=(40*#Scale#)
X=(15*#Scale#)
Y=(14*#Scale#)
DynamicVariables=1
[User_Text]
Meter=String
Text=%USERNAME%
X=(10*#Scale#)R
Y=(25*#Scale#)r
FontSize=(15*#Scale#)
FontColor=#FontColor#
FontWeight=900
DynamicVariables=1
FontFace=#FontFace#
StringAlign=LeftCenter
AntiAlias=1

[Weather_Image]
Meter=Image
ImageName=#@#Images\Weather Icons\Unknown condition.png
W=(50*#Scale#)
H=(50*#Scale#)
X=(700*#Scale#)
Y=(10*#Scale#)
[Temp_String]
Meter=String
Text=
X=(-10*#Scale#)r
Y=(25*#Scale#)r
FontSize=(18*#Scale#)
Antialias=1
FontColor=#FontColor#
DynamicVariables=1
FontFace=SF Pro Rounded
FontWeight=900
StringAlign=RightCenter
184 changes: 184 additions & 0 deletions @Resources/Config/Network.nek
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
[Variables]
@includeBT=#@#bluetooth\bluetoothVariables.inc
BTStatus=0
BT_OnBluetoothCheck_On=[!Setvariable BTStatus 1][!ShowMeter BT_Toggle_Icon_on][!HideMeter BT_Toggle_Icon_off][!UpdateMeter BTStatus][!UpdateMeter *][!Redraw]
BT_OnBluetoothCheck_Off=[!Setvariable BTStatus 0][!ShowMeter BT_Toggle_Icon_off][!HideMeter BT_Toggle_Icon_on][!UpdateMeter BTStatus][!UpdateMeter *][!Redraw]
BT_AfterBluetoothToggle=#BT_CheckBluetooth#[!Redraw]
@includeBTM=#@#bluetooth\bluetooth.inc

;============================================================================================================================;
; Function ;
;============================================================================================================================;

[InternetStatus]
Measure=PLUGIN
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
RegExpSubstitute=1
Substitute="^1$":"Connected","^-1$":"Not connected"
IfCondition=InternetStatus = -1
IfTrueAction=[!ShowMeter Toggle_Icon_off][!UpdateMeter *][!Redraw]
IfFalseAction=[!ShowMeter Toggle_Icon_on][!UpdateMeter *][!Redraw]
OnChangeAction=[!UpdateMeter Toggle_Icon][!Redraw]
UpdateDivider=1

[InternetOff]
Measure=Plugin
Plugin=RunCommand
Parameter=ipconfig /release
State=Hide
[InternetOn]
Measure=Plugin
Plugin=RunCommand
Parameter=ipconfig /renew
State=Hide



;============================================================================================================================;
; MeterStyles ;
;============================================================================================================================;



[Network_String]
Meter=String
Text=Network and Connection
MeterStyle=Icon_SideBox
X=(480*#Scale#)
Y=(550*#Scale#)
FontFace=#FontFace#
FontColor=#FontColor#
FontWeight=900
FontSize=(12*#Scale#)
AntiAlias=1


[Wifi_Icon]
Meter=String
Text=[\xf1eb]
MeterStyle=Icon_SideBox
X=(410*#Scale#)
Y=(40*#Scale#)r
FontFace=Font Awesome 6 Pro
FontColor=#FontColor#
FontWeight=900
FontSize=(18*#Scale#)
AntiAlias=1

[Wifi_Text]
Meter=String
Text=Internet
X=(35*#Scale#)r
Y=(-8*#Scale#)r
FontSize=(12*#Scale#)
FontColor=#FontColor#
FontWeight=500
DynamicVariables=1
FontFace=#FontFace#
AntiAlias=1

[Toggle_Icon_on]
Meter=String
Text=[\xf205]
X=(240*#Scale#)r
Y=(-2*#Scale#)r
FontFace=Font Awesome 6 Pro
FontColor=#AccentColor#
FontWeight=900
FontSize=(22*#Scale#)
AntiAlias=1
LeftMouseUpAction=[!HideMeter #CurrentSection#][!CommandMeasure Internetoff "Run"][!ShowMeter Toggle_Icon_off][!UpdateMeter *][!Redraw]
Hidden=1

[Toggle_Icon_off]
Meter=String
Text=[\xf204]
X=r
Y=r
FontFace=Font Awesome 6 Pro
FontColor=#FontColor#
FontWeight=900
FontSize=(22*#Scale#)
AntiAlias=1
LeftMouseUpAction=[!HideMeter #CurrentSection#][!CommandMeasure Interneton "Run"][!ShowMeter Toggle_Icon_on][!UpdateMeter *][!Redraw]
Hidden=1


[Bluetooth_Icon]
Meter=String
Text=[\xf293]
MeterStyle=Icon_SideBox
X=(410*#Scale#)
Y=(70*#Scale#)r
FontFace=Font Awesome 6 Pro
FontColor=#FontColor#
FontWeight=900
FontSize=(18*#Scale#)
AntiAlias=1

[Bluetooth_Text]
Meter=String
Text=Bluetooth
X=(35*#Scale#)r
Y=(-8*#Scale#)r
FontSize=(12*#Scale#)
FontColor=#FontColor#
FontWeight=500
DynamicVariables=1
FontFace=#FontFace#
AntiAlias=1


[BT_Toggle_Icon_on]
Meter=String
Text=[\xf205]
X=(240*#Scale#)r
Y=(-2*#Scale#)r
FontFace=Font Awesome 6 Pro
FontColor=#AccentColor#
FontWeight=900
FontSize=(22*#Scale#)
AntiAlias=1
LeftMouseUpAction=#BT_ToggleBluetooth#


[BT_Toggle_Icon_off]
Meter=String
Text=[\xf204]
X=r
Y=r
FontFace=Font Awesome 6 Pro
FontColor=#FontColor#
FontWeight=900
FontSize=(22*#Scale#)
AntiAlias=1
LeftMouseUpAction=#BT_ToggleBluetooth#
Hidden=(1-#BTStatus#)



























Loading

0 comments on commit 7bcbc6e

Please sign in to comment.