Merge the Playing and Sound tabs; keep the volume bar always visible

- One "Playing" tab: the MPRIS player, then a volume bar (mute, master volume,
  button showing the active output). Frees a slot in the tab bar (4 tabs)
- The output list opens as a floating window above the bar (button, outside
  click or Escape closes it), so it never moves or squeezes the player
- Layout: the player takes the remaining height and scrolls inside its own
  area if needed; the bar stays at the bottom whatever the height. The cover
  is sized from the available height (cqh). Height steps for short screens;
  the output name is hidden on phones
- Fix: the cover's drop shadow greyed the title in portrait
- A stored "audio" tab falls back to "player"; WebSocket protocol unchanged

Checked in headless Chromium with a mock server (landscape 1280x800 down to
800x412, portrait, phone; with/without player and audio; interactions; no JS
errors). Not tried on the real tablet. README fr/en and CLAUDE.md updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis
2026-10-26 12:42:40 +01:00
parent 27c8eeb37c
commit 353f36c888
6 changed files with 193 additions and 64 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ The PC runs a small Python bridge; the tablet only needs a browser.
| Tab | Content | PC side |
|---|---|---|
| **Playing** | Cover art, title, progress, play/pause, next/previous, shuffle, repeat, player volume, player selection | MPRIS (session D-Bus): Elisa, VLC, mpv, Firefox, Chromium, Spotify, Kodi… |
| **Sound** | Master volume, mute, output selection (HDMI, Bluetooth…) and per-output volume | `pactl` (PipeWire or PulseAudio) |
| | **Volume bar** under the player: master volume, mute; the active output's button opens a window with the output selection (HDMI, Bluetooth…) and per-output volume; the bar is always visible | `pactl` (PipeWire or PulseAudio) |
| **Touchpad** | Touchpad (click, right click, 2-finger scroll), D-pad, Esc, Space, F, F11…, text entry with the tablet's keyboard | `/dev/uinput`: works on X11 **and** Wayland |
| **Launchers** | Configurable buttons: websites and installed applications (`/admin` page) | browser, `gio launch` |
| **System** | Lock, sleep, restart, shut down (1 s long press): sensitive operations, kept apart from launchers | logind, `org.freedesktop.ScreenSaver` |