⚠️ De site vereist een werkende browser met JavaScript & DOM-ondersteuning voor het beste resultaat.

How do I make Alt+V pull up KeePassXC if it's not already open AND trigger its auto-type prompt? (Mint 22.3)

#1 Flagstaff
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.

#2 HelloRoot
The problem is that your desktop environment's shortcut handler intercepts Alt+V before KeePassXC ever sees it, so the internal keybinding never fires. And when pgrep finds the process running, your command simply does nothing.

The fix is to use KeePassXC's --auto-type CLI flag, which sends the auto-type signal to a running instance:

Command for your custom shortcut (Alt+V):
```
bash -c 'pgrep -x keepassxc > /dev/null && keepassxc --auto-type || keepassxc'
```

Not sure how keepass behaves though. Maybe you don't need the condition at all and can just run `keepassxc --auto-type` from the shortcut and if there is no running instance it will start it.
#3 Flagstaff
Wow, it works; you're a genius!!! Thanks so much!!! Hmm, Lemmy doesn't seem to have post flair, but it _does_ allow title-editing, so I'll just update the post title, haha.

🔗.lol, it is actually failing after all. It only pulls up the auto-type window the first time. Then it only summons the main window from thereafter until it closes...
#4 Hettyc_Tracyn
If you use Hyperland, you can simply setup the keybind in hypr.config (also makes it easier to change your default file manager, etc)
#5 Ghoelian
So how did you solve it?
#6 Flagstaff
Huh? It's in the comments...
#7 Ghoelian
Do you mean the one about hyprland? That's the only other comment I see
#8 Havatra
Interesting... There's a comment here by 🔗.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'
```
#9 Flagstaff
Actually, this code didn't work after all! It brings up the autotype window once, but then it brings up the main window thereafter...
#10 HelloRoot
Yeah you probably have to play around with the flags to figure out the right approach. I can not look into it right now
#11 Flagstaff
I don't really understand how to figure out flags, so I just set it to start up on boot and just log in from the start and that basically fixes it.

🔗 Related topics

spacer
Shoutbox 0
💬 Shoutbox
webmastahh: The classic sci-fi strategy game Nexus: The Jupiter Incident is currently FREE during GOG's Summer Sale. Have you ever played it? 🚀 https://mastanet.com/287ff1 #GOG #Free #GamingDeals #drmfree #Gaming
webmastahh: 🎤 League of Legends' virtual K-pop group K/DA is rumored to return in 2026! 👀 Leaks suggest new music and brand-new in-game skins could be on the way. Would you be excited to see them return? #LeagueOfLegends #Kpop #GamingNews #Gaming
webmastahh: 🎮 BREAKING: Nintendo Switch 2 rumors just got hotter 🔥 Final Fantasy XV could be on the way 👀 If true, this is HUGE for console gaming in 2026. Next-gen hype is real ⚡ #Nintendo #Switch2 #FinalFantasyXV #GamingNews #NextGen #Hype #Console
webmastahh: 🔥 Cyberpunk 2077 hits 40 MILLION copies sold! From a rocky launch to a full comeback story 💥 Updates, Phantom Liberty & 2.0 turned it into a true modern RPG classic. Night City keeps winning. #Cyberpunk2077 #Gaming #CDPR
webmastahh: Mastanet 🎮 What makes it unique? Mastahhh Gaming Network brings gaming websites together on one platform with live news feeds ⚡ Everything in one place 👉 https://mastanet.com/ #Gaming #News #GameNews #GamingCommunity
webmastahh: $80 for digital games doesn’t make sense anymore 💸 We removed physical costs… but not the price. Gaming pricing feels stuck in a world that doesn’t exist anymore 🎮🤔 What are we actually paying for? #ps5 #xbox #gaming #playstation #nintendo #f
webmastahh: 💿 Sony says devs can still order disc games after 2027 (if released before cutoff). Xbox already uses it to push Halo discs 👀 Physical vs digital debate just got real again. #Gaming #News #PS5 #Xbox
webmastahh: Black Ops 6 is leaving the Call of Duty HQ app this week 💀 That means it won’t launch through COD’s main hub anymore, but as a separate game. #CallOfDuty #BlackOps6 #Gaming
webmastahh: Pokémon cards are so heavily resold that Nintendo may add ID checks to stop scalpers 💀 basically people buying cards just to flip them for profit. #Pokemon #Nintendo #Gaming
webmastahh: 💿 No discs? No thanks. If the reports about PlayStation's 2028 plans are true, gaming loses a big part of what made collecting games special. #PlayStation #Gaming
webmastahh: 💿 Love physical PlayStation games? Sign the petition 👇 https://mastanet.com/f8017a #PlayStation #Gaming
webmastahh: 💿 Over 120,000 people have already signed the "Don't Kill The Disc" petition to preserve physical games. Are physical games worth saving, or is an all-digital future inevitable? 🤔 #PlayStation #PS6 #Gaming
webmastahh: 🕹️ New PlayStation accessories are coming! FlexStrike wireless fight stick, 27” Gaming Monitor & Pulse Elevate speakers are expanding the PS5 setup 🎮🔥 #PlayStation #PS5 #Gaming
webmastahh: 🎮 FREE on GOG! Claim Silence before it's gone. A beautiful story-driven adventure with stunning hand-painted visuals. Keep it forever once claimed! ⏳ Ends in 3 days. https://www.gog.com/en/game/silence #FreeGame #GOG #PCGaming #Gaming #GameDeals
webmastahh: 👀 Pokémon Winds and Waves could introduce 300 new Pokémon?! Sounds insane… but don't get too excited yet 😅 The game isn't even out until 2027. 🌊⚡ #Pokemon #gaming #winds #waves

250 left
🏠 Start 👾 News 💾 Downloads 💬 Community Profile Profile