add termux example to docs (see #147 and #149)
Some checks are pending
Android CI / build (push) Waiting to run

This commit is contained in:
Josia Pietsch 2025-05-24 19:01:15 +02:00
parent e4c7ad0994
commit ac1639b77e
Signed by: jrpie
GPG key ID: E70B571D66986A2D
4 changed files with 25 additions and 0 deletions

2
docs/examples/_index.md Normal file
View file

@ -0,0 +1,2 @@
# Examples
This section contains some examples how μLauncher can be tweaked.

View 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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB