From a7f831d44c7e205360418839362046611b24142a Mon Sep 17 00:00:00 2001 From: sup39 Date: Thu, 25 Jan 2024 15:59:31 +0900 Subject: [PATCH] doc: add advanced usage: Show and Copy to Clipboard in Wayland Environment --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b154404..28233f4 100644 --- a/README.md +++ b/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.