mirror of
https://github.com/jrpie/Launcher.git
synced 2025-06-08 02:11:24 +02:00
add termux example to docs (see #147 and #149)
Some checks are pending
Android CI / build (push) Waiting to run
Some checks are pending
Android CI / build (push) Waiting to run
This commit is contained in:
parent
e4c7ad0994
commit
ac1639b77e
4 changed files with 25 additions and 0 deletions
23
docs/examples/termux/index.md
Normal file
23
docs/examples/termux/index.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
+++
|
||||
title = 'Integration with Termux'
|
||||
+++
|
||||
|
||||
# Termux
|
||||
|
||||
μLauncher has no special support for [Termux](https://termux.dev/).
|
||||
However it is possible to run Termux commands from μLauncher by using [Termux:Widget](https://wiki.termux.com/wiki/Termux:Widget) to create a pinned shortcut and bind that to a gesture.
|
||||
|
||||
* Install Termux:Widget.
|
||||
* Make sure that μLauncher is set as the default home screen.[^1]
|
||||
* Put the script you want to run into `~/.shortcuts/`.
|
||||
* Run `am start com.termux.widget/com.termux.widget.TermuxCreateShortcutActivity`. This will create a pinned shortcut which is treated like an app by μLauncher, i.e. open μLauncher's activity to create a shortcut.
|
||||
|
||||
<img src="./screenshot1.png"
|
||||
alt="screenshot"
|
||||
width="200" height="400">
|
||||
<img src="./screenshot2.png"
|
||||
alt="screenshot"
|
||||
width="200" height="400">
|
||||
|
||||
|
||||
[^1]: Only the default home screen can access shortcuts.
|
Loading…
Add table
Add a link
Reference in a new issue