#!/bin/sh
# Grab the SFOS clipboard into the Waydroid bridge file.
# Lipstick has no zwlr_data_control, so wl-paste opens a small focus
# window on the display - tap it once and the transfer completes.
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"
export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-/run/display/wayland-0}"
wl-paste -n > "$HOME/.waydroid_clip" && echo "clipboard -> bridge ok"
