mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-03-12 17:51:46 +08:00
Add Remove widgets (#3962)
* Update tweaks.json * Create Widget.md * Update tweaks.json * Update Widget.md * Update tweaks.json * Update Widget.md * Update Widget.md * Update tweaks.json * Update tweaks.json * Update Widget.md
This commit is contained in:
@@ -60,6 +60,31 @@
|
||||
],
|
||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/hibernation"
|
||||
},
|
||||
"WPFTweaksWidget": {
|
||||
"Content": "Remove Widgets",
|
||||
"Description": "Removes the annoying widgets in the bottom left of the taskbar",
|
||||
"category": "Essential Tweaks",
|
||||
"panel": "1",
|
||||
"Order": "a005_",
|
||||
"InvokeScript": [
|
||||
"
|
||||
# Sometimes if you dont stop Widgets Process for removal to work
|
||||
Stop-Procces -Name Widgets
|
||||
Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers
|
||||
|
||||
Invoke-WinUtilExplorerUpdate -action \"restart\"
|
||||
Write-Host \"Removed widgets\"
|
||||
"
|
||||
],
|
||||
"UndoScript": [
|
||||
"
|
||||
Write-Host \"Restoring widgets AppxPackages\"
|
||||
Add-AppxPackage -DisableDevelopmentMode -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\"
|
||||
Invoke-WinUtilExplorerUpdate -action \"restart\"
|
||||
"
|
||||
],
|
||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/widgets"
|
||||
},
|
||||
"WPFTweaksLaptopHibernation": {
|
||||
"Content": "Set Hibernation as default (good for laptops)",
|
||||
"Description": "Most modern laptops have connected standby 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",
|
||||
|
||||
27
docs/content/dev/tweaks/Essential-Tweaks/Widget.md
Normal file
27
docs/content/dev/tweaks/Essential-Tweaks/Widget.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Remove Widgets
|
||||
|
||||
```json
|
||||
"WPFTweaksWidget": {
|
||||
"Content": "Remove Widgets",
|
||||
"Description": "Removes the annoying widgets in the bottom left of the taskbar",
|
||||
"category": "Essential Tweaks",
|
||||
"panel": "1",
|
||||
"Order": "a005_",
|
||||
"InvokeScript": [
|
||||
"
|
||||
# Sometimes if you dont stop Widgets Process for removal to work
|
||||
Stop-Procces -Name Widgets
|
||||
Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers
|
||||
|
||||
Invoke-WinUtilExplorerUpdate -action \"restart\"
|
||||
Write-Host \"Removed widgets\"
|
||||
"
|
||||
],
|
||||
"UndoScript": [
|
||||
"
|
||||
Write-Host \"Restoring widgets AppxPackages\"
|
||||
Add-AppxPackage -DisableDevelopmentMode -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\"
|
||||
Invoke-WinUtilExplorerUpdate -action \"restart\"
|
||||
"
|
||||
],
|
||||
```
|
||||
Reference in New Issue
Block a user