diff --git a/winutil.ps1 b/winutil.ps1 index 6c783f31..187c2bea 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -535,6 +535,15 @@ Function Get-WinUtilToggleStatus { return $false } } + if($ToggleSwitch -eq "WPFToggleTaskbarSearch"){ + $SearchButton = (Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search").SearchboxTaskbarMode + if($SearchButton -eq 0){ + return $false + } + else{ + return $true + } + } if ($ToggleSwitch -eq "WPFToggleStickyKeys") { $StickyKeys = (Get-ItemProperty -path 'HKCU:\Control Panel\Accessibility\StickyKeys').Flags if($StickyKeys -eq 58){ @@ -544,6 +553,15 @@ Function Get-WinUtilToggleStatus { return $true } } + if ($ToggleSwitch -eq "WPFToggleTaskView") { + $TaskView = (Get-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced').ShowTaskViewButton + if($TaskView -eq 0){ + return $false + } + else{ + return $true + } + } if ($ToggleSwitch -eq "WPFToggleTaskbarWidgets") { $TaskbarWidgets = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced").TaskBarDa if($TaskbarWidgets -eq 0) { @@ -2138,6 +2156,40 @@ Function Invoke-WinUtilStickyKeys { Write-Warning $psitem.Exception.StackTrace } } +function Invoke-WinUtilTaskbarSearch { + <# + + .SYNOPSIS + Enable/Disable Taskbar Widgets + + .PARAMETER Enabled + Indicates whether to enable or disable Taskbar Widgets + + #> + Param($Enabled) + Try{ + if ($Enabled -eq $false){ + Write-Host "Enabling Search Button" + $value = 1 + } + else { + Write-Host "Disabling Search Button" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search\" + Set-ItemProperty -Path $Path -Name SearchboxTaskbarMode -Value $value + } + Catch [System.Security.SecurityException] { + Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception" + } + Catch [System.Management.Automation.ItemNotFoundException] { + Write-Warning $psitem.Exception.ErrorRecord + } + Catch{ + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} function Invoke-WinUtilTaskbarWidgets { <# @@ -2172,6 +2224,40 @@ function Invoke-WinUtilTaskbarWidgets { Write-Warning $psitem.Exception.StackTrace } } +function Invoke-WinUtilTaskView { + <# + + .SYNOPSIS + Enable/Disable Task View + + .PARAMETER Enabled + Indicates whether to enable or disable Task View + + #> + Param($Enabled) + Try{ + if ($Enabled -eq $false){ + Write-Host "Enabling Task View" + $value = 1 + } + else { + Write-Host "Disabling Task View" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name ShowTaskViewButton -Value $value + } + Catch [System.Security.SecurityException] { + Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception" + } + Catch [System.Management.Automation.ItemNotFoundException] { + Write-Warning $psitem.Exception.ErrorRecord + } + Catch{ + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} function Invoke-WinUtilTweaks { <# @@ -4719,6 +4805,8 @@ function Invoke-WPFToggle { "WPFToggleMouseAcceleration" {Invoke-WinUtilMouseAcceleration $(Get-WinUtilToggleStatus WPFToggleMouseAcceleration)} "WPFToggleStickyKeys" {Invoke-WinUtilStickyKeys $(Get-WinUtilToggleStatus WPFToggleStickyKeys)} "WPFToggleTaskbarWidgets" {Invoke-WinUtilTaskbarWidgets $(Get-WinUtilToggleStatus WPFToggleTaskbarWidgets)} + "WPFToggleTaskbarSearch" {Invoke-WinUtilTaskbarSearch $(Get-WinUtilToggleStatus WPFToggleTaskbarSearch)} + "WPFToggleTaskView" {Invoke-WinUtilTaskView $(Get-WinUtilToggleStatus WPFToggleTaskView)} } } function Invoke-WPFTweakPS7{ @@ -5456,14 +5544,6 @@ $sync.configs.applications = '{ "link": "https://github.com/sharkdp/bat", "winget": "sharkdp.bat" }, - "WPFInstallbitcomet": { - "category": "Utilities", - "choco": "bitcomet", - "content": "BitComet", - "description": "BitComet is a free and open-source BitTorrent client that supports HTTP/FTP downloads and provides download management features.", - "link": "https://www.bitcomet.com/", - "winget": "CometNetwork.BitComet" - }, "WPFInstallbitwarden": { "category": "Utilities", "choco": "bitwarden", @@ -5488,14 +5568,6 @@ $sync.configs.applications = '{ "link": "https://www.blender.org/", "winget": "BlenderFoundation.Blender" }, - "WPFInstallbluestacks": { - "category": "Games", - "choco": "bluestacks", - "content": "Bluestacks", - "description": "Bluestacks is an Android emulator for running mobile apps and games on a PC.", - "link": "https://www.bluestacks.com/", - "winget": "BlueStack.BlueStacks" - }, "WPFInstallbrave": { "category": "Browsers", "choco": "brave", @@ -5520,6 +5592,14 @@ $sync.configs.applications = '{ "link": "https://www.bulkrenameutility.co.uk", "winget": "TGRMNSoftware.BulkRenameUtility" }, + "WPFInstallAdvancedRenamer": { + "category": "Utilities", + "choco": "advanced-renamer", + "content": "Advanced Renamer", + "description": "Advanced Renamer is a program for renaming multiple files and folders at once. By configuring renaming methods the names can be manipulated in various ways.", + "link": "https://www.advancedrenamer.com/", + "winget": "XP9MD3S1KFCPH1" + }, "WPFInstallcalibre": { "category": "Document", "choco": "calibre", @@ -5616,14 +5696,6 @@ $sync.configs.applications = '{ "link": "https://copyq.readthedocs.io/", "winget": "hluk.CopyQ" }, - "WPFInstallditto": { - "category": "Utilities", - "choco": "ditto", - "content": "Ditto (Clipboard Manager)", - "description": "Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.", - "link": "https://github.com/sabrogden/Ditto", - "winget": "Ditto.Ditto" - }, "WPFInstallcpuz": { "category": "Utilities", "choco": "cpu-z", @@ -5712,6 +5784,14 @@ $sync.configs.applications = '{ "link": "https://discord.com/", "winget": "Discord.Discord" }, + "WPFInstallditto": { + "category": "Utilities", + "choco": "ditto", + "content": "Ditto", + "description": "Ditto is an extension to the standard windows clipboard.", + "link": "https://github.com/sabrogden/Ditto", + "winget": "Ditto.Ditto" + }, "WPFInstalldockerdesktop": { "category": "Development", "choco": "docker-desktop", @@ -5864,6 +5944,14 @@ $sync.configs.applications = '{ "link": "https://www.falkon.org/", "winget": "KDE.Falkon" }, + "WPFInstallfastfetch": { + "category": "Utilities", + "choco": "na", + "content": "Fastfetch", + "description": "Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way", + "link": "https://github.com/fastfetch-cli/fastfetch/", + "winget": "fastfetch" + }, "WPFInstallferdium": { "category": "Communications", "choco": "ferdium", @@ -6648,6 +6736,14 @@ $sync.configs.applications = '{ "link": "https://www.mp3tag.de/en/", "winget": "Mp3tag.Mp3tag" }, + "WPFInstalltagscanner": { + "category": "Multimedia Tools", + "choco": "tagscanner", + "content": "TagScanner (Tag Scanner)", + "description": "TagScanner is a powerful tool for organizing and managing your music collection", + "link": "https://www.xdlab.ru/en/", + "winget": "SergeySerkov.TagScanner" + }, "WPFInstallnanazip": { "category": "Utilities", "choco": "nanazip", @@ -7096,6 +7192,14 @@ $sync.configs.applications = '{ "link": "https://www.qbittorrent.org/", "winget": "qBittorrent.qBittorrent" }, + "WPFInstalltransmission": { + "category": "Utilities", + "choco": "transmission", + "content": "Transmission", + "description": "Transmission is a cross-platform BitTorrent client that is open source, easy, powerful, and lean.", + "link": "https://transmissionbt.com/", + "winget": "Transmission.Transmission" + }, "WPFInstalltixati": { "category": "Utilities", "choco": "tixati.portable", @@ -7504,6 +7608,14 @@ $sync.configs.applications = '{ "link": "https://github.com/thonny/thonny", "winget": "AivarAnnamaa.Thonny" }, + "WPFInstallMuEditor": { + "category": "Development", + "choco": "na", + "content": "Code With Mu (Mu Editor)", + "description": "Mu is a Python code editor for beginner programmers", + "link": "https://codewith.mu/", + "winget": "Mu.Mu" + }, "WPFInstallthorium": { "category": "Browsers", "choco": "na", @@ -7736,14 +7848,6 @@ $sync.configs.applications = '{ "link": "https://wezfurlong.org/wezterm/index.html", "winget": "wez.wezterm" }, - "WPFInstallwindirstat": { - "category": "Utilities", - "choco": "windirstat", - "content": "WinDirStat", - "description": "WinDirStat is a disk usage statistics viewer and cleanup tool for Windows.", - "link": "https://windirstat.net/", - "winget": "WinDirStat.WinDirStat" - }, "WPFInstallwindowspchealth": { "category": "Utilities", "choco": "na", @@ -8643,7 +8747,7 @@ $sync.configs.tweaks = '{ "powercfg.exe /hibernate on" ] }, - "WPFToggleTweaksLaptopHybernation": { + "WPFTweaksLaptopHibernation": { "Content": "Set Hibernation as default (good for laptops)", "Description": "Most modern laptops have connected stadby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399", "category": "Essential Tweaks", @@ -11553,28 +11657,6 @@ $sync.configs.tweaks = '{ } ] }, - "WPFTweaksEnableipsix": { - "Content": "Enable IPv6", - "Description": "Enables IPv6.", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "Order": "a023_", - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", - "Name": "DisabledComponents", - "Value": "0", - "OriginalValue": "0", - "Type": "DWord" - } - ], - "InvokeScript": [ - "Enable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6" - ], - "UndoScript": [ - "Disable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6" - ] - }, "WPFToggleDarkMode": { "Content": "Dark Theme", "Description": "Enable/Disable Dark Mode.", @@ -11652,7 +11734,15 @@ $sync.configs.tweaks = '{ "Description": "If Enabled then Sticky Keys is activated - Sticky keys is an accessibility feature of some graphical user interfaces which assists users who have physical disabilities or help users reduce repetitive strain injury.", "category": "Customize Preferences", "panel": "2", - "Order": "a069_", + "Order": "a070_", + "Type": "Toggle" + }, + "WPFToggleTaskbarSearch": { + "Content": "Taskbar Search", + "Description": "If Enabled Search Button will be on the taskbar.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a068_", "Type": "Toggle" }, "WPFOOSUbutton": { @@ -11667,7 +11757,7 @@ $sync.configs.tweaks = '{ "Description": "If Enabled then Widgets Icon in Taskbar will be shown.", "category": "Customize Preferences", "panel": "2", - "Order": "a068_", + "Order": "a069_", "Type": "Toggle" }, "WPFchangedns": { @@ -11712,6 +11802,14 @@ $sync.configs.tweaks = '{ "panel": "2", "Order": "a082_", "Type": "300" + }, + "WPFToggleTaskView": { + "Content": "Task View", + "Description": "If Enabled then Task View Icon in Taskbar will be shown.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a069_", + "Type": "Toggle" } }' | convertfrom-json $inputXML = ' - - - + + + @@ -12802,9 +12903,6 @@ $inputXML = ' - - - @@ -13076,6 +13174,9 @@ $inputXML = ' + + + @@ -13103,15 +13204,15 @@ $inputXML = ' - - - + + + @@ -13161,6 +13262,9 @@ $inputXML = ' + + + @@ -13182,9 +13286,6 @@ $inputXML = ' - - - @@ -13233,7 +13334,7 @@ $inputXML = ' - + @@ -13263,6 +13364,9 @@ $inputXML = ' + + + @@ -13322,17 +13426,17 @@ $inputXML = ' + + + + + - - - - - @@ -13484,6 +13588,9 @@ $inputXML = ' + + + @@ -13505,9 +13612,6 @@ $inputXML = ' - - - @@ -13590,13 +13694,12 @@ $inputXML = ' - +