Comments (16)
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.
@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.
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.
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.
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.
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.
@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.
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.
I think three finger swipe makes sense, but a config file would be awesome
from rmkit.
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.
@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.
I wonder if there is a better location than /tmp
for that. Maybe /var/volatile
or something in /run
//var/run
from rmkit.
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.
thanks! pushed a fix that does that, I'll likely close after this lands in toltec stable
from rmkit.
Nice! Works great 👍
from rmkit.
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)
- [genie] add double / triple tap support HOT 1
- documentation for /home/root/.config/remux/remux.conf? HOT 8
- Adding Up & Down to Lamp HOT 8
- [genie] Add support for genie.conf.d config folder HOT 4
- [harmony] Bus error when trying to load with a different framebuffer resolution HOT 3
- Error when trying to create a build HOT 10
- [simple] Problem with diacritics HOT 10
- [total noob] can you draw monochrome / b&w images to e-ink displays? HOT 8
- [rmkit] Add font fallback support to rmkit.h HOT 2
- [remux] Remux does not seem to clear input buffers on launching another app HOT 3
- [remux] Is remux compatible with 3.8 version ? HOT 2
- Add support for Kobo Sage HOT 2
- Rename default branch to main HOT 2
- remux eats 40% of the CPU after a while on 3.8.2.1965 HOT 10
- [harmony] Kobo Elipsa 2E eraser support HOT 3
- [harmony] Export and save functions on kobo Elipsa 2E do not work HOT 8
- Remux crashes after restarting rM1 HOT 2
- [harmony] project filenames are invalid on Windows because of date formatting
- [general] Rendering regression(s) after FBInk upgrade HOT 12
- [iago] rectangle not perfectly straight
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmkit.