doc/dsc/modules/FindMyMouse.md
Manages configuration for the Find My Mouse utility, which helps locate your mouse cursor on the screen.
The FindMyMouse module configures PowerToys Find My Mouse, a utility that
highlights your mouse cursor location when you press the Ctrl key. This is
particularly useful on large or multiple displays where the cursor can be
difficult to locate.
The FindMyMouse module supports the following configurable properties:
Controls whether Find My Mouse is disabled during game mode.
Type: boolean
Default: true
Description: When enabled, Find My Mouse will not activate when Windows
game mode is active.
Sets the background color of the spotlight effect.
Type: string (hex color)
Format: "#RRGGBB"
Default: "#000000" (black)
Sets the color of the spotlight circle around the cursor.
Type: string (hex color)
Format: "#RRGGBB"
Default: "#FFFFFF" (white)
Sets the opacity of the background overlay (0-100).
Type: integer
Range: 0 to 100
Default: 50
Sets the radius of the spotlight in pixels.
Type: integer
Range: 50 to 500
Default: 100
Sets the duration of the spotlight animation in milliseconds.
Type: integer
Range: 0 to 5000
Default: 500
Sets the initial zoom level of the spotlight effect.
Type: integer
Range: 100 to 1000
Default: 200
List of applications where Find My Mouse is disabled.
Type: string (newline-separated list of executable names)
This example customizes the spotlight colors and radius.
$config = @{
settings = @{
properties = @{
BackgroundColor = "#000000"
SpotlightColor = "#00FF00"
SpotlightRadius = 150
OverlayOpacity = 60
}
name = "FindMyMouse"
version = "1.0"
}
} | ConvertTo-Json -Depth 10 -Compress
PowerToys.DSC.exe set --resource 'settings' --module FindMyMouse --input $config
This example customizes the spotlight animation behavior.
dsc config set --file findmymouse-animation.dsc.yaml
# findmymouse-animation.dsc.yaml
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Configure Find My Mouse animation
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
AnimationDurationMs: 750
SpotlightInitialZoom: 300
SpotlightRadius: 120
name: FindMyMouse
version: 1.0
This example installs PowerToys and configures Find My Mouse with custom colors.
winget configure winget-findmymouse.yaml
# winget-findmymouse.yaml
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
winget:
processor: dscv3
resources:
- name: Install PowerToys
type: Microsoft.WinGet.DSC/WinGetPackage
properties:
id: Microsoft.PowerToys
source: winget
- name: Configure Find My Mouse
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
BackgroundColor: "#000000"
SpotlightColor: "#0078D7"
OverlayOpacity: 70
SpotlightRadius: 140
DoNotActivateOnGameMode: true
name: FindMyMouse
version: 1.0
This example creates a subtle, less intrusive spotlight effect.
dsc config set --file findmymouse-subtle.dsc.yaml
# findmymouse-subtle.dsc.yaml
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Subtle spotlight
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
OverlayOpacity: 30
SpotlightRadius: 100
AnimationDurationMs: 300
name: FindMyMouse
version: 1.0
This example creates a high-visibility spotlight for accessibility.
$config = @{
settings = @{
properties = @{
BackgroundColor = "#000000"
SpotlightColor = "#FFFF00"
OverlayOpacity = 80
SpotlightRadius = 200
SpotlightInitialZoom = 400
}
name = "FindMyMouse"
version = "1.0"
}
} | ConvertTo-Json -Depth 10 -Compress
PowerToys.DSC.exe set --resource 'settings' --module FindMyMouse --input $config
This example ensures Find My Mouse doesn't interfere with games.
dsc config set --file findmymouse-gaming.dsc.yaml
# findmymouse-gaming.dsc.yaml
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Gaming configuration
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
DoNotActivateOnGameMode: true
name: FindMyMouse
version: 1.0
Configure for high visibility on large screens:
resources:
- name: Large display configuration
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
SpotlightRadius: 180
OverlayOpacity: 70
SpotlightColor: "#FFFFFF"
name: FindMyMouse
version: 1.0
Configure for maximum visibility:
resources:
- name: Accessibility configuration
type: Microsoft.PowerToys/FindMyMouseSettings
properties:
settings:
properties:
SpotlightColor: "#FFFF00"
OverlayOpacity: 80
SpotlightRadius: 200
AnimationDurationMs: 1000
name: FindMyMouse
version: 1.0