Skip to content

Commit

Permalink
Merge pull request #154 from Sh4d1/master
Browse files Browse the repository at this point in the history
Add path autotype feature
  • Loading branch information
carnager authored Jan 18, 2019
2 parents 0b128a4 + a2acca7 commit 88c0d1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down
1 change: 1 addition & 0 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88c0d1b

Please sign in to comment.