Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Add bluetooth tray control #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
ShowTrayIcons # HideTrayIcons
ShowBluetoothTrayIcon # HideBluetoothTrayIcon
# ShowSecondsInTaskbar # HideSecondsFromTaskbar
DisableSearchAppInStore # EnableSearchAppInStore
DisableNewAppPrompt # EnableNewAppPrompt
Expand Down
12 changes: 12 additions & 0 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,18 @@ Function HideTrayIcons {
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoAutoTrayNotify" -ErrorAction SilentlyContinue
}

# Show Bluetooth tray icon
Function ShowBluetoothTrayIcon {
Write-Output "Showing Bluetooth tray icon..."
Set-Itemproperty 'HKCU:\Control Panel\Bluetooth' -Name 'Notification Area Icon' -Value '1' -Type DWord
}

# Hide Bluetooth tray icon
Function HideBluetoothTrayIcon {
Write-Output "Hiding Bluetooth tray icon..."
Set-Itemproperty 'HKCU:\Control Panel\Bluetooth' -Name 'Notification Area Icon' -Value '0' -Type DWord
}

# Show seconds in taskbar
Function ShowSecondsInTaskbar {
Write-Output "Showing seconds in taskbar..."
Expand Down