Skip to content

Eniggman/termux-lab / termux-api

termux-api

Verified

Взаимодействие с Android OS и аппаратными датчиками смартфона через Termux:API (батарея, уведомления, буфер обмена, вибрация, диалоги, сенсоры, TTS).

FileKindSize
SKILL.mdskill md5.6 KB
scripts/battery_check.shexecutablescript1.4 KB
scripts/clipboard.shexecutablescript1.0 KB
scripts/dialog.shexecutablescript852 B
scripts/notify.shexecutablescript882 B
scripts/sensor_read.shexecutablescript690 B
scripts/toast.shexecutablescript620 B
scripts/tts_speak.shexecutablescript575 B
scripts/vibrate.shexecutablescript558 B

scripts/clipboard.sh

View on GitHub
#!/data/data/com.termux/files/usr/bin/bash
# ==============================================================================
# clipboard.sh - Safe Android clipboard get/set utility
# Part of Enigman Termux Lab (https://github.com/Enigman-Termux-lab)
# ==============================================================================
set -euo pipefail

ACTION="${1:-get}"

case "$ACTION" in
    get)
        if command -v termux-clipboard-get >/dev/null 2>&1; then
            termux-clipboard-get
        else
            echo "ERROR: termux-clipboard-get not found." >&2
            exit 1
        fi
        ;;
    set)
        if command -v termux-clipboard-set >/dev/null 2>&1; then
            if [ -n "${2:-}" ]; then
                termux-clipboard-set "$2"
            else
                termux-clipboard-set
            fi
            echo "Clipboard updated."
        else
            echo "ERROR: termux-clipboard-set not found." >&2
            exit 1
        fi
        ;;
    *)
        echo "Usage: $0 [get|set [text]]"
        exit 1
        ;;
esac
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall