aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoviuro <moviuro+git@gmail.com>2017-11-29 20:04:26 +0100
committerMoviuro <moviuro+git@gmail.com>2017-11-29 20:04:26 +0100
commit450f6efd081947120f6f2b603a786497f8edbd5b (patch)
tree191f29a19e67033663e3ba9ecf026d841273c444
parent82215fe119597a159d0141c8143aabcd1613243a (diff)
downloadrofi-pass-450f6efd081947120f6f2b603a786497f8edbd5b.tar.gz
rofi-pass: add the ":otp" keyword to autopass()
-rwxr-xr-xrofi-pass1
1 files changed, 1 insertions, 0 deletions
diff --git a/rofi-pass b/rofi-pass
index db6aded..56d59c7 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -82,6 +82,7 @@ autopass () {
":space") xdotool key space;;
":delay") sleep "${delay}";;
":enter") xdotool key Return;;
+ ":otp") printf '%s' "$(PASSWORD_STORE_DIR="${root}" pass otp ${selected_password})" | xdotool type --clearmodifiers --file -;;
"pass") printf '%s' "${password}" | xdotool type --clearmodifiers --file -;;
*) printf '%s' "${stuff[${word}]}" | xdotool type --clearmodifiers --file -;;
esac