Skip to content

Commit

Permalink
Add new search button toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoobdude authored Jun 14, 2024
1 parent 7c87e10 commit 4db4519
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@ if ($configFile."Remove-task-view") {
Set-ItemProperty -Path $explorer -Name "ShowTaskViewButton" -Value 0
}

# Set task bar search type
if ($configFile.'Task-bar-search-mode') {
$taskBarSearchModeRegKey = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search"
if ($configFile.'Task-bar-search-mode' -eq "Hidden"){
Set-ItemProperty -Path $taskBarSearchModeRegKey -Name "SearchboxTaskbarMode" -Value 0
}

if ($configFile.'Task-bar-search-mode' -eq "Icon"){
Set-ItemProperty -Path $taskBarSearchModeRegKey -Name "SearchboxTaskbarMode" -Value 1
}

if ($configFile.'Task-bar-search-mode' -eq "Bar"){
Set-ItemProperty -Path $taskBarSearchModeRegKey -Name "SearchboxTaskbarMode" -Value 2
}

}


# Turn on file extensions in File Explorer
if ($configFile."File-extentions") {
Set-ItemProperty -Path $explorer -Name "HideFileExt" -Value 0
Expand Down

0 comments on commit 4db4519

Please sign in to comment.