Toggle 1password UI from keybind or CLI

I have setup a keybind to run 1password to open up the UI, is there also a keybind to 'close' the UI (leaving it in the tray)?

Something like 1password --toggleUi (ideally, it would smartly show/hide) or even just 1password --hideUI and I can script around it.

How I'd like this to work:

  • Have an app open I'd like to login to
  • Hit my keybind -> 1password UI shows up
  • Copy my password
  • Hit my keybind -> 1password UI hides
  • Paste in my password into the original app

Cheers!


1Password Version: 0.9.9-3
Extension Version: Not Provided
OS Version: Linux (Arch)
Sync Type: Not Provided

Comments

  • I'd love this too. I'm using gnome and since app indicators are not supported some kind of small popup similar to the MacOS app would be nice for native apps.

  • BlakeBlake

    Team Member
    edited January 28

    Hi @adamh and @alvarlagerlof 👋

    While we don't have a built in way to do this yet, I would totally love to have this myself as well. In the meantime, maybe using the in-app (Ctrl-W) hotkey to close 1Password for Linux might suffice?

    Let me know if that helps any!

  • @Blake Thanks for the tip, that's a good workaround for now :+1:

  • BlakeBlake

    Team Member

    Awesome! I'm glad to hear that works for now! 💙

  • If you have wmctrl installed, you can bind a key press to this command, it will either raise or open 1password:

    sh -c 'wmctrl -x -a 1password.1Password || /opt/1Password/1password'

  • BlakeBlake

    Team Member

    That's a neat solution @simonw! Thanks for sharing! 😊

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file