From b3a0bf79199f94e8494cdd5b59d8566d50116b63 Mon Sep 17 00:00:00 2001 From: Heiko <61519853+htcfreek@users.noreply.github.com> Date: Tue, 22 Mar 2022 13:12:21 +0100 Subject: [PATCH] [PTRun][Settings] Additional settings (#17170) --- .../Properties/Resources.Designer.cs | 83 ++++++++++++++++++- .../Properties/Resources.resx | 27 ++++++ .../WindowsSettings.json | 15 +++- 3 files changed, 123 insertions(+), 2 deletions(-) diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.Designer.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.Designer.cs index 63d2ecf0c3..73ab54cad0 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.Designer.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -852,6 +852,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Change screen saver. + /// + internal static string ChangeScreenSaver { + get { + return ResourceManager.GetString("ChangeScreenSaver", resourceCulture); + } + } + /// /// Looks up a localized string similar to Change User Account Control settings. /// @@ -933,6 +942,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Connectable devices. + /// + internal static string ConnectableDevices { + get { + return ResourceManager.GetString("ConnectableDevices", resourceCulture); + } + } + /// /// Looks up a localized string similar to Connected Devices. /// @@ -942,6 +960,33 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Connect panel. + /// + internal static string ConnectPanel { + get { + return ResourceManager.GetString("ConnectPanel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect to a wireless audio device. + /// + internal static string ConnectWirelessAudio { + get { + return ResourceManager.GetString("ConnectWirelessAudio", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connect to a wireless display. + /// + internal static string ConnectWirelessDisplay { + get { + return ResourceManager.GetString("ConnectWirelessDisplay", resourceCulture); + } + } + /// /// Looks up a localized string similar to Contacts. /// @@ -1140,6 +1185,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Device discovery. + /// + internal static string DeviceDiscovery { + get { + return ResourceManager.GetString("DeviceDiscovery", resourceCulture); + } + } + /// /// Looks up a localized string similar to Device manager. /// @@ -3129,6 +3183,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Screen saver. + /// + internal static string ScreenSaver { + get { + return ResourceManager.GetString("ScreenSaver", resourceCulture); + } + } + /// /// Looks up a localized string similar to Scroll bars. /// @@ -3570,6 +3633,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Timeout. + /// + internal static string Timeout { + get { + return ResourceManager.GetString("Timeout", resourceCulture); + } + } + /// /// Looks up a localized string similar to Touch. /// @@ -3633,6 +3705,15 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { } } + /// + /// Looks up a localized string similar to Turn screen saver on or off. + /// + internal static string TurnScreenSaverOnOff { + get { + return ResourceManager.GetString("TurnScreenSaverOnOff", resourceCulture); + } + } + /// /// Looks up a localized string similar to Typing. /// diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.resx b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.resx index 50e10f323c..7ee53849b7 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.resx +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/Properties/Resources.resx @@ -436,6 +436,9 @@ Change programs + + Change screen saver + Change User Account Control settings @@ -471,10 +474,22 @@ Command The command to direct start a setting + + Connectable devices + Connected Devices Area Device + + Connect panel + + + Connect to a wireless audio device + + + Connect to a wireless display + Contacts Area Privacy @@ -558,6 +573,9 @@ deuteranopia Medical: Mean you don't can see red colors + + Device discovery + Device manager Area Control Panel (legacy settings) @@ -1385,6 +1403,9 @@ Screen rotation Area System + + Screen saver + Scroll bars @@ -1571,6 +1592,9 @@ Timeline + + Timeout + Touch @@ -1596,6 +1620,9 @@ TruePlay Area Gaming + + Turn screen saver on or off + Typing Area Device diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/WindowsSettings.json b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/WindowsSettings.json index bb04bb22a7..61a6965b43 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/WindowsSettings.json +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.WindowsSettings/WindowsSettings.json @@ -572,7 +572,7 @@ "Name": "LockScreen", "Areas": [ "AreaPersonalization" ], "Type": "AppSettingsApp", - "AltNames": [ "Image", "Picture" ], + "AltNames": [ "Image", "Picture", "ScreenSaver" ], "Command": "ms-settings:lockscreen" }, { @@ -1766,6 +1766,19 @@ "Type": "AppControlPanel", "AltNames": [ "UserEnvironmentVariables", "UserVariables", "EnvVars", "UserEnvVars", "sysdm.cpl" ], "Command": "rundll32.exe sysdm.cpl,EditEnvironmentVariables" + }, + { + "Name": "ChangeScreenSaver", + "Type": "AppControlPanel", + "AltNames": [ "TurnScreenSaverOnOff", "Timeout", "desk.cpl" ], + "Command": "control desk.cpl,,@screensaver" + }, + { + "Name": "ConnectWirelessDisplay", + "Areas": [ "AreaSystem" ], + "Type": "AppSettingsApp", + "AltNames": [ "ConnectPanel", "ConnectableDevices", "ConnectWirelessAudio", "DeviceDiscovery" ], + "Command": "ms-settings-connectabledevices:devicediscovery" } ] }