forked from microsoft/PowerToys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DSC]Improve samples (microsoft#32494)
* Add DSC sample to install and configure * [DSC]Make configure action depend on install * [DSC]Add schema header for yaml-language-server * Use full resource name for quick finding by winget * Add index page to the DSC sample files
- Loading branch information
1 parent
db767a0
commit 31df322
Showing
6 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# PowerToys Desired State Configuration samples | ||
|
||
This folder contains samples of DSC files that can be used to configure PowerToys. | ||
|
||
> [!NOTE] | ||
> PowerToys DSC user documentation can be found on [Learn Microsoft PowerToys documentation](https://aka.ms/powertoys-docs-dsc-configure). | ||
### [configuration.dsc.yaml](./configuration.dsc.yaml) | ||
|
||
Sample configuration file that changes the enabled state of some modules, changes an integer setting and a hotkey setting. | ||
|
||
### [installAndConfiguration.dsc.yaml](./installAndConfiguration.dsc.yaml) | ||
|
||
Installs PowerToys and applies configuration.dsc.yaml to it. | ||
|
||
### [enableAllModules.dsc.yaml](./enableAllModules.dsc.yaml) | ||
|
||
Enables all PowerToys utilities. | ||
|
||
### [disableAllModules.dsc.yaml](./disableAllModules.dsc.yaml) | ||
|
||
Disables all PowerToys utilities. | ||
|
||
### [configureLauncherPlugins.dsc.yaml](./configureLauncherPlugins.dsc.yaml) | ||
|
||
Enables PowerToys Run and all its plugins and changes action keyword and global state for the Program plugin. |
11 changes: 2 additions & 9 deletions
11
src/dsc/Microsoft.PowerToys.Configure/examples/configuration.dsc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/dsc/Microsoft.PowerToys.Configure/examples/configureLauncherPlugins.dsc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/dsc/Microsoft.PowerToys.Configure/examples/disableAllModules.dsc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/dsc/Microsoft.PowerToys.Configure/examples/enableAllModules.dsc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/dsc/Microsoft.PowerToys.Configure/examples/installAndConfiguration.dsc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 | ||
properties: | ||
resources: | ||
- resource: Microsoft.WinGet.DSC/WinGetPackage | ||
id: installPowerToys | ||
directives: | ||
description: Install PowerToys | ||
allowPrerelease: true | ||
settings: | ||
id: Microsoft.PowerToys | ||
source: winget | ||
|
||
- resource: Microsoft.PowerToys.Configure/PowerToysConfigure | ||
dependsOn: | ||
- installPowerToys | ||
directives: | ||
description: Configure PowerToys | ||
settings: | ||
ShortcutGuide: | ||
Enabled: false | ||
OverlayOpacity: 50 | ||
FancyZones: | ||
Enabled: true | ||
FancyzonesEditorHotkey: "Shift+Ctrl+Alt+F" | ||
FileLocksmith: | ||
Enabled: false | ||
configurationVersion: 0.2.0 |