diff options
author | Rasmus Steinke <rasi@xssn.at> | 2019-01-18 18:45:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 18:45:15 +0100 |
commit | 88c0d1bda7c47e50f39f93d5c645c3f0b4220bbf (patch) | |
tree | 82239c13f870f412f247ee37625afd8c92b6d3a2 | |
parent | 0b128a4e52a898531d7323f71d0cef1fe28d4984 (diff) | |
parent | a2acca731dfa0b7cd5df265796e6400d36fddb17 (diff) | |
download | rofi-pass-88c0d1bda7c47e50f39f93d5c645c3f0b4220bbf.tar.gz |
Merge pull request #154 from Sh4d1/master2.0.2
Add path autotype feature
-rw-r--r-- | README.md | 8 | ||||
-rwxr-xr-x | rofi-pass | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -25,6 +25,14 @@ in a convenient way using [rofi](https://github.com/DaveDavenport/rofi). url: http://my.url.foo ``` +* Auto-typing username based on path. + The structure of your password store must be like: + + ``` + foo/bar/site.com/username + ``` + And you must set the `default-autotype` to `'path :tab pass'`. + * Auto-typing of more than one field, using the `autotype` entry: ``` @@ -95,6 +95,7 @@ autopass () { ":enter") xdotool key Return;; ":otp") printf '%s' "$(generateOTP)" | xdotool type --delay ${xdotool_delay} --clearmodifiers --file -;; "pass") printf '%s' "${password}" | xdotool type --delay ${xdotool_delay} --clearmodifiers --file -;; + "path") printf '%s' "${selected_password}" | rev | cut -d'/' -f1 | rev | xdotool type --clearmodifiers --file -;; *) printf '%s' "${stuff[${word}]}" | xdotool type --delay ${xdotool_delay} --clearmodifiers --file -;; esac done |