kando icon indicating copy to clipboard operation
kando copied to clipboard

COSMIC DE support

Open Department-stack opened this issue 1 year ago • 3 comments

Description

It would be great for cosmic to have support for this application. Its really useful on kde

Affected Desktop Environments

Linux, Any other Wayland-based environment, Other (specify below)

Additional Information

COSMIC

Department-stack avatar Dec 08 '24 14:12 Department-stack

Hi there! Thanks for the suggestion. If anybody wants to add this, go ahead! If Cosmic offers the required functionality somehow, writing the backend code will be easy.

You only have to implement a Cosmic-specific backend. This backend must be able to do the following things:

  • Return the current pointer position (even if Kando does not have focus).
  • Return the title of the currently focused window.
  • Return the name of the currently focused app.
  • Warp the mouse pointer to a given coordinate.
  • Simulate key presses.
  • Bind and unbind global shortcuts.

For instance on Hyprland, there is the hyprctl tool which allows for most of this. If Cosmic has APIs to do this, writing a custom backend will be very easy.

Schneegans avatar Dec 08 '24 14:12 Schneegans

For those interested in attempting this:

https://github.com/pop-os/libcosmic

Should be able to do most if not all of that with this library. Documentation is there too.

daegalus avatar Dec 29 '24 19:12 daegalus

Any news about this request? It would be a pity to not have Kando in Cosmic.

D3vil0p3r avatar Sep 25 '25 20:09 D3vil0p3r