Skip to content

Clock

The date and time, in the centre of the default top panel. Clicking it opens the overview. It is also where the shell’s timers live.

[modules.clock]
show_weekday = false
show_date = true
show_year = false
show_week_number = false
show_time = true
show_seconds = false
hour_format = "24"
timer_sound = "ding"
timer_volume = 0.7
[[modules.clock.quick_timers]]
name = "Tea"
duration = "3m"
Key Type Default Description
show_weekday bool false Day name, Mon
show_date bool true Month and day, Nov 2
show_year bool false Year, 2026
show_week_number bool false ISO 8601 week, W45
show_time bool true Hour and minute
show_seconds bool false Seconds; ignored while show_time is off
hour_format string "24" "24" (14:05) or "12" (2:05 PM)
timer_sound string "ding" What a finished countdown rings — see below
timer_volume float 0.7 Alarm volume, 0–1
quick_timers array none One-click countdowns — see Quick timers
  • Parts are shown in table order: with all on, Mon Nov 2 2026 W45 14:05:09.
  • With every part off, the bar shows a clock icon so there is still something to click.
  • Edits apply at once. Settings › Shell › Modules › Clock has a switch for each part.

Clicking the clock opens the overview on the clicked bar’s screen: one panel with tabs for Calendar, Settings, Monitor, System Info, Kanban, Code and Shortcuts. The todo and keyboard-shortcut buttons open the same panel on their own tab.

  • Pressing a button whose tab is showing closes the overview; pressing another switches tab.
  • Escape or ✕ closes it.
  • Drag the tab strip to move the panel. It stays there until the shell restarts. It cannot be resized.

Start a timer from the hourglass or stopwatch button in the overview’s top-left corner. Running timers float around the overview panel as cards: drag one anywhere, or right-click it to pause, resume, reset or remove it. While one runs, its readout also appears beside the clock in the bar; click it to pause or stop timers.

When a countdown reaches zero it:

  1. Rings timer_sound. Several finishing at once ring once.
  2. Posts a notification — Timer finished — that stays until you dismiss it. It never plays the notification chime, so timer_sound = "none" gives a silent, notified timer.

timer_sound accepts:

  • A shipped alarm: ding (one strike), ding-dong (two falling notes), alarm (two bursts of three tones), gong (one low strike, long tail). Synthesised on first use into ~/.cache/moonswing/sounds/.
  • none, off or silent: no sound.
  • A path: anything with a / (or a leading ~), in any format mpv plays.
  • A sound-theme name, looked up like the notification chime: "complete" finds /usr/share/sounds/freedesktop/stereo/complete.oga.

If the sound can’t be found, the timer card in the overview says so; the notification still arrives.

The hourglass card has a Name field. A name labels the timer (Tea · 03:00, and Tea (03:00) is up. in the notification). Save as quick timer keeps the name and length as a chip at the top of the card: click the chip to start it, click its × to forget it. Saving an existing name updates its length.

Quick timers are stored in config.toml and survive a restart; running timers do not.

[[modules.clock.quick_timers]]
name = "Tea"
duration = "3m"
[[modules.clock.quick_timers]]
name = "Pasta"
duration = "10:00"
Key Type Description
name string Label; up to 40 characters, one line
duration string or int 3m, 1:30, 1h30m, bare 5 (minutes), or an int of seconds. Max 99 hours

A row with no name or an unparseable duration is skipped and left in the file untouched.