Skip to content

[Feature]: Allow the terminal sessions drawer on the right/end side #5271

Description

@fitchmultz

Feature description

Please add a supported option to place the terminal sessions drawer on either side of the screen, while retaining the current side as the default. For example:

terminal-drawer-side = start  # start or end

A Settings UI choice would also work.

On a large foldable display, especially during right-handed use, the current drawer requires reaching across the full unfolded screen. A DRAWER extra key at the upper-right makes the drawer easy to trigger, but the drawer and its session controls still open on the far-left edge. An end option would keep both the trigger and controls within reach.

The configured gravity should be used consistently by the layout, the DRAWER extra key, keyboard shortcuts, back handling, and edge gestures. Defaulting to start would preserve existing behavior.

Additional information

This is related to #1325, but it addresses placement rather than only the difficulty of triggering a left-edge drawer under Android gesture navigation.

I tested with the F-Droid 0.119.0-beta.3 release on a Samsung foldable running Android 17. I also checked current master at 3df69d1d: activity_termux.xml still names the view left_drawer and sets android:layout_gravity="start", while drawer operations in TermuxTerminalExtraKeys, TermuxTerminalViewClient, and TermuxActivity use Gravity.LEFT.

AndroidX DrawerLayout supports start/end drawer gravity, so this appears suitable for a backward-compatible preference rather than requiring a separately signed Termux fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions