From fe70c7e6a90c3a950be8d6370bb334bd083333d7 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 9 Oct 2024 13:12:40 +0200 Subject: [PATCH] Copy to clipboard and primary --- prpw-tui_copy-field | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prpw-tui_copy-field b/prpw-tui_copy-field index 348adff..568a94d 100755 --- a/prpw-tui_copy-field +++ b/prpw-tui_copy-field @@ -13,4 +13,7 @@ export prpw_menu_manage_entry=2 # Print field content and exit export prpw_menu_field_action=1 -"$SHROOT"/prpw-tui "$1" | xclip -selection clipboard +PW="$("$SHROOT"/prpw-tui "$1")" +echo -n "$PW" | xclip -selection clipboard +echo -n "$PW" | xclip -selection primary +#echo -n "$PW" | xclip -selection secondary