Solar Times
Next sunrise and sunset for the configured location, shown in the Omarchy bar with a detail popup. The popup also tracks progress through the current daylight or nighttime interval. Times are computed offline from latitude/longitude, so there is no network dependency.
Install
After publishing the repository, install it with:
omarchy plugin add https://github.com/vitally/omarchy-solar-times.git --enable
Remove it safely with:
omarchy plugin remove vt.sun
Move it on the bar with:
omarchy bar move vt.sun --section center
Location
The widget reuses the location stored by the Weather panel
(~/.local/state/omarchy/settings/weather.json). Set it once with the Weather
panel (click the location label) or directly:
omarchy-weather-location --set "Riga" 56.9496,24.1052
Without a location the widget stays hidden. Weather can still show a forecast from IP auto-detect or a name-only file; this widget needs coordinates.
Times are computed in the system timezone. The location in Weather should be in that same zone, or the clock times will be wrong.
In polar day or polar night the bar shows that label instead of empty times. The popup still lists the next real sunrise and sunset when they exist.
Dependencies and safety
The plugin requires Omarchy Quattro and runs as QML inside the existing
omarchy-shell process. It imports only the shell's qs.Commons and qs.Ui
components. It reads the shared Weather location file and uses the existing
omarchy-weather-location command for location setup.
It has no network calls, background service, installer, remote build, shell hook, elevated operation, or extra runtime dependency. Like all Omarchy plugins, it runs unsandboxed with the user's permissions; review the source before enabling it.
Time format
Times follow the clock widget's convention, so the two never disagree: a 24-hour
clock (dddd HH:mm) gives 24-hour sun times (05:52), a 12-hour clock
(h:mm AP) gives 5:52 AM. With no clock in the bar, the system locale is the
fallback. Override with an inline format setting on the widget entry in
~/.config/omarchy/shell.json:
{ "id": "vt.sun", "format": "HH:mm" }
Display
By default the bar shows both the next sunrise and next sunset
(↑ 05:52 ↓ 21:05). Set show to next to show only the sooner event:
{ "id": "vt.sun", "show": "next" }
Usage
- Left click — toggle the detail panel.
- Middle click — refresh.
- Right click — open the Weather panel to change the location.