mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 14:48:31 +00: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"
|
"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": {
|
"WPFTweaksLaptopHibernation": {
|
||||||
"Content": "Set Hibernation as default (good for laptops)",
|
"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",
|
"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