AirPlay metadata integration for Hyprland (Waybar & Hyprlock).
This project allows you to see what's playing via Shairport Sync directly on your Waybar and Hyprlock screen, providing a seamless AirPlay experience on Linux.
- Shairport Sync receives the AirPlay stream and writes metadata to
/tmp/shairport-sync-metadata. - A custom bash script parses this metadata to extract the song title.
- Waybar displays the title in your status bar using a custom module.
- Hyprlock can use the same logic to show current media on your lock screen.
- Install
shairport-sync. - Configure
shairport-sync.confto enable metadata output. - Add the
airplay_title.shscript to your Waybar scripts folder. - Add the custom module to your
waybar/config.jsonc:
"custom/airplay": {
"exec": "~/.config/waybar/scripts/airplay_title.sh",
"interval": 2,
"return-type": "json"
}config/shairport-sync/: Configuration for the AirPlay receiver.config/waybar/: The script and Waybar module example.config/hypr/: Hyprlock example showing media integration.
Feel free to fork and improve!