Giter VIP home page Giter VIP logo

Comments (17)

Shatur avatar Shatur commented on May 24, 2024 2

Hm... What if I provide a DBus API instead of CLI? This will separate the work with the CLI and GUI and allow to manage the program from third-party tools.
Also you will able to bind dbus commands as shortcuts too.

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024 1

I think that Gnome and KDE provide an API for this. I will try to figure out how to register hotkeys for them.
I think it will be more correct :)

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024 1

@Shatur95, there is a difficult way through gsettings. I think it's better to wait for a better implementation and leave it manual for now

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024 1

Done, check the documentation. But I'm no sure that Wayland supports global selection...

from crow-translate.

VolkMilit avatar VolkMilit commented on May 24, 2024 1

@Shatur95, there is an different mechanism in Wayland, see this.

Speaking of fragmentation...

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024 1

@Shatur95

But I'm no sure that Wayland supports global selection...

I've checked it, all works fine

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

You can just execute crow to open the program main window.

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024

@Shatur95, I can not.
crow does not intercept a current PRIMARY selection and opens "The application is already running" window

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

Sorry, I misunderstood you. In the application itself, hotkeys do not work on Wayland?

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024

Hotkeys (on any qt applications) don't work if focused window runs on wayland.
Inside crow - work

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024

I found the same issue: albertlauncher/albert#309

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

Unfortunately, this is because I use the QHotkey library, which does not work for Wayland :(
I do not like the proposed solution. I would like to be able to somehow register hotkeys for Wayland...

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024

I would like to be able to somehow register hotkeys for Wayland...

It seems impossible now: Skycoder42/QHotkey#14 (comment)

from crow-translate.

hexauni avatar hexauni commented on May 24, 2024

@Shatur95, no problem, do as you see fit

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

Is there a way to somehow let Gnome know about available shortcuts instead of adding it manually?
For example, to show the shortcuts in KDE settings i just need to add a few lines to .desktop file.

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

I've checked it, all works fine

Good news, thank you.

from crow-translate.

Shatur avatar Shatur commented on May 24, 2024

I made some changes to the D-Bus methods names in commit 2ea3f09. You can get the latest method names from readme.

from crow-translate.

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.