Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COSMIC DE support #738

Open
Department-stack opened this issue Dec 8, 2024 · 2 comments
Open

COSMIC DE support #738

Department-stack opened this issue Dec 8, 2024 · 2 comments
Labels
contributions welcome It would be cool if somebody worked on this one feature request New feature or request Linux This affects Kando on Linux Wayland This affects Kando under Wayland Linux

Comments

@Department-stack
Copy link

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 Department-stack added the feature request New feature or request label Dec 8, 2024
@Schneegans
Copy link
Contributor

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 Schneegans added Wayland This affects Kando under Wayland Linux Linux This affects Kando on Linux labels Dec 8, 2024
@daegalus
Copy link

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.

@Schneegans Schneegans added the contributions welcome It would be cool if somebody worked on this one label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome It would be cool if somebody worked on this one feature request New feature or request Linux This affects Kando on Linux Wayland This affects Kando under Wayland Linux
Projects
None yet
Development

No branches or pull requests

3 participants