Forum Discussion

roy_orbison's avatar
roy_orbison
Occasional Contributor
2 days ago

Can we get 1st-party support for keyboard shortcuts?

Now that the interface to edit/set keyboard shortcuts has been removed from 1Password running under Wayland, It would be preferable if the installation package made the shortcuts available to configure by default, rather than https://support.1password.com/keyboard-shortcuts/?linux#wayland. I wrote about this before under a blog of post yours, but it was ignored.

It's trivial to add Desktop Action sections to your existing launcher file, and reference them in an Actions= directive:

[Desktop Entry]
Name=1Password
Exec=/opt/1Password/1password %U
Terminal=false
Type=Application
Icon=1password
StartupWMClass=1Password
Comment=Password manager and secure wallet
MimeType=x-scheme-handler/onepassword;x-scheme-handler/onepassword8;
Categories=Office;
Actions=Show;QuickAccess;Lock;Fill;

[Desktop Action Show]
Name=Show 1Password
Icon=window-symbolic
Exec=1password --show

[Desktop Action QuickAccess]
Name=Show Quick Access
Icon=search-symbolic
Exec=1password --quick-access

[Desktop Action Lock]
Name=Lock 1Password
Icon=lock-symbolic
Exec=1password --show

[Desktop Action Fill]
Name=Fill in Browser
Icon=web-browser-symbolic
Exec=1password --fill

Putting a symlink to this expanded .desktop file under /usr/share/kglobalaccel/ makes those keyboard shortcuts appear in KDE Plasma's Settings app:

1 Reply

  • roy_orbison's avatar
    roy_orbison
    Occasional Contributor

    I don't have GNOME to test with, but I assume defining default actions for it would be as easy.

    (BTW, I couldn't edit the original because the content I already posted is suddenly blocked as "invalid HTML".)