# ~/.config/xdg-desktop-portal/sway-portals.conf  (xdg-desktop-portal 1.18+ format)
# Route ScreenCast to the right wlr-family backend; gtk handles the rest.
#
# A desktop-specific section (matched against XDG_CURRENT_DESKTOP, which the host sets per session —
# `sway` for sway/river, `Hyprland` for Hyprland) wins over [preferred]. So sway hosts capture
# through xdg-desktop-portal-wlr (xdpw) and Hyprland hosts through xdg-desktop-portal-hyprland
# (xdph) — each the backend the host actually steers.
[preferred]
default=gtk
org.freedesktop.impl.portal.ScreenCast=wlr

# Hyprland: XDG_CURRENT_DESKTOP=Hyprland → xdph services ScreenCast (the host steers its custom
# picker via ~/.config/hypr/xdph.conf). See docs/hyprland.
[Hyprland]
org.freedesktop.impl.portal.ScreenCast=hyprland
