termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
2.2k stars 318 forks source link

[Idea]: #734

Closed Snap888 closed 1 month ago

Snap888 commented 1 month ago

Problem description

can you tell me how I can launch x-11 from the activity with the permission I need? I want to use the sample code (am start --user 0 -n com.termux.x11/.MainActivity --es resolution "$res &>/dev/null ) where res=800x600 (or other value )

What steps will reproduce the bug?

am start --user 0 -n com.termux.x11/.MainActivity --es resolution $res &>/dev/null

What is the expected behavior?

No response

twaik commented 1 month ago

Use termux-x11-preference.

Snap888 commented 1 month ago

Использовать termux-x11-preference.

Can you explain how I can use this in the terminal?

twaik commented 1 month ago

First of all run termux-x11-preference list to get the list of available keys, then termux-x11-preference "<key>:<value>".