termux / termux-x11

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

Change settings from terminal #547

Closed numberokta closed 5 months ago

numberokta commented 6 months ago

Please add some kind of functionality to change termux-x11 settings from terminal. Some kind of IPC or using fifo file.

twaik commented 5 months ago

Check https://github.com/termux/termux-x11/actions/runs/7962643808 artifact.

twaik commented 5 months ago

Try https://github.com/termux/termux-x11/blob/master/termux-x11-preference script to change preferences.

RalfWerner commented 5 months ago

Great that is very good. I've with your script x checked only what I need: x extra_keys_config:[[KEYBOARD,DRAWER]] displayScale:400 is possible. But 400 not listed by x list. With the Preferenzen x touchMode:2, I get data="touchMode: can not be set to 2" .But is actual. The desired extra_keys value with >10 spaces inside as, can't be used. I've tried ",',\.

x list ``` [~]$ x list "displayResolutionMode"="scaled" "displayScale"="200" "displayResolutionExact"="1280x1024" "displayResolutionCustom"="1280x1024" "displayStretch"="false" "Reseed"="true" "PIP"="true" "fullscreen"="true" "forceLandscape"="false" "hideCutout"="false" "keepScreenOn"="true" "touchMode"="2" "scaleTouchpad"="true" "showStylusClickOverride"="false" "showMouseHelper"="false" "pointerCapture"="false" "tapToMove"="true" "showAdditionalKbd"="true" "hideEKOnVolDown"="false" "showIMEWhileExternalConnected"="true" "preferScancodes"="true" "dexMetaKeyCapture"="false" "enableAccessibilityService"="null" "enableAccessibilityServiceAutomatically"="false" "filterOutWinkey"="false" "extra_keys_config"="[[{macro:CTRL,display:'^',popup:{macro:'CTRL d',display:d}},{key:TAB,popup:PASTE},{key:LEFT,popup:BKSP},{key:RIGHT,popup:{macro:'o ENTER',display:off}},{key:UP,popup:PGUP}, {key:DOWN,popup:PGDN},{key:END,popup:HOME},{key:ENTER,popup:{macro:'CTRL n',display:'->'}},{key:KEYBOARD,popup:DRAWER},{macro:'mc SPACE i ENTER',display:M,popup:F10},{display:X,macro:'t SPACE 0 ENTER',popup:{macro:'t SPACE w ENTER',display:W}}]]" "clipboardSync"="false" "requestNotificationPermission"="null" ```