dotfiles/scripts/sway/swayotp
2024-02-05 09:37:35 -06:00

6 lines
182 B
Bash
Executable file

#!/bin/sh
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
password="$(~/.config/scripts/menu/menu-pass)"
[ -z "$password" ] && exit
wtype $(pass otp "$password" | head -n 1)