Coder Social home page Coder Social logo

Comments (6)

agnostic-apollo avatar agnostic-apollo commented on September 3, 2024 1

I haven't really thought much of the design but supporting both at same time would complicate things a lot, but might be possible, will see what can be done. It won't happen anytime soon anyways, much higher priority things to work on in coming months.

from termux-float.

agnostic-apollo avatar agnostic-apollo commented on September 3, 2024

Next version will export $TERMUX__PACKAGE_NAME variable for the app package in which the shell is running, different from $TERMUX_APP__PACKAGE_NAME for the core app. However, Termux:Float is eventually going to be integrated into Termux app itself so would require an API to check current status, including fullscreen mode, etc.

from termux-float.

mentalisttraceur avatar mentalisttraceur commented on September 3, 2024

However, Termux:Float is eventually going to be integrated into Termux app itself

Will we still be able to have both a normal terminal and a floating terminal open at the same time? And two separate shortcuts on the home screen, one for the floating terminal and one for the normal terminal?

from termux-float.

sudomain avatar sudomain commented on September 3, 2024

I also would like to run some code only in Termux:Float. I thought I had a solution by putting this in my bashrc:

if [ "$(pwd)" = "$HOME/.termux/termux_float" ]; then
    echo "In termux float"
fi

And setting:
default-working-directory = ~/.termux/termux_float/ in ~/.termux/termux.float.properties

I think this should work, however I can't get default-working-directory to change the directory in either termux.float.properties or termux.properties. I've run termux-reload-settings and checked that my bashrc and profile files aren't changing the directory. Any ideas?

from termux-float.

mentalisttraceur avatar mentalisttraceur commented on September 3, 2024

For whatever it's worth, I no longer have any foreseeable use for this part:

Will we still be able to have both a normal terminal and a floating terminal open at the same time? And two separate shortcuts on the home screen, one for the floating terminal and one for the normal terminal?

from termux-float.

agnostic-apollo avatar agnostic-apollo commented on September 3, 2024

default-working-directory = ~/.termux/termux_float/

The ~/ in path won't be expanded and an error in logcat will be logged. Use absolute path /data/data/com.termux/files/home/

https://github.com/termux/termux-app/blob/8e3a8980a849046adbd4156741e1d84047ee1df6/termux-shared/src/main/java/com/termux/shared/termux/settings/properties/TermuxSharedProperties.java#L514

from termux-float.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.