ElBruno.ClockTray 0.5.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package ElBruno.ClockTray --version 0.5.3
                    
NuGet\Install-Package ElBruno.ClockTray -Version 0.5.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ElBruno.ClockTray" Version="0.5.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ElBruno.ClockTray" Version="0.5.3" />
                    
Directory.Packages.props
<PackageReference Include="ElBruno.ClockTray" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ElBruno.ClockTray --version 0.5.3
                    
#r "nuget: ElBruno.ClockTray, 0.5.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ElBruno.ClockTray@0.5.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ElBruno.ClockTray&version=0.5.3
                    
Install as a Cake Addin
#tool nuget:?package=ElBruno.ClockTray&version=0.5.3
                    
Install as a Cake Tool

๐Ÿ• ClockTray โ€” Toggle Windows Taskbar Clock

NuGet License: MIT Build

A lightweight Windows system tray application that lets you show or hide the taskbar date/time with a single click or keyboard shortcut.

ClockTray Demo

Features

  • System tray icon with right-click context menu
  • Show/Hide Date & Time in the Windows taskbar
  • Global hotkey: Ctrl+Alt+T to toggle
  • Windows 11 23H2+: Instant toggle via WM_SETTINGCHANGE (no Explorer restart)
  • Older Windows: Falls back to policy registry key + Explorer restart

Installation

Build from source

git clone https://github.com/elbruno/ElBruno.ClockTray.git
cd ElBruno.ClockTray
dotnet build
dotnet run

Publish as self-contained executable

dotnet publish -c Release -r win-x64 --self-contained

Requirements

Usage

  1. Run the app โ€” it starts minimized to the system tray (clock icon near the Windows clock)
  2. Right-click the tray icon to Show/Hide the taskbar date & time, or Exit
  3. Double-click the tray icon to toggle
  4. Ctrl+Alt+T anywhere to toggle via global hotkey

Architecture

File Purpose
Program.cs Entry point, runs the ApplicationContext
ClockTrayApplicationContext.cs NotifyIcon, context menu, app lifecycle
ClockToggler.cs Registry read/write + SendMessageTimeout P/Invoke
HotkeyWindow.cs Global hotkey via RegisterHotKey P/Invoke

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

This project could potentially evolve into a PowerToys module. If you're interested in helping make that happen, let's discuss it in the issues.

๐Ÿ‘‹ About the Author

Hi! I'm ElBruno ๐Ÿงก, a passionate developer and content creator exploring AI, .NET, and modern development practices.

Made with โค๏ธ by ElBruno

If you like this project, consider following my work across platforms:

  • ๐Ÿ“ป Podcast: No Tienen Nombre โ€” Spanish-language episodes on AI, development, and tech culture
  • ๐Ÿ’ป Blog: ElBruno.com โ€” Deep dives on embeddings, RAG, .NET, and local AI
  • ๐Ÿ“บ YouTube: youtube.com/elbruno โ€” Demos, tutorials, and live coding
  • ๐Ÿ”— LinkedIn: @elbruno โ€” Professional updates and insights
  • ๐• Twitter: @elbruno โ€” Quick tips, releases, and tech news

License

MIT ยฉ Bruno Capuano

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 146 4/22/2026
0.6.1 94 7/5/2026
0.6.0 129 4/16/2026
0.5.5 138 3/3/2026
0.5.4 131 3/3/2026
0.5.3 123 3/3/2026