doc: add advanced usage: Show and Copy to Clipboard in Wayland Environment
This commit is contained in:
parent
1bf8f699c7
commit
a7f831d44c
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -28,3 +28,14 @@ sup-randpass 20 -w
|
|||
# generate password of length 32 containing alphanumeric characters or '+' '-' '%'
|
||||
sup-randpass 20 -w +-%
|
||||
```
|
||||
|
||||
## Advanced Usage
|
||||
### Show and Copy to Clipboard in Wayland Environment
|
||||
Assume you have `wl-copy` installed.
|
||||
Add the following line to your rc file:
|
||||
```sh
|
||||
sup-randpass() {
|
||||
command sup-randpass "$@" | tee >(wl-copy); echo
|
||||
}
|
||||
```
|
||||
Source your rc file and generate password with the same command and arguments as before.
|
||||
|
|
Loading…
Reference in a new issue