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

hotkeys trigger disappearing when boot #16

Closed
RMTT opened this issue Apr 13, 2023 · 3 comments
Closed

hotkeys trigger disappearing when boot #16

RMTT opened this issue Apr 13, 2023 · 3 comments

Comments

@RMTT
Copy link

RMTT commented Apr 13, 2023

My hotkeys configuration:

{
hotkeys.commands = {
         "alacritty" = {
           comment = "default terminal";
           key = "Meta+Return";
           command = "alacritty";
         };
  
         "dropdown" = {
           comment = "dropdown terminal";
          key = "Meta+`";
          command = ''tdrop -mtair -f "--class dropdown" alacritty'';
        };
      };
}

For example, after configure that and reboot, it works:

[Data_1Triggers0]
  Key=Meta+Return
 Type=SHORTCUT
  Uuid={6880261a8a14507fd975a5fe7d8f559bdd7d64f5f5dc77abb2482d70b4adc488}

But when i reboot again, the key of trigger disappeared:

[Data_1Triggers0]
  Key=
 Type=SHORTCUT
  Uuid={6880261a8a14507fd975a5fe7d8f559bdd7d64f5f5dc77abb2482d70b4adc488}

And reboot again. the key appeared again:

[Data_1Triggers0]
  Key=Meta+Return
 Type=SHORTCUT
  Uuid={6880261a8a14507fd975a5fe7d8f559bdd7d64f5f5dc77abb2482d70b4adc488}

I have no idea why trigger key toggle between appear and disappear, but i found a workaround, just run the configuration script once or several times manually, for example:

/nix/store/vsmybd99mxpkf9677p2mn4ikbymy3xnm-plasma-config
@pjones
Copy link
Collaborator

pjones commented Apr 13, 2023

I bet this would be fixed by getting #1 and #2 resolved.

@opl-
Copy link

opl- commented May 13, 2023

According to this Reddit comment, khotkeys is being phased out. Last week the khotkeys repository was replaced with a README saying "KHotkeys is no longer maintained. The last maintained version is in the Plasma/5.27 branch." It also links to phabricator issue T2050: "sunsetting KHotKeys".

However, the Reddit comment linked before mentions the UUIDs and the keybind being repeated in kglobalshortcutsrc, which is indeed the case.

I did some work to correctly generate UUIDs instead of using a hash, which I believe might be the reason the keybinds get reset, but having found khotkeys is no longer being maintained I did not do the last bit of work to put the same UUIDs and hotkeys in the kglobalshortcutsrc file. If anyone is interested in that, you can find what I have so far here.

@RMTT
Copy link
Author

RMTT commented May 15, 2023

I also found the khotkeys will be removed in the future, we should use kglobalshortcutsrc now. @opl- Thanks for your response.

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

3 participants