Giter Site home page Giter Site logo

Comments (5)

AdrianVovk avatar AdrianVovk commented on July 3, 2024 2

D-Bus is a fair choice for IPC. It's cross-platform (so the BSD port can use it), it's extremely cross-language, and it is stable. I can be a bit clunky in the c/c++ world, but it gets the job done, and works with many debug tools.

@soreau, if you don't like dbus-send, you can use busctl (if you use a systemd-based distro)

from wf-shell.

soreau avatar soreau commented on July 3, 2024

dbus comes to mind, though I find the syntax unwelcoming (both the API code and dbus-send).

from wf-shell.

ammen99 avatar ammen99 commented on July 3, 2024

What I find problematic is the case where we have multiple outputs (or even multiple Wayfire's running). How does the command know which instance to send it to? Perhaps we should just do a Wayfire plugin for tight integration with wf-shell.

from wf-shell.

soreau avatar soreau commented on July 3, 2024

@ammen99 With compiz there is a concept of screens for each call so the dbus-send caller would choose screen[n] for different instances or allscreens where it doesn't matter. (See the wiki for examples) For knowing which output, you could probably also build it into the call or just use the focused one.

from wf-shell.

valpackett avatar valpackett commented on July 3, 2024

In numbernine currently I have a launcher that just pops up as a layer-shell surface on an unspecified output when a gtk action is called, and a panel button that calls a gtk action over dbus. Absolutely no explicit mention of outputs anywhere, Wayfire just puts the lsh surface on the focused output, which is where the button was clicked :) So adding a keybinding is trivial.

multiple Wayfire's running

Each instance should have its own session bus.

clunky in the c/c++ world

gdbus-codegen-glibmm is awesome :) (but with gtk actions, you don't need anything like that)

from wf-shell.

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.