Is there any way to bring up the keepassX window when the application is started but the window is hidden? I mean that the application is running but only the icon in the notification area is visible. Is there any way to do this? Is there any way to configure a shortcut?

  • Which Desktop Environment are you using? Gnome? Unity? KDE? Xfce? Cinnamon?
    – terdon
    Jun 10 '13 at 19:33
  • Sorryfor delay: Unity and Mate
    – ardabro
    Jun 23 '13 at 20:27

Not strictly an answer for KeepassX and kind of a workaround...

I tend to use xdotool in those cases, it's great for window tinkering and automation.

You could do something like xdotool search --name keepassX windowactivate
Just make sure --name is the same as the window title.

And then make a keyboard shortcut to that command or put it in Keepass's launcher.

  • Works for me: xdotool search --onlyvisible --name "DatabaseName - KeePassX" windowactivate (if the database was named) or xdotool search --onlyvisible --name "FileName.extension - KeePassX" windowactivate
    – mkczyk
    Sep 20 '18 at 8:18
  • What about toggle window (activate/minimize)? superuser.com/questions/1369564/…
    – mkczyk
    Oct 24 '18 at 12:36
  • I think you have to write a script or use another tool for that. See my answer in your new question.
    – micke
    Oct 24 '18 at 16:44

I had a similar issue and made an open-source solution based on xdotool for that.


After install, click on the "HK" icon in the tray, then add a macro. Choose "Window Pin by name". Click on the gear next to it and type 'KeePassX'. Then click on the pen to set your shortcut.

Personally, I'm using ALT+P to bring KeePassX on the foreground. The app must be already running, however. So I made it start on boot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.