mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
8 lines
227 B
Bash
8 lines
227 B
Bash
#!/bin/bash
|
|
[ -n "${BL_ANDROID_CLIPBOARD:-}" ] && [ -n "${DISPLAY:-}" ] || exit 0
|
|
/usr/local/bin/droiddeck-clipboard "$BL_ANDROID_CLIPBOARD" &
|
|
child=$!
|
|
trap 'kill "$child" 2>/dev/null' EXIT
|
|
trap 'exit 0' TERM INT
|
|
wait "$child"
|