MyDrift 1d0e3bfd5c
[FEAT] TweakToggles logik overhaul (#3014)
* move logic to json template

- remove Invoke-WPFToggle.ps1
- generalize Get-WinUtilToggleStatus
- add bingsearch reg key for testing
- use Invoke-WinUtilTweaks for actions
- replace Add-Click with checked & unchecked to make undo work

* add reg params for toggles into tweaks.json

- add all reg keys to tweaks.json into existing toggle entry
- remove unneeded scripts

* fix HKU

- load HKU if needed (for tweaks & GetToggleStatus)
- remove unneeded Invoke-WinUtilNumLock
- has loaded HKU does not load/not stay loaded

* add a lot of error handling

* Bugfix: New-PSDrive seems to return the "hku" itself so weirdly gets prepended to the return value so the result becomes ("hku", $false). In powershell pretty much every variable that exists is interpreted as $true so the toggle for numlock got incorrectly checked

* globally fix HKU error & minimize console feedback

- fix HKU issue globally
- remove some console logs, change some others to write-debug

* update Explorerrefresh

- change Invoke-WinUtilExplorerRefresh to handle refresh and restart
- add restart logic to window snapping Flyout & Suggestions
- rename Invoke-WinUtilExplorerRefresh to Invoke-WinUtilExplorerUpdate

* add explorer restart where needed to take effect

add explorer restart logic for hidden files + Fileextension toggles

* fix missing theme change logic in darkmode toggle

* fix window snapping

- fix issue defining WindowArrangementActive as dword instead of string

* fix bing search

- switch bing search enabled/disabled values

* add a little bit of error handling

- add error handling for Get-WinUtilToggleStatus

---------

Co-authored-by: Marterich <47688561+Marterich@users.noreply.github.com>
2024-12-05 21:24:36 -06:00
2024-08-28 15:33:44 -05:00
2023-12-19 14:20:21 -06:00
2024-08-06 14:20:51 -05:00
2024-08-30 09:48:21 -05:00
2024-11-06 18:33:17 -06:00

Chris Titus Tech's Windows Utility

Version GitHub Downloads (specific asset, all releases)

This utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline installs, debloat with tweaks, troubleshoot with config, and fix Windows updates. I am extremely picky about any contributions to keep this project clean and efficient.

screen-install

💡 Usage

Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, run PowerShell as an administrator. Here are a few ways to do it:

  1. Start menu Method:

    • Right-click on the start menu.
    • Choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11).
  2. Search and Launch Method:

    • Press the Windows key.
    • Type "PowerShell" or "Terminal" (for Windows 11).
    • Press Ctrl + Shift + Enter or Right-click and choose "Run as administrator" to launch it with administrator privileges.

Launch Command

irm "https://christitus.com/win" | iex

Dev Branch

irm "https://christitus.com/windev" | iex

If you have Issues, refer to Known Issues

🎓 Documentation

WinUtil Official Documentation

YouTube Tutorial

ChrisTitus.com Article

💖 Support

💖 Sponsors

These are the sponsors that help keep this project alive with monthly contributions.

TriHyderaMark AmosJason A. DiegmuellerwyattRMSStefanPaulDave JonesAnthony MendezClaudemodsMaxDursleyGuySandman616Phillip Waters

🏅 Thanks to all Contributors

Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.

Contributors

📊 GitHub Stats

Alt

Description
Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
Readme MIT 19 MiB
Languages
PowerShell 99.9%