A minimal, lightweight floating clock for macOS that stays above all windows.
Built entirely by Claude Code
- Always on top - Floating window that stays above all other windows
- Liquid Glass effect - Beautiful translucent material with adaptive text that stays readable on any background
- Menu bar integration - No Dock icon, clean and unobtrusive
- Global hotkey - Toggle visibility with
Cmd+Shift+C(configurable) - Hot-reload config - JSON configuration with automatic reload
- CLI control - Run, kill, reload, toggle from terminal
- Resizable - Drag to resize with automatic font scaling
- Position persistence - Remembers position across launches
- macOS 26+
- Xcode 26+ Command Line Tools
# Clone and build
cd FloatingClock
make installThis installs to ~/bin. Make sure ~/bin is in your PATH:
export PATH="$HOME/bin:$PATH"floatingclock run # Launch the floating clock
floatingclock kill # Terminate the floating clock
floatingclock toggle # Toggle visibility
floatingclock reload # Reload configuration
floatingclock status # Check if running
floatingclock config # Open config file in editorClick the clock icon in the menu bar for:
- Show/Hide Clock
- Reload Config
- Open Config File
- Quit
Default: Cmd+Shift+C to toggle visibility (configurable)
Config file: ~/.config/floatingclock/config.json
{
"showSeconds": false,
"use24HourFormat": true,
"toggleShortcut": "cmd+shift+c",
"fontStyle": "sans",
"animateDigits": false,
"padding": 8,
"cornerRadius": 16,
"textSize": 100
}| Option | Type | Description |
|---|---|---|
showSeconds |
bool | Show seconds in time display |
use24HourFormat |
bool | Use 24-hour format (vs 12-hour with AM/PM) |
toggleShortcut |
string | Global hotkey to toggle visibility |
fontStyle |
string | "sans", "mono", or "rounded" |
animateDigits |
bool | Animate digit changes |
padding |
int | Inner padding in pixels |
cornerRadius |
int | Corner radius in pixels |
textSize |
int | Font size percentage (100 = auto) |
Modifiers: cmd, shift, opt/alt, ctrl
Examples:
cmd+shift+cctrl+alt+tcmd+opt+space
- Drag: Click and drag anywhere on the clock to move it
- Resize: Drag from any edge or corner to resize
- Font scaling: Font automatically scales with window size
- Position: Window position is saved between launches
make uninstallConfig files are preserved at ~/.config/floatingclock/.
# Build only (no install)
make build
# Run directly from build directory
make run
# Clean build artifacts
make clean- Pure Swift/SwiftUI with no external dependencies
- Uses AppKit for window management (NSPanel)
- Carbon API for global hotkeys
- DistributedNotificationCenter for CLI-to-app IPC
MIT
