-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstartmenu.ps1
97 lines (88 loc) · 8.24 KB
/
startmenu.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<#
▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄ ▄ ▄▄ ▄ ▄▄▄▄ ▄▄ ▄ ▄▄ ▄▄▄▄ ▄▄▄▄ ▄▄▄ ▀
█ ██ █ ██ █ ██ █ ██ █ ██ ██ █ ██ █ ██▀ █
■ ██▄▀ ██▄█ ██▄█ ██ █ ▀▀ ██ ██▄█ ██▄▀ ▀██▄ ■
█ ██ █ ▄▄ █ ██ █ ██ █ ██▄▄ ██ █ ██ █ ▄██ █
▄ ▀▀ ▀ ▀▀▀▀ ▀▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀ ▀ ▀▀▀▀ ▀▀▀ █
▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀
Win11Tweaks (KYAU Labs Edition)
Copyright (C) 2023 KYAU Labs (https://kyaulabs.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#>
#. "${PSScriptRoot}\_funcs.ps1"
Show-Section -Section "StartMenu" -Desc "Creating Folders"
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "MMTaskbarEnabled" -Type Dword -Value "1"
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAl" -Type Dword -Value "0"
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarMn" -Type Dword -Value "0"
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSi" -Type Dword -Value "1"
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\AdobeCC" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Apps" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\BBS" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Creative" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Development" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Games" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Hardware" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Media" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\MSOffice" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\Utilities" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\SSH-Local" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\SSH-Remote" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\RDP-Local" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\RDP-Remote" | Out-Null
New-Item -Type Directory -Path "${Env:ProgramData}\Windows Start\RTSP-Local" | Out-Null
Show-Section -Section "StartMenu" -Desc "Creating Shortcuts"
# Add-Shortcut "SubMenu\Application OR Startup" "target.exe" "icon-name" "arguments" "working-directory"
Add-Shortcut "Apps\Brave" "${Env:ProgramFiles}\BraveSoftware\Brave-Browser\Application\brave.exe" ""
Add-Shortcut "Apps\Everything" "${Env:ProgramFiles}\Everything\Everything.exe" "win11tweak-apps.dll,537"
Add-Shortcut "Apps\SumatraPDF" "${Env:ProgramFiles}\SumatraPDF\SumatraPDF.exe" "win11tweak-apps.dll,449"
Add-Shortcut "Apps\KeePassXC" "${Env:ProgramFiles}\KeePassXC\KeePassXC.exe" "win11tweak-apps.dll,621"
Add-Shortcut "Apps\Yubico Authenticator" "${Env:ProgramFiles}\Yubico\Yubico Authenticator\authenticator.exe" "win11tweak-apps.dll,1363"
Add-Shortcut "Apps\Yubico Manager" "${Env:ProgramFiles}\Yubico\YubiKey Manager\ykman-gui.exe" "win11tweak-apps.dll,1361"
Add-Shortcut "Apps\Yubico PIV Manager" "${Env:ProgramFiles(x86)}\Yubico\YubiKey PIV Manager\pivman.exe" "win11tweak-apps.dll,1362"
Add-Shortcut "Development\HeidiSQL" "${Env:ProgramFiles}\HeidiSQL\heidisql.exe" "win11tweak-apps.dll,1113"
Add-Shortcut "Development\KDiff3" "${Env:ProgramFiles}\KDiff3\kdiff3.exe" "win11tweak-apps.dll,619"
Add-Shortcut "Development\MarkText" "${Env:LocalAppData}\Programs\MarkText\MarkText.exe" ""
Add-Shortcut "Development\Resource Hacker" "${Env:ProgramFiles(x86)}\Resource Hacker\ResourceHacker.exe" "win11tweak-apps.dll,1175"
Add-Shortcut "Development\Sublime Text" "${Env:ProgramFiles}\Sublime Text\sublime_text.exe" ""
Add-Shortcut "Hardware\Core Temp" "${Env:ProgramData}\chocolatey\lib\coretemp\tools\Core Temp.exe" "win11tweak-hardware.dll,138"
Add-Shortcut "Hardware\CPU-Z" "${Env:ProgramFiles}\CPUID\CPU-Z\cpuz.exe" ""
Add-Shortcut "Hardware\EarTrumpet" "${Env:ProgramData}\chocolatey\lib\eartrumpet\tools\EarTrumpet\EarTrumpet.exe" ""
Add-Shortcut "Hardware\MSI Afterburner" "${Env:ProgramFiles(x86)}\MSI Afterburner\MSIAfterburner.exe" ""
Add-Shortcut "Hardware\ScrCpy" "${Env:ProgramData}\chocolatey\lib\scrcpy\tools\scrcpy.exe" "win11tweak-hardware.dll,3"
Add-Shortcut "Hardware\Voicemeeter Potato" "${Env:ProgramFiles(x86)}\VB\Voicemeeter\voicemeeter8x64.exe" ""
Add-Shortcut "Media\ImageGlass" "${Env:ProgramFiles}\ImageGlass\ImageGlass.exe" ""
Add-Shortcut "Media\MPV" "${Env:ProgramData}\chocolatey\lib\mpv.install\tools\mpv.exe" "win11tweak-apps.dll,788"
Add-Shortcut "RDP-Local\archlinux.machine" "${Env:ProgramFiles}\VirtViewer v11.0-256\bin\remote-viewer.exe" "win11tweak-apps.dll,1005" "spice://archlinux.machine:5900"
Add-Shortcut "RDP-Local\debian.machine" "${Env:ProgramFiles}\VirtViewer v11.0-256\bin\remote-viewer.exe" "win11tweak-apps.dll,1007" "spice://debian.machine:5900"
Add-Shortcut "RDP-Local\windows.machine" "${Env:ProgramFiles}\VirtViewer v11.0-256\bin\remote-viewer.exe" "win11tweak-apps.dll,1015" "spice://windows.machine:5900"
Add-Shortcut "SSH-Local\test.machine" "${Env:ProgramFiles}\Bin\ssh.bat" "win11tweak-apps.dll,1119" "test.machine 0"
Add-Shortcut "SSH-Remote\test.machine.com" "${Env:ProgramFiles}\Bin\ssh.bat" "win11tweak-apps.dll,1120" "test.machine.com 1"
Add-Shortcut "Utilities\7-Zip File Manager" "${Env:ProgramFiles}\7-zip\7zFM.exe" "win11tweak-apps.dll,371"
Add-Shortcut "Utilities\Autoruns" "${Env:ProgramData}\chocolatey\lib\AutoRuns\tools\Autoruns.exe" ""
Add-Shortcut "Utilities\CCEnhancer" "${Env:ProgramFiles(x86)}\CCEnhancer\CCEnhancer.exe" ""
Add-Shortcut "Utilities\CCleaner" "${Env:ProgramFiles}\CCleaner\CCleaner64.exe" ""
Add-Shortcut "Utilities\Chocolatey GUI" "${Env:ProgramFiles(x86)}\Chocolatey GUI\ChocolateyGui.exe" ""
Add-Shortcut "Utilities\MSEdgeRedirect" "${Env:ProgramFiles}\MSEdgeRedirect\MSEdgeRedirect.exe" "" "/settings"
Add-Shortcut "Utilities\NFOPad" "${Env:ProgramFiles(x86)}\NFOPad\NFOPad.exe" ""
Add-Shortcut "Utilities\Process Explorer" "${Env:ProgramData}\chocolatey\lib\sysinternals\tools\procexp64.exe" ""
Add-Shortcut "Utilities\ShareX" "${Env:ProgramFiles}\ShareX\ShareX.exe" ""
Add-Shortcut "Utilities\SimpleWall" "${Env:ProgramFiles}\simplewall\simplewall.exe" ""
Add-Shortcut "Utilities\WinDirStat" "${Env:ProgramFiles(x86)}\WinDirStat\windirstat.exe" "win11tweak-hardware.dll,69"
# Remove Startup / Add Postfix
Remove-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "CCleaner Smart Cleaning"
Remove-Reg -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "KeePassXC"
$edgerun = Get-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | Select-Object -ExpandProperty Property | Where-Object { $_ -like "MicrosoftEdgeAutoLaunch*" }
Remove-Reg -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name $edgerun
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "PostFix" -Type String -Value "`"${PSScriptRoot}\postfix.cmd`""
# Shrink Search Button
Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type Dword -Value "3"