Last active
November 13, 2024 04:47
-
-
Save smmr0/9c7de91b9e9cd19773cb10fee8a1fef7 to your computer and use it in GitHub Desktop.
Toggle KeePassXC window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
window_id="$(xdotool search --onlyvisible --class '^keepassxc$' | tail -1)" | |
if [ -n "$window_id" ]; then | |
xdotool windowminimize "$window_id" | |
else | |
keepassxc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment