A GNOME Shell extension that lets you customize the date and time format displayed in the top bar. Tested on GNOME3 48 Mutter (Wayland).
make install
make enableWARNING: make enable might not work on the first try. On Wayland, log out and back in, and try running make enable again. It should work this time. If running X11, press Alt+F2, type r, and press Enter to restart the environment.
Open extension.js and edit the DATE_FORMAT constant near the top of the file:
const DATE_FORMAT = '%A %Y-%m-%d CW%V %H:%M';After editing, reinstall and reload:
make install
make disable
make enableThe format string uses strftime-style codes via GLib. Common codes:
| Code | Meaning | Example |
|---|---|---|
%A |
Weekday name | Monday |
%a |
Weekday abbrev | Mon |
%d |
Day (zero-padded) | 05 |
%-d |
Day (no padding) | 5 |
%b |
Month abbrev | Feb |
%B |
Month name | February |
%Y |
Year | 2026 |
%H |
Hour 24h | 14 |
%I |
Hour 12h | 02 |
%M |
Minute | 30 |
%p |
AM/PM | PM |
%V |
ISO 8601 week number | 09 |
%W |
Week number (Mon-based) | 09 |
%U |
Week number (Sun-based) | 08 |
Full reference: https://docs.gtk.org/glib/method.DateTime.format.html
- GNOME 45
- GNOME 46
- GNOME 47
- GNOME 48 (latest at the time of publishing this repository)
make disable
make uninstall