<?php
require_once 'termuxapi.php';
$termux = new termuxapi();
$oldclip = "";
while (true) {
sleep(1);
$clp = $termux->clipboard_get();
if ($clp !== $oldclip) {
$oldclip = $clp;
$termux->toast($clp);
$termux->notification($clp, "clipshow", "Clipshow");
}
}
|