A live, multi-timezone world-time desktop wallpaper for Wayland/X11.
Project description
greyline
A live world-time desktop wallpaper for Wayland/X11 — a world map with clocks for your cities, your home city highlighted, and a day/night terminator that tracks the sun. A modern recreation of the classic IBM/ThinkPad "World Time" Active Desktop.
Shown with the optional ThinkPad wordmark (a user-supplied logo — see Credits). The bundled default logo is Tux.
▶ Try the live demo — greyline running in your browser (your timezone highlighted), no install needed.
greyline doesn't run a browser or a background daemon. A small Python program renders a PNG once a minute and hands it to your existing wallpaper mechanism, then exits — so it's effectively free on battery. (greyline = the ham-radio term for the day/night terminator.)
Table of Contents
Features
- Multi-timezone clocks at each city's real location, with accurate DST via the OS IANA
database (
zoneinfo). 12h or 24h. - Home city accented (dot + bold label + optional timezone-column highlight), auto-detected from your system timezone or pinned in config.
- Analytic day/night terminator, seasonally correct, with discrete civil / nautical / astronomical twilight bands.
- Vector map from public-domain Natural Earth data — crisp at any resolution, fully
themeable (
dark,blue, or custom), with honest zig-zag timezone boundaries, a green GMT column, and a red International Date Line. - Any resolution / multi-monitor / HiDPI — each output rendered at native pixels.
- Swappable corner logo — ships with Tux; point
logo_pathat your own PNG. - Works on any desktop — native backends for
sway,swww,hyprpaper,x11(feh/xwallpaper), plus a genericcommandbackend for GNOME / KDE / XFCE and anything else. - One-command setup —
greyline initdetects your desktop, writes a config, and schedules updates.
blue theme |
home city accented | minimal — no logo, 12h |
|---|---|---|
Requirements
- OS: Linux — Wayland or X11. (Not macOS or Windows; greyline drives a Linux desktop's
wallpaper mechanism, it doesn't own the screen.) Architectures:
x86_64andaarch64. - Python ≥ 3.11 — only when installing via pip/pipx/uv (the Nix package bundles its own).
- Runtime dependencies: Pillow and
tomlkit, installed automatically; plus fontconfig
(
fc-match) for font resolution. - A wallpaper mechanism for your desktop — one of the tools in the table below.
- Scheduling: a systemd user timer (most distros) or any session autostart running
greyline watch(Runit/OpenRC/s6/… — no systemd required).
greyline is distro-agnostic — install it with pipx/uv on any distribution, or via the Nix flake on NixOS. Supported desktops and what each needs:
| Desktop / compositor | Backend | Needs |
|---|---|---|
| sway / SwayFX | sway |
swaymsg |
| Hyprland, river, Wayfire, other wlroots | swww or hyprpaper |
swww / hyprpaper daemon |
| X11 window managers | x11 |
feh or xwallpaper |
| GNOME | command |
gsettings |
| KDE Plasma | command |
plasma-apply-wallpaperimage |
| XFCE | command |
xfconf-query |
| anything else with a CLI wallpaper-setter | command |
your own command |
greyline init detects your desktop and picks the backend for you; the command-backend rows
are community-verified (see Contributing).
Installation
pipx / uv (any distro, any desktop)
pipx install greyline # or: uv tool install greyline
greyline init # detect your desktop, write a config, schedule updates
greyline init writes a starter ~/.config/greyline/config.toml, auto-detects your
compositor/desktop and picks the backend (on GNOME / KDE / XFCE it fills in the right
wallpaper command for you), and — where systemd is present — installs and enables the
once-a-minute user timer. No git clone, no hand-copied units.
Nix (flake + home-manager) — recommended on NixOS
# flake.nix
inputs.greyline.url = "github:cothinking-dev/greyline";
# home-manager
imports = [ inputs.greyline.homeManagerModules.default ];
services.greyline = {
enable = true;
backend = "sway"; # auto | sway | swww | hyprpaper | x11 | command
fontFamily = "Aporetic Sans"; # resolved via fontconfig
settings = {
theme = "dark";
format = "24h";
twilight = { bands = true; darkness = "subtle"; };
home = { tz = "auto"; column_highlight = true; }; # "auto" = system tz
city = [
{ name = "Kuala Lumpur"; lat = 3.14; lon = 101.69; tz = "Asia/Kuala_Lumpur"; }
{ name = "London"; lat = 51.51; lon = -0.13; tz = "Europe/London"; }
{ name = "New York"; lat = 40.71; lon = -74.01; tz = "America/New_York"; }
{ name = "Tokyo"; lat = 35.68; lon = 139.69; tz = "Asia/Tokyo"; }
];
};
};
Run without installing
nix run github:cothinking-dev/greyline -- --out wt.png --res 2560x1440 # writes a PNG
uvx greyline --out wt.png --res 2560x1440 # same, via PyPI
Usage
After greyline init, the wallpaper updates on its own. Everything else is subcommands:
greyline # render all outputs and apply (what the timer runs)
greyline init # first-time setup: config + backend + scheduling
greyline watch [--interval SEC] # render+apply on a loop (any init system / WM)
greyline config set <key> <val> # also: get [key] / unset <key> (edits the config file)
greyline city add "<name>" <lat> <lon> <tz> [--home] # also: list / remove "<name>"
greyline enable | disable | status # manage the systemd user timer
greyline doctor # detected backend, outputs, session, timer
greyline --list-outputs # show detected backend + outputs
greyline --out wt.png --res WxH # render a PNG, no backend needed
Scheduling. On systemd, greyline init/greyline enable install a user timer that runs
every minute. No systemd? Any init system or WM works — skip the timer and add greyline to
your session autostart:
greyline watch # renders + applies every minute in the foreground
Configuration
Edit config from the CLI (comments in the file are preserved) or edit the file directly:
greyline city add "London" 51.51 -0.13 Europe/London --home
greyline config set theme blue
greyline config set twilight.darkness dramatic
The shipped worldtime/default-config.toml is the documented
template. Keys:
| Key | Values |
|---|---|
backend |
auto / sway / swww / hyprpaper / x11 / command |
command, resolution |
for the command backend (see below) |
map_style |
vector (default) / raster (bring your own art) |
theme, format |
dark/blue · 24h/12h |
logo, logo_path, logo_invert |
corner logo (default: Tux) |
[twilight] |
bands, darkness (subtle/medium/dramatic) |
[home] |
tz (auto or IANA), column_highlight, color |
[[city]] |
name, lat, lon, tz, optional label_side |
Desktop environments (GNOME / KDE / XFCE)
On desktops that manage their own wallpaper, greyline init configures the generic command
backend automatically: greyline renders a PNG and runs a command to set it as your wallpaper,
with {path} (the PNG) and {output} substituted.
Note: this replaces your desktop wallpaper — it is not an overlay. greyline re-renders and re-sets it each minute; the last image stays after greyline stops.
To set the command by hand (greyline config set command '…', or in the config file):
backend = "command"
# resolution = "2560x1440" # optional; else largest xrandr output, else 1920x1080
# GNOME (empty-then-set defeats GNOME's same-URI cache; sets light + dark):
command = 'gsettings set org.gnome.desktop.background picture-uri "" && gsettings set org.gnome.desktop.background picture-uri "file://{path}" && gsettings set org.gnome.desktop.background picture-uri-dark "file://{path}"'
# KDE Plasma:
command = 'plasma-apply-wallpaperimage {path}'
# XFCE (the monitor segment varies — see: xfconf-query -c xfce4-desktop -l | grep last-image):
command = 'xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image -s {path}'
These recipes are best-effort / community-verified — the maintainers run sway and can't test them directly. If yours needs a tweak, please report it.
How it works
A scheduler runs greyline once a minute; it renders a PNG per output and hands each to the
detected backend, then exits.
flowchart LR
T["systemd timer<br/>or greyline watch"] --> G(greyline)
CFG["config.toml<br/>cities · theme · home"] --> G
G --> S["sun.py<br/>subsolar point<br/>+ terminator"]
G --> V["vectormap.py<br/>Natural Earth GeoJSON"]
S --> R["render.py<br/>compose map, clocks,<br/>terminator, labels"]
V --> R
R --> P["PNG per output"]
P --> B["backend<br/>sway · swww · hyprpaper<br/>x11 · command"]
B --> W(["desktop wallpaper"])
sun.py— subsolar point + terminator/twilight boundary latitudes (pure astronomy math).geo.py/vectormap.py— lon/lat → pixel projection; the vector map is drawn from Natural Earth GeoJSON (supersampled for smooth coastlines).render.py— composites map + overlays, then draws clocks at native resolution with smart label placement (labels pick a side to avoid overlapping each other and the edges).backends/— the only platform-specific code; everything else is portable.
Contributing
greyline is a personal passion project, built and maintained in spare time and released as free and open-source software (GPL-2.0-or-later). It's a labour of love, not a product — issues, desktop-compatibility recipes, and pull requests are all welcome.
- Found a bug, or a
commandrecipe that needs tweaking on your desktop? Open an issue — there's a dedicated desktop-compatibility report template for GNOME/KDE/XFCE. - Run the tests with
nix flake check, orpytestin the dev shell.
Credits
Code is GPL-2.0-or-later. It descends from Maxim Proskurnya's GPL "World Time Wallpaper" tribute; the concept and original artwork are © IBM/Lenovo.
The default vector map uses public-domain Natural Earth data, and the default logo is
Tux (Larry Ewing / GIMP) — both cleanly redistributable. The original IBM/Lenovo ThinkPad
raster art and wordmark are not bundled; map_style = "raster" and the ThinkPad logo require
you to supply those files yourself (see NOTICE and docs/CREDITS.md).
Built with the assistance of AI coding tools.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greyline-0.4.1.tar.gz.
File metadata
- Download URL: greyline-0.4.1.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59bbd36c6c89fc287806e94727d9f430860584c0096610cbaf28266ccb727100
|
|
| MD5 |
a0bb3fdefea585b54d94f493862c6d81
|
|
| BLAKE2b-256 |
5abc9c5bc03edd8a72e9cb0e8b9e0aae9dec6e28fd000a383220d542cf854507
|
Provenance
The following attestation bundles were made for greyline-0.4.1.tar.gz:
Publisher:
publish.yml on cothinking-dev/greyline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
greyline-0.4.1.tar.gz -
Subject digest:
59bbd36c6c89fc287806e94727d9f430860584c0096610cbaf28266ccb727100 - Sigstore transparency entry: 2215306475
- Sigstore integration time:
-
Permalink:
cothinking-dev/greyline@b145488db103ca6b013b243f747154b9058b0ed0 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/cothinking-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b145488db103ca6b013b243f747154b9058b0ed0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file greyline-0.4.1-py3-none-any.whl.
File metadata
- Download URL: greyline-0.4.1-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d49212f7b582be614d775dc05dce39a5d75a78233179f3e0db9ce25ab26000
|
|
| MD5 |
91d5483ef916af1e486dfc1fe71a8d76
|
|
| BLAKE2b-256 |
b45618d89c580595179b676d2a24d2392f0746621fab5e6fac7322f884846010
|
Provenance
The following attestation bundles were made for greyline-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on cothinking-dev/greyline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
greyline-0.4.1-py3-none-any.whl -
Subject digest:
c5d49212f7b582be614d775dc05dce39a5d75a78233179f3e0db9ce25ab26000 - Sigstore transparency entry: 2215306493
- Sigstore integration time:
-
Permalink:
cothinking-dev/greyline@b145488db103ca6b013b243f747154b9058b0ed0 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/cothinking-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b145488db103ca6b013b243f747154b9058b0ed0 -
Trigger Event:
release
-
Statement type: