diff --git a/winutil.ps1 b/winutil.ps1
index bd19e205..7e532a86 100644
--- a/winutil.ps1
+++ b/winutil.ps1
@@ -715,6 +715,17 @@ Function Get-WinUtilToggleStatus {
return $true
}
}
+
+ if ($ToggleSwitch -eq "WPFToggleHiddenFiles") {
+ $HiddenFiles = (Get-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced').Hidden
+ if($HiddenFiles -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) {
@@ -2029,6 +2040,40 @@ function Invoke-WinUtilGPU {
}
return $true
}
+function Invoke-WinUtilHiddenFiles {
+ <#
+
+ .SYNOPSIS
+ Enable/Disable Hidden Files
+
+ .PARAMETER Enabled
+ Indicates whether to enable or disable Hidden Files
+
+ #>
+ Param($Enabled)
+ Try{
+ if ($Enabled -eq $false){
+ Write-Host "Enabling Hidden Files"
+ $value = 1
+ }
+ else {
+ Write-Host "Disabling Hidden Files"
+ $value = 0
+ }
+ $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
+ Set-ItemProperty -Path $Path -Name Hidden -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-WinUtilMouseAcceleration {
<#
@@ -5041,6 +5086,7 @@ function Invoke-WPFToggle {
"WPFToggleTaskbarWidgets" {Invoke-WinUtilTaskbarWidgets $(Get-WinUtilToggleStatus WPFToggleTaskbarWidgets)}
"WPFToggleTaskbarSearch" {Invoke-WinUtilTaskbarSearch $(Get-WinUtilToggleStatus WPFToggleTaskbarSearch)}
"WPFToggleTaskView" {Invoke-WinUtilTaskView $(Get-WinUtilToggleStatus WPFToggleTaskView)}
+ "WPFToggleHiddenFiles" {Invoke-WinUtilHiddenFiles $(Get-WinUtilToggleStatus WPFToggleHiddenFiles)}
}
}
function Invoke-WPFTweakPS7{
@@ -8488,6 +8534,14 @@ $sync.configs.applications = '{
"description": "Shotcut is a free, open source, cross-platform video editor.",
"link": "https://shotcut.org/",
"winget": "Meltytech.Shotcut"
+ },
+ "WPFInstallFork": {
+ "category": "Development",
+ "choco": "git-fork",
+ "content": "Fork",
+ "description": "Fork - a fast and friendly git client.",
+ "link": "https://git-fork.com/",
+ "winget": "Fork.Fork"
}
}' | convertfrom-json
$sync.configs.dns = '{
@@ -12091,12 +12145,20 @@ $sync.configs.tweaks = '{
"Order": "a108_",
"Type": "Toggle"
},
+ "WPFToggleHiddenFiles": {
+ "Content": "Show Hidden Files",
+ "Description": "If Enabled then Hidden Files will be shown.",
+ "category": "Customize Preferences",
+ "panel": "2",
+ "Order": "a200_",
+ "Type": "Toggle"
+ },
"WPFToggleShowExt": {
"Content": "Show File Extensions",
"Description": "If enabled then File extensions (e.g., .txt, .jpg) are visible.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a200_",
+ "Order": "a201_",
"Type": "Toggle"
},
"WPFToggleTaskbarSearch": {
@@ -12104,7 +12166,7 @@ $sync.configs.tweaks = '{
"Description": "If Enabled Search Button will be on the taskbar.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a201_",
+ "Order": "a202_",
"Type": "Toggle"
},
"WPFToggleTaskView": {
@@ -12112,7 +12174,7 @@ $sync.configs.tweaks = '{
"Description": "If Enabled then Task View Button in Taskbar will be shown.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a202_",
+ "Order": "a203_",
"Type": "Toggle"
},
"WPFToggleTaskbarWidgets": {
@@ -12120,7 +12182,7 @@ $sync.configs.tweaks = '{
"Description": "If Enabled then Widgets Button in Taskbar will be shown.",
"category": "Customize Preferences",
"panel": "2",
- "Order": "a203_",
+ "Order": "a204_",
"Type": "Toggle"
},
"WPFOOSUbutton": {
@@ -13112,6 +13174,10 @@ $inputXML = '
+
+
+
+
@@ -13509,14 +13575,14 @@ $inputXML = '
-
-
-
-
+
+
+
+
@@ -13811,10 +13877,6 @@ $inputXML = '
-
-
-
-
@@ -13823,6 +13885,10 @@ $inputXML = '
+
+
+
+
@@ -14106,10 +14172,6 @@ $inputXML = '
-
-
-
-
@@ -14122,6 +14184,10 @@ $inputXML = '
+
+
+
+
@@ -14531,6 +14597,10 @@ $inputXML = '
+
+
+
+