Giter Club home page Giter Club logo

Comments (7)

pataquets avatar pataquets commented on May 23, 2024 1

Thanks for your interest, @orhun.
Invoking a script would serve almost infinite use cases, users could get creative.
Mine would be to be able to send notifications to a tmux floating popup or a tmux display message.
However, lots of use cases could be enabled. Just stretching a bit more, you could, for instance, send notifications to:

  • A text-to-speech device
  • Some signaling hardware (home automation LEDs, etc)
  • Push notifications
  • Whatever other crazy idea you might come up...

It would also enable to have desktop notifications, on bare TTY sessions, since you can run a DBus session without X11 and sending & listening notifications just needs DBus.

from runst.

pataquets avatar pataquets commented on May 23, 2024 1

Not a must for my specific use case, but I guess that it won't hurt when adding Wayland support.
Having the X11/Wayland code outside the main logic as a sort of backend, would later enable to add a no-X-just-script backend as we're discussing here. Disclaimer: I'm not familiar with the codebase, neither with Rust.

from runst.

orhun avatar orhun commented on May 23, 2024

Hey, thanks for creating this issue. I would like to hear more about your ideas, especially the part that how you think this could be implemented. As far as I understood, you simply want a command-line interface that listens D-Bus notifications and you want to utilize it in shell scripts, am I right? Can you give a concrete example of that?

from runst.

orhun avatar orhun commented on May 23, 2024

Yeah, I can totally see the potential of this feature and it would be amazing to have it!

Regarding the implementation/usage, do you have an idea of how it would look like? Is it going to be a binary listening for events? How is it going to be configured?

I'm just trying to grasp better what is on your mind 🐻

from runst.

pataquets avatar pataquets commented on May 23, 2024

Having to code a listening program would place it out of reach/convenience for the average user.
I was thinking more in an external program/script that would be invoked on each event, specified with a simple --script command line switch or config file option. I'm not sure about if it would replace or add to X11 notifications (ie. as another backend).
Looking closely to the docs, maybe my use case could be covered with a custom_command which could unconditionally send all events to tmux.
However, replacing X11 could be useful for some users. Maybe if exit codes from filters were checked for stopping/continuing processing would work for those users. Not sure, thou.

from runst.

pataquets avatar pataquets commented on May 23, 2024

As I attempted to try custom_commands, I've filed #104.

from runst.

orhun avatar orhun commented on May 23, 2024

Making the X11 dependency optional would be a good start for this. What do you think?

from runst.

Related Issues (7)

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.