Skip to content

feat(system-tray): adapt plasma 6.4 changes (#500) #501

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

AlexNabokikh
Copy link

Hi,

With these modifications, I was able to get the System Tray entities displayed correctly under KDE Plasma 6.4 (#500). However, I couldn't figure how to make shortcuts working, so please guide me how to do that or at least show the right direction.
I am terrible at Nix, so please be patient :D

CC: @HeitorAugustoLN

@HeitorAugustoLN
Copy link
Member

Thanks for this! Does it work the same as before? I've moved out of Plasma for a while now, so I have to catch up to the changes.

@AlexNabokikh
Copy link
Author

@HeitorAugustoLN well... yes, but not entirely. Take for instance the example below:

{
  systemTray = {
    items = {
      showAll = false;
      shown = [
        "org.kde.plasma.battery"
        "org.kde.plasma.keyboardlayout"
        "org.kde.plasma.networkmanagement"
        "org.kde.plasma.notifications"
        "org.kde.plasma.volume"
      ];
      hidden = [
        "org.kde.plasma.brightness"
        "org.kde.plasma.clipboard"
        "org.kde.plasma.devicenotifier"
        "plasmashell_microphone"
      ];
      configs = {
        "org.kde.plasma.notifications".config = {
          Shortcuts = {
            global = "Meta+V";
          };
        };
        "org.kde.plasma.clipboard".config = {
          Shortcuts = {
            global = "Alt+Shift+V";
          };
        };
      };
    };
  };
}

With the adjustments that I made, the module correctly shows and hides items in the system tray, but it fails to assign shortcuts using "raw config". I am very new to nix and plasma and couldn't figure how to do it in a few spare hours that I had. Do you have any suggestions on how to do it? I need guidance from a more experience person to get it done properly.

@HeitorAugustoLN
Copy link
Member

So I installed plasma again, looks like the shortcuts are now being handled in kglobalshortcutsrc with all other keybinds

@AlexNabokikh
Copy link
Author

Indeed. Sadly it doesn't work for me even if I use only UI to set it up. If I use tray settings, though, it works.
I'll try to find some time this week to figure this one out.
image

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

Successfully merging this pull request may close these issues.

2 participants