ElBruno.ClockTray
0.5.3
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
<PackageReference Include="ElBruno.ClockTray" Version="0.5.3" />
<PackageVersion Include="ElBruno.ClockTray" Version="0.5.3" />
<PackageReference Include="ElBruno.ClockTray" />
paket add ElBruno.ClockTray --version 0.5.3
#r "nuget: ElBruno.ClockTray, 0.5.3"
#:package ElBruno.ClockTray@0.5.3
#addin nuget:?package=ElBruno.ClockTray&version=0.5.3
#tool nuget:?package=ElBruno.ClockTray&version=0.5.3
๐ ClockTray โ Toggle Windows Taskbar Clock
A lightweight Windows system tray application that lets you show or hide the taskbar date/time with a single click or keyboard shortcut.
Features
- System tray icon with right-click context menu
- Show/Hide Date & Time in the Windows taskbar
- Global hotkey:
Ctrl+Alt+Tto 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
- Windows 10 or 11
- .NET 10 SDK
Usage
- Run the app โ it starts minimized to the system tray (clock icon near the Windows clock)
- Right-click the tray icon to Show/Hide the taskbar date & time, or Exit
- Double-click the tray icon to toggle
- 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
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.