external help file | Module Name | online version | schema |
---|---|---|---|
PSClock-help.xml |
PSClock |
2.0.0 |
Modify a running PSClock.
Set-PSClock [[-Color] <String>] [[-DateFormat] <String>] [-FontSize <Int32>] [-FontStyle <String>]
[-FontWeight <String>] [-FontFamily <String>] [-OnTop] [-CurrentPosition <Double[]>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Use this command to modify the settings of a running PSClock. You can also increase the size by selecting the clock and use the + key. Decrease using the - key. Each change takes a second to be applied. You might need to "grab" the clock and move it slightly to ensure you have it selected.
If you want to change the position, left-click and drag to re-position.
PS C:\> Set-PSClock -size 28 -FontStyle Oblique -FontFamily 'Tahoma'
PS C:\> Set-PSClock -size 35 -Position 500,100
Adjust the font size and clock position. This example is using the Position parameter alias.
Specify a font color like Green or an HTML code like '#FF1257EA'. You can also use any [System.Drawing.Brushes] color like Coral or SkyBlue. If you press Ctrl+Space after the parameter, you can use PSReadLine to display options formatted in the corresponding color.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify a .NET format string value like F, or G.
Type: String
Parameter Sets: (All)
Aliases: format
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a font family.
Type: String
Parameter Sets: (All)
Aliases: family
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
How large do you want the font size?
Type: Int32
Parameter Sets: (All)
Aliases: size
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a font style. Accepted values: Normal, Italic, Oblique
Type: String
Parameter Sets: (All)
Aliases: style
Accepted values: Normal, Italic, Oblique
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a font weight. Accepted values: 'Normal', 'Bold', 'Light', 'Medium', 'SemiBold'
Type: String
Parameter Sets: (All)
Aliases: weight
Accepted values: 'Normal', 'Bold', 'Light', 'Medium', 'SemiBold'
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Should the clock be on top of other applications?
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify an array of (X,Y) coordinates for the clock position. Use Get-PrimaryDisplaySize to determine the values.
Type: Double[]
Parameter Sets: (All)
Aliases: Position
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/