Dock and task manager are one module: titled window pills, pins, Super+1..9
CI / test (push) Failing after 30s

The panel had a task list and, beside it, a dock showing the same running
apps again. They are now one module, the dock, in the task list's place:

- Pinned apps, then running ones; an app with windows is a pill with its
  window's title (or name and window count) while there is room, an icon
  when the panel is crowded ("Show window titles" in Dock settings).
- Its right-click menu has the task list's window commands (Minimize /
  Restore, Maximize) for a single window, or the app's windows by title.
- It stretches like the task list did; new panels get it instead of
  tasks. A saved panel's "tasks" becomes the dock (one dock, where the
  task list was); pins are the dock's own setting, so they carry over.
- An empty dock shows a "+ Add apps" tile that opens the Applications
  menu, where right-clicking an app offers Open and Pin to dock (adding a
  dock to the panel if there is none).
- Super+1 .. Super+9 open the dock's first nine apps like a click
  (shortcut "dock-apps", rebindable in Settings > Shortcuts).
- "New window" / "Open" only for apps the catalog can start.

The tasks component, lib/panel's pill geometry and the taskbar-widget
world are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiPCFHRxaJQvwex6ry
This commit is contained in:
Claude committed 2026-11-26 00:08:05 +00:00
1 parent 42aa770452
commit 6253371cb3
28 files changed
+801 -1131

No files matched your search

+13 -8
View File
@@ -3,7 +3,7 @@
A modular, KDE-Plasma-inspired Wayland desktop where **every part is a WebAssembly component**
(Component Model, WIT interfaces) written in [MoonBit](https://www.moonbitlang.com), on top of a
deliberately small host. The compositor itself (Wayland server, window manager, scene, shell) is a
component, and so is every panel module: the clock, the task manager, the launcher, the settings.
component, and so is every panel module: the clock, the dock (task manager), the launcher, the settings.
Chandra was called moon-plasma until 2026-11-25. The code, the WIT packages (`chandra:*`), the
session (`chandra-session`) and the paths (`~/.config/chandra`) all use the new name; an old
@@ -120,6 +120,7 @@ new keys)
| Super (tap) | Open the application launcher |
| Alt+Tab | Window switcher, with a live preview of each window |
| Super+D | Show the desktop (minimize every window); again to bring them back |
| Super+1 .. Super+9 | Open the dock's first nine apps (or bring their windows forward) |
| Super+Shift+S | Screenshot: select a region or click a window (F full screen, W active window) |
| Print / Super+Print / Super+Ctrl+Print | Screenshot of the full screen / active window / window under the pointer |
| Super+Shift+R | Record a region or window (Enter starts) |
@@ -135,13 +136,17 @@ a recording shortcut again to stop.
(reload every panel module from disk, keeping the panel and module settings; windows and apps
keep running), **Log out**, **Suspend**, **Restart** and **Power off**. Log out, Restart and
Power off ask for a second click.
* **Dock**: pinned apps, then the other running apps after a divider, with their theme icons and a
dot per open window (lit when the app has focus). Click to start an app or bring its newest
window forward; click a focused app again to step through its windows. Hover for the app's
name; right-click an icon for Open / New window, Pin or Unpin, Move left / right, Quit, and
Dock settings (icon size, magnification, whether running apps show). Pins live in state.edn.
* **Task manager**: a pill per window with the app's real icon from its `.desktop` file;
right-click a pill for Minimize, Maximize and Quit.
* **Dock**, the panel's task manager: pinned apps, then the other running apps after a divider,
with their theme icons and a dot per open window (lit when the app has focus). An app with
windows is a pill with its window's title (or its name and window count) while there is room,
just its icon when the panel gets crowded. Click to start an app or bring its newest window
forward (restoring it if minimized); click a focused app again to step through its windows.
**Super+1** .. **Super+9** do the same for the first nine. Right-click an app for Open / New
window, Pin or Unpin, Move left / right, its window's Minimize and Maximize (or a list of its
windows), Quit, and Dock settings (icon size, magnification, running apps, window titles).
Pin apps from there or by right-clicking them in the Launcher's menu; an empty dock shows a "+"
that opens it. Pins live in state.edn. (It replaced the separate Task Manager: a saved panel
with the old `tasks` module gets the dock in its place.)
* **Network**: Wi-Fi and wired status, connect to Wi-Fi networks (with passwords), Wi-Fi and
airplane switches, through NetworkManager over D-Bus (read-only sysfs status without it).
* **Battery**: charge, charging state, time left, low-battery warning (only added on machines