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

Can't set shortcuts for widgets #448

Open
LeoDurillon opened this issue Jan 4, 2025 · 1 comment
Open

Can't set shortcuts for widgets #448

LeoDurillon opened this issue Jan 4, 2025 · 1 comment

Comments

@LeoDurillon
Copy link

Hi, I’ve come across a problem while configuring a widget with Home Manager.

This is the actual configuration I’m using for the widget:

widgets = [
  ...
  {
    name = "Orbit.Start.Menu";
    config = {
      general = {
        customButtonImage = "nix-snowflake";
        useCustomButtonImage = true;
        favoritesPortedToKAstats = true;
        showFavoritesFirst = true;
      };
      shortcuts = {
        global = "Meta";
      };
    };
  }
]

This builds fine, but the problem comes from the configuration generated in the appletrc file:

# Config generated by Plasma Manager
[Containments][282][Applets][283][Configuration][shortcuts]
global=Meta

However, the expected configuration for the widget is:

# Expected config for the widget
[Containments][282][Applets][283][Shortcuts]
global=Meta

I’m not sure if there’s a workaround for this issue. I tried setting the shortcuts outside of config, but since it’s not an expected key, Nix won’t build it.

Thanks for your help! 😀

PS: Great work on the project – it’s really nice and easy to use! 😁

@HeitorAugustoLN
Copy link
Member

HeitorAugustoLN commented Jan 10, 2025

Great work on the project – it’s really nice and easy to use! 😁

Thanks!

We currently don't support setting up shortcuts for widgets, but it shouldn't be too hard to do. I will look for a implementation and the next days and open a PR, so we can fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants