#!/bin/sh # Now-playing widget (project-plan Phase 11, follow-up: visible playback status). # # eww is not packaged in Debian bookworm main (it is a Rust binary normally built with # cargo or fetched as a GitHub release) — same situation as spotifyd in # 0500-spotify-connect.hook.chroot, so the same pattern applies: try apt in case a # backport/third-party repo was added, otherwise stop at a documented placeholder # rather than hardcoding a release URL/version that would silently 404 later. # # eww itself has no systemd unit to enable: configs/eww/fullscreen-watcher.sh starts # `eww daemon` on demand and is launched from the sway config, not from here. set -eu if apt-get install -y --no-install-recommends eww 2>/dev/null; then echo "0800-eww-widget: installed eww from apt." else echo "0800-eww-widget: eww is not available from the configured apt sources." echo " The now-playing widget will not appear on this image until eww is installed:" echo " a) cargo install eww (needs a Rust toolchain in a build hook), or" echo " b) fetch a release binary from https://github.com/elkowar/eww/releases" echo " (check the current tag yourself) into /usr/local/bin/eww." echo " configs/eww/fullscreen-watcher.sh already detects a missing eww and no-ops," echo " so the rest of the session is unaffected either way." fi