1. Set the custom keyboard shortcut sh -c 'pgrep -i keepassxc > /dev/null || keepassxc' to Alt+V
  2. Keep KeePassXC’s default autotype prompt keybinding, which is Alt+V

One disables the other. I thought that going the grep route might make the program opener conditionally inactive, but apparently that’s not doing anything. I would really like to avoid using a separate keybinding if possible. Otherwise, I guess I’d just have to have it open on launch.

      • Havatra@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        13 hours ago

        Interesting… There’s a comment here by @HelloRoot@lemy.lol, so perhaps your instance doesn’t federate with lemy.lol?

        In their comment they suggested this command:

        bash -c 'pgrep -x keepassxc > /dev/null && keepassxc --auto-type || keepassxc'
        
        • Flagstaff@programming.devOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          Actually, this code didn’t work after all! It brings up the autotype window once, but then it brings up the main window thereafter…