The desktop had no on-screen volume feedback and no way to select audio
input/output devices, making it hard to actually use.
Route the XF86Audio{Mute,LowerVolume,RaiseVolume,MicMute} keys through
swayosd-client for an on-screen display, backed by a swayosd-server
instance started with the session.
Add indicator-sound-switcher as a tray applet for output/input device
selection. Its menu is a StatusNotifierItem dbusmenu, which sway's
built-in swaybar cannot render (it shows the icon but ignores the menu),
so replace swaybar with Waybar, which renders tray menus. Waybar also
takes over the status content (workspaces, clock, and battery on
laptops); styling is left at Waybar's default for now.
indicator-sound-switcher ships its tray icon only inside its own
package, and only as an SVG. Rather than installing it into a profile,
programs.sway.extraSessionCommands prepends the package's share to
XDG_DATA_DIRS (so the icon is found) and points GDK_PIXBUF_MODULE_FILE at
librsvg's loader cache (so the SVG can be rendered), scoped to the
Sway session. All binaries are referenced by Nix store path.
Test plan:
- CI
- Deploy to merlin (desktop) and a laptop; confirm the volume/mic OSD
appears on the audio keys, and the Waybar tray shows the device
switcher whose menu opens and changes the active output/input