An open API service indexing awesome lists of open source software.

https://github.com/dkramer95/termux-action


https://github.com/dkramer95/termux-action

android bash termux termux-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# termux-action
Launch and execute scripts faster through a shortcut selection interface using the new input methods in the
[Termux:API](https://github.com/termux/termux-api) addon

## Prerequisites
`termux-api`

## Installation
`git clone https://github.com/dkramer95/termux-action`

Run `install` which will install the scripts and needed dependencies

## Usage
For [Termux:Boot](https://github.com/termux/termux-boot) users, a persistent notification will be created automatically and show on boot (*recommended*). To manually show notification, type `termux-action-notification`. This notification provides an entry point to the `termux-action-chooser` interface. The notification will remain in place unless you click the explicit 'close' button.

`termux-action-chooser` displays a scrollable list of all executable scripts that exist in `~/.termux-actions` and can be launched with a single click. The complete filename of the scripts in this directory are what will be displayed in the list.

Termux needs a script file to execute. Add your desired command(s) inside a script file and place them in `~/.termux-actions`. For scripts that require a foreground Termux session (i.e. vim), you need to use `termux-action-launch [script]` and add an additional corresponding script in `~/.termux-actions/launch` that contains just the command.

## Screenshots