Show HN: Lambdock – ライブLisp REPLを備えたWaylandネイティブGTK4ドック
Show HN: Lambdock – Wayland-native GTK4 dock with a live Lisp REPL (codeberg.org)
要約
Lambdockは、Wayland環境向けに設計されたGTK4ベースのドックアプリケーションです。このツールは、ライブLisp REPL(Read-Eval-Print Loop)機能を統合しており、開発者がLispコードをリアルタイムで実行・テストできる利便性を提供します。
全文翻訳
lambdock
[画像: https://jointhefreeworld.org/ggg/dist/lang-c.svg] [画像: https://jointhefreeworld.org/ggg/dist/gtk4.svg] [画像: https://jointhefreeworld.org/ggg/dist/scheme-guile.svg] [画像: https://jointhefreeworld.org/ggg/dist/build-meson.svg] [画像: https://jointhefreeworld.org/ggg/dist/gnu-guix.svg] [画像: https://jointhefreeworld.org/ggg/dist/nix-flake.svg] [画像: https://jointhefreeworld.org/ggg/dist/maak.svg] [画像: https://jointhefreeworld.org/ggg/dist/i18n-gnu-gettext.svg] [画像: https://jointhefreeworld.org/ggg/dist/license-gpl3+.svg] [画像: https://jointhefreeworld.org/ggg/dist/license-fdl13+.svg] [画像: https://jointhefreeworld.org/ggg/dist/jointhefreeworld-org.svg] [画像: https://img.shields.io/badge/CI-Byggsteg%20%7C%20Woodpecker-2ea44f.svg]
a desktop dock for Wayland that you can reprogram while it is running.
lambdockは、GNU/Linuxデスクトップ用のドックです。これは、画面の端に配置され、アプリケーションランチャーを表示し、クリックするとウィンドウを前面に表示するものです。GTK4とgtk4-layer-shell上に構築されており、Waylandコンポジタ(Niri、Sway、Hyprland、River、Plasmaなど)に適しています。また、Emacsのように設計されており、レンダリング、Waylandプロトコル処理、フレームクロックアニメーションのための小型で高速なCコアを中心に、全体を制御する組み込みのGNU Guile Schemeエンジンが搭載されています。
このアーキテクチャこそが、lambdockを他のどのドックとも異なるものにしています。設定はLispで行い、テーマはCSSで適用し、その後、ディスクからホットリロードしたり、ライブソケットREPL経由で実行中のドックを操作したりできます。プロセスを再起動したり、フレームをドロップしたりすることなく、状態の検査、テーマの切り替え、ランチャーの追加、再構築の強制が可能です。
[画像: https://jointhefreeworld.org/static-assets/lambdock/gif_2026-08-07_22-32-33.gif]
画面端からスライドインするドック、アプリケーションの起動、ポインター下の魚眼レンズのような拡大効果、フォーカスされたアプリの開いているすべてのウィンドウを表示するマルチウィンドウポップオーバー(「すべてのウィンドウを閉じる」機能付き)、そして「lambdockについて」や「終了」などの右クリックメニューを備えています。
-
🐑 ソースコードを読む(PR/Issue/パッチを送信する): codeberg.org/jjba23/lambdock
-
📦 インストールする: openSUSE Build Service、NixPkgs、Guix、Docker Hub、およびパッケージ化されたtarball
-
📚 開発する: 開発者オンボーディング&アーキテクチャガイド
-
💬 質問する: lambdock Zulipコミュニティ
-
📰 変更を追跡する: 変更履歴
-
🗺️ なぜ存在するのかを読む: 永遠のドックを求めて
-
☕ 活動を支援する: コーヒー一杯を贈る
What lambdock is
lambdockis a modern, hyper-hackable, Wayland-native desktop dock application (as made popular by CairoDock, macOS, Plank) engineered for GNU/Linux users, people that like docks, macOS refugees, ricers, free software and Lisp enthusiasts, Wayland minimalists…
It is built in the C programming language using the GTK4 libraries and toolkit, gtk4-layer-shell, and Lisp (GNU Guile Scheme), with full runtime inspectability and configurability, hot-reload of the config and of the GTK CSS.
Whether you are running Niri, Sway, Hyprland, River, or any wlroots / Layer Shell compliant compositor, lambdock brings clean application launching, dynamic Wayland foreign-toplevel window tracking, and smooth cubic-eased auto-hiding directly to your setup.
Who it is for
- People who miss the macOS Dock – and want it on a compositor where windows are told who is in charge. Fish-eye magnification, a glassy capsule, running indicators, window titles: all there, none of it proprietary.
- Wayland minimalists who keep a compositor, a terminal, and a small pile of well-chosen tools – and want a dock that does not drag an X11 toolkit, a configuration daemon, or a GNOME session along with it.
- Ricers and theme collectors, who will want the twelve built-in themes, the CSS override hook, and the ability to restyle anything on the fly.
- Lisp people, who would rather write eleven lines of Scheme than file a feature request, and who expect a REPL inside the program they are running.
- Free software lovers who want the dock to be theirs: GPL-3.0-or-later, no account, no telemetry, no phone-home.
What it is built with
lambdock is powered by: C and GTK4 / GSK for the graphics core and the frame-clock-driven animations, gtk4-layer-shell for the Wayland surface protocol, GNU Guile 3.0 embedded in-process through libguile, Meson and Ninja for the build, GNU Guix and Nix for hermetic, reproducible environments, Maak for the task runner, GNU gettext for translations, and Emacs (with Geiser) as the recommended way to talk to the running dock.
There is no scripting bridge to a separate process, no D-Bus daemon in the middle, and no configuration format to learn in JSON or YAML: the interpreter is inside the dock, and the dock is the interpreter's playground.
Glossary: the words in this document
New to the Wayland, GTK or Lisp stack? Every piece of jargon in this document is one line away. Skim it now, or come back when a word bites.
| Term | What it means |
|---|---|
| Wayland | The modern display protocol on GNU/Linux. wayland.freedesktop.org |
| Compositor | The Wayland program that draws windows, positions surfaces and routes input: Niri, Sway, Hyprland, River, Plasma, … |
| Layer shell | The Wayland protocol for surfaces that belong to the desktop rather than to a window (bars, docks, launchers). Provided by gtk4-layer-shell. |
| GTK 4 | The graphical toolkit lambdock draws with. gtk.org |
| GSK | The GTK Scene Kit, GTK4's rendering engine. docs.gtk.org/gsk4 |
| GLib / GIO | The C utility and I/O library under GTK (file monitors, idle dispatch, process spawning). docs.gtk.org/glib |
| Guile | GNU's implementation of Scheme, and the extension language embedded in lambdock. gnu.org/software/guile |
| Lisp / Scheme | The functional language family this dock is configured in. Wikipedia |
| S-expression | The fully parenthesized syntax of Lisp, which is also the data it manipulates. Wikipedia |
| Thunk | A procedure that takes no arguments; here, what a dynamic widget polls for its text. |
| REPL | Read-Eval-Print Loop: a live prompt where you type code and see the result at once. Wikipedia |
| Quasiquoting, macros | Lisp facilities for writing code that writes code. |
| Foreign toplevel | The Wayland protocol that tells a client what windows exist and what they are called. protocol reference |
| Popover | A small floating menu anchored to a widget: here, the window HUD. |
| XDG | The freedesktop.org conventions for where desktop programs keep their files. base directory specification |
| /proc | The pseudo-filesystem where the Linux kernel reports memory, CPU, temperature and battery state. procfs |
| gettext, .po | GNU's translation system, and the per-language files it reads. gnu.org/software/gettext |
| Meson, Ninja | The build system and the build runner. mesonbuild.com, ninja-build.org |
| Guix, Nix | Functional package managers that pin every dependency, including the compiler. guix.gnu.org, nixos.org |
| Flatpak | A sandboxed application packaging format; the -flatpak presets launch apps through it. flatpak.org |
| Maak | The Scheme task runner this project builds with instead of a Makefile. codeberg.org/jjba23/maak |
| socat, ncat, rlwrap | Terminal tools for talking to the socket REPL, the last one adding line editing. |
| ccls, LSP | A C/C++ language server, and the Language Server Protocol editors speak: ccls, LSP |
Where to start
| Just want to see it? | Watch the GIF above, read Features, then Quick start. |
| New to all of this? | Start with the glossary, then which compositors are supported. |
| Want it on your desktop now? | Quick start gets a themed dock on screen in under a minute. |
| Want to install it properly? | Installing lambdock has Guix, Nix, Meson, distro and container paths. |
| Want to hack on it? | Read HACKING.org, then Developing lambdock. |
Which compositors are supported
lambdock is a GNU/Linux first utility. It uses gtk4-layer-shell to render, position itself, and behave like a dock. That means it works well in Wayland compositors that implement the wlr-layer-shell-unstable-v1 protocol, including:
- Smithay-based compositors: Niri, COSMIC Desktop
- wlroots-based compositors: wlroots powers Sway, Hyprland, River, Wayfire
- KDE Plasma (Wayland session)
- Mir-based compositors
Note: GNOME (Mutter) is currently not supported, because it does not implement the protocol.
Why it exists (a note from the author)
On the 30th of July 2026, I had a revelation and set out to build lambdock: a Wayland-native desktop dock that wouldn't just replicate the macOS or Cairo-Dock experience, but would transcend it with full runtime inspectability, hackability, and Lisp enlightenment.
I find GTK to be the very best UI toolkit for GNU/Linux and other platforms, anno 2026. So for me that choice was pretty clear, even if I also toyed with Qt and others, but GTK always came on top. After the wreckage of many PoCs and while reading some HackerNews in bed, a thought crossed my mind, and suddenly, absolute clarity!
Why not use idiomatic modern GTK4, in the language that it's written in. Oh wait, that language, C, has libguile.h, a great library inter-operability with Lisp (GNU Guile Scheme), allowing bi-directional bindings and communication. Why not go down this rabbit hole, which might at the same time teach me more about my favourite language (GNU Guile) and allow me a frictionless setup with GTK and native super performance.
[画像: Agnus Dei]
I therefore designed lambdock in my mind, in bed, much inspired by Emacs. A powerful, small C core that powers the program, rendering, graphics and low level details, and an embedded GNU Guile Scheme engine that at runtime is the heart and brain of the whole thing. This architecture uniquely delivers interactive socket REPL control, Lisp metaprogramming macros, dynamic multi-dock spawning, native Wayland foreign-toplevel window tracking, and frame-clock-driven hover animations.
lambdockis a story of resilience in many ways, as I cannot even remember how many attempts I made at building a dock (in different ways). Little did I know how many paradigms, ideas and PoCs would collapse before my vision became tangible reality.
Features
- Wayland Native: Built on GTK4 and
gtk4-layer-shellfor smooth edge anchoring, cubic-eased slide animations, and compositor integration. - Dynamic Window Tracking: Uses
zwlr_foreign_toplevel_manager_v1, the Wayland foreign toplevel protocol, to display active app indicators, window titles, and popover HUDs for focusing or closing instances; see Wayland toplevel tracking. - Multi-Monitor Flexibility: Span docks across all connected screens (
#:monitor 'all) or lock them to specific output connectors (e.g., `