Giter VIP home page Giter VIP logo

Comments (16)

raisjn avatar raisjn commented on July 19, 2024 3

in terms of bringing this into remux, the path forward will be:

  • add switch to last app command to remux
  • add API server to remux
  • connect API to remux commands

after that,

  • add remux.conf file with ability to disable (maybe configure) built in gestures

from rmkit.

raisjn avatar raisjn commented on July 19, 2024 2

@danshick this is a great question!

my thought is to make a couple gestures configurable through remux.conf (if want to move away from defaults). as well as make whatever actions are available through gestures are available through a simple CLI invocation. then people can disable the gestures via the config and connect them through genie (or any other app)

from rmkit.

raisjn avatar raisjn commented on July 19, 2024 2

thanks for the pointers!

as an API, i want it to be in a simple to explain location so that scripts can say echo show > /path/to/remux/api. I wasn't sure whether to keep fifo in the name vs. .api since fifo is an implementation detail and i wanted the shell command above to have some semantic meaning (vs impl. meaning). i'm leaning to /run/remux.api (since it's so short)

from rmkit.

raisjn avatar raisjn commented on July 19, 2024 2

k, added remux.conf in the latest commits, documented how to use the API and the .conf settins in https://github.com/rmkit-dev/rmkit/tree/master/src/remux

i think the gesture engine can use some work (especially around swipes), but now you can configure either through remux.conf and the new settings or can disable the gestures in remux altogether and use a separate gesture engine.

the API should hit toltec stable in next merge, then remux.conf will be in mege after that. otherwise, can always get the latest binaries from build.rmkit.dev/master/latest (especially if want to give feedback or help test)

from rmkit.

raisjn avatar raisjn commented on July 19, 2024 1

5cc49f4 adds a FIFO API to remux. it creates /tmp/remux.api which accepts newline delimited commands.

so far, the commands are: show, hide and back (back will swap between last two apps)

as usual, binaries are available on build.rmkit.dev/master/latest and will be available in toltec stable in a week or two

from rmkit.

danshick avatar danshick commented on July 19, 2024 1

I wonder if there is a better location than /tmp for that. Maybe /var/volatile or something in /run//var/run

For reference, my compositor Sway keeps that in /run/user/$UID/sway-ipc.$UID.$PID.sock. Also of note, the .sock extension makes it clearer what this file is.

Edit: This is a FIFO, not a socket. Never mind on the extension bit. Maybe /run/user/$UID/remux-$UID-$PID.fifo then?

from rmkit.

ludovico avatar ludovico commented on July 19, 2024 1

@raisjn tested it now, it works perfectly. The switch between apps is actually much quicker than the switch between documents in xochitl. Will keep playing around with it.

It's all I could have wanted, thank you so much!

BTW, happy to close it now, but it looks like you do that yourself to keep track. Feel free to correct me 🙂

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

this is such a great idea, thank you!

one thing is what gesture to bind it to (three finger swipe down? four finger tap?), so as part of this, i might make a simple remux config file

from rmkit.

ludovico avatar ludovico commented on July 19, 2024

I think three finger swipe makes sense, but a config file would be awesome

from rmkit.

danshick avatar danshick commented on July 19, 2024

Is there some plan to move all remux gestures to genie at some point? It'd be nice to configure gestures in a single place to avoid overlap. Idk, haven't thought this out much and definitely off topic for this issue.

from rmkit.

ludovico avatar ludovico commented on July 19, 2024

@danshick that would be great!

If we were able to invoke any action through the CLI, implementing this feature should be possible through a simple shell script. My C++ skills are nowhere near good enough, but I would be happy to help if there is anything else 👍

from rmkit.

Eeems avatar Eeems commented on July 19, 2024

I wonder if there is a better location than /tmp for that. Maybe /var/volatile or something in /run//var/run

from rmkit.

ludovico avatar ludovico commented on July 19, 2024

Did notice one thing: When you start remux, you have to go switch apps two times before the toggle works. I guess it could work to add xochitl as the initial 'last app' entry. 🤔

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

thanks! pushed a fix that does that, I'll likely close after this lands in toltec stable

from rmkit.

ludovico avatar ludovico commented on July 19, 2024

Nice! Works great 👍

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

available in stable (through genie), closing for now. the configurable remux is in testing (and will land in stable in the next merge)

from rmkit.

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.