Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom margin #758

Open
xu3s opened this issue Dec 1, 2024 · 1 comment
Open

custom margin #758

xu3s opened this issue Dec 1, 2024 · 1 comment

Comments

@xu3s
Copy link

xu3s commented Dec 1, 2024

Hi, is there any way to set a custom margin for termux-x11? i asked because my phone screen has weird curve at the corner that make the experience unpleasant.

i was trying to see the list of preference that i could set myself , but i got this instead

~ $ termux-x11-preference
/data/data/com.termux/files/usr/bin/termux-x11-preference [list] {key:value} [{key2:value2}]...
~ $ termux-x11-preference list                                             list: Unexpected result
Broadcasting: Intent { act=com.termux.x11.CHANGE_PREFERENCE pkg=com.termux.x11 (has extras) }
Broadcast sent without waiting for result
~ $
@RalfWerner
Copy link

screen has weird curve at the corner

These are two different things. You get the message because your device has Android 14 or higher and the message with list is no longer displayed. Setting the preference values ​​works, however, without the message done if successful. @twaik thinks the message problem cannot be solved.

There are several settings for setting the screen size. My 47 sorted alphabetically on a device with Android < 14 are:

"PIP"="false"
"Reseed"="true"
"additionalKbdVisible"="true"
"adjustHeightForEK"="true"
"adjustResolution"="false"
"backButtonAction"="toggle additional key bar"
"capturedPointerSpeedFactor"="62"
"clipboardEnable"="true"
"dexMetaKeyCapture"="true"
"displayResolutionCustom"="1280x1024"
"displayResolutionExact"="1280x1024"
"displayResolutionMode"="scaled"
"displayScale"="270"
"displayStretch"="false"
"enableAccessibilityServiceAutomatically"="false"
"enableGboardCJK"="false"
"extra_keys_config"="[[{key:MOUSE_HELPER,popup:STYLUS_HELPER},{key:ESC,popup:SHFT},{key:KEYBOARD,popup:DRAWER},{key:'/',popup:{display:'\\\\',macro:BACKSLASH}},{key:  '-',popup:'|'},UP,{key:ENTER,popup:{macro:'CTRL n',display:'->'}},HOME,PGUP,{display:X,macro:'t SPACE 0 ENTER',popup:{macro:'t SPACE w ENTER',display:W}}],[{macro:CTRL,display:'^',popup:{macro:'CTRL d',display:d}},ALT,{key:TAB,popup:PASTE},{key:BKSP, popup:DEL},{key:LEFT,popup:BKSP},DOWN,{key:RIGHT,popup:{macro:'bash SPACE uu.sh SPACE ky ENTER',display:EK+}},END,PGDN,{macro:'mc SPACE i ENTER',display:M,popup:F10}]]"
"filterOutWinkey"="false"
"forceOrientation"="no"
"fullscreen"="true"
"hardwareKbdScancodesWorkaround"="true"
"hideCutout"="true"
"keepScreenOn"="true"
"notificationButton0Action"="open preferences"
"notificationButton1Action"="exit"
"notificationTapAction"="toggle additional key bar"
"opacityEKBar"="80"
"pauseKeyInterceptingWithEsc"="true"
"pointerCapture"="true"
"preferScancodes"="true"
"scaleTouchpad"="true"
"showAdditionalKbd"="true"
"showIMEWhileExternalConnected"="true"
"showMouseHelper"="true"
"showStylusClickOverride"="false"
"storeSecondaryDisplayPreferencesSeparately"="false"
"stylusButtonContactModifierMode"="true"
"stylusIsMouse"="true"
"swipeDownAction"="no action"
"swipeUpAction"="no action"
"tapToMove"="true"
"touchMode"="Direct touch"
"transformCapturedPointer"="No"
"useTermuxEKBarBehaviour"="false"
"volumeDownAction"="no action"
"volumeUpAction"="no action"
"xrMode"="false"

Als displayResolutionMode you can specify a reduced value with custom. For example, for me it is 1900x1200 when the screen is used horizontally (landscape), compared to native where the value is 2000x1144.
The reduction in size due to additional EK lines is subtracted from the screen, so a height of 1000 may be better. However, when rotating, the ratio remains the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants